Closed changhoonhahn closed 5 years ago
In the class desisurvey.scheduler.Scheduler line 264, self.moon_RADEC is set to desisurvey.ephem.get_object_interpolator
desisurvey.scheduler.Scheduler
desisurvey.ephem.get_object_interpolator
self.moon_RADEC = desisurvey.ephem.get_object_interpolator(self.night_ephem, 'moon', altaz=False)
The interpolator of desisurvey.ephem.get_object_interpolator outputs (dec, ra) however in desisurvey.scheduler.Scheduler.next_tile when self.moon_RADEC is called (line 362) the RA and Dec order is reversed:
desisurvey.scheduler.Scheduler.next_tile
self.moon_RADEC
moonRA, moonDEC = self.moon_RADEC(mjd_now)
The moon_RADEC is also a misleading name.
Thanks for catching this @changhoonhahn! @schlafly also mentioned this to me a few days ago and we will get the fix in soon (probably via #99).
In the class
desisurvey.scheduler.Scheduler
line 264, self.moon_RADEC is set todesisurvey.ephem.get_object_interpolator
The interpolator of
desisurvey.ephem.get_object_interpolator
outputs (dec, ra) however indesisurvey.scheduler.Scheduler.next_tile
whenself.moon_RADEC
is called (line 362) the RA and Dec order is reversed:The moon_RADEC is also a misleading name.