astroufsc / chimera

Chimera - Observatory Automation System
http://chimera.sf.net/
GNU General Public License v2.0
36 stars 19 forks source link

[chimera-tel] --epoch does not work #111

Closed wschoenell closed 8 years ago

wschoenell commented 9 years ago

When specifying different epochs on chimera-tel, it just does not work. It goes straight to J2000 coordinates.

Reproducible by running:

C:\Anaconda\Scripts>python chimera-tel --slew --epoch=J2000 --ra=00:45:37 --dec=45:52:21
========================================
current position ra/dec: 00:45:36.993 +45:52:21.018
current position alt/az: +84:00:26.673 +12:33:30.528
========================================
slewing to 00:45:37.000 +45:52:21.000 (J2000.0)...  OK.
========================================
new position ra/dec: 00:45:38.006 +45:52:22.131
new position alt/az: +84:00:27.374 +12:32:18.827

C:\Anaconda\Scripts>python chimera-tel --slew --epoch=now --ra=00:45:37 --dec=45:52:21
========================================
current position ra/dec: 00:45:37.000 +45:52:21.019
current position alt/az: +84:01:18.872 +11:58:54.288
========================================
slewing to 00:45:37.000 +45:52:21.000 (J2015.73)...  OK.
========================================
new position ra/dec: 00:45:38.077 +45:52:22.818
new position alt/az: +84:01:18.613 +11:57:49.391
wschoenell commented 9 years ago

Reopened.

wschoenell commented 9 years ago

The header keyword is still in J2000 while the coordinates are different of that.

wschoenell commented 8 years ago

Fixed on #135