Skip to content

Commit

Permalink
Dealing with dumb older RA millisecond values.
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgee committed Nov 10, 2023
1 parent ece822b commit 17dc93d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/panoptes/pocs/mount/ioptron/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,12 @@ def _mount_coord_to_skycoord(self, mount_coords):
self.logger.trace(f'Mount coordinates: {coords_match}')

if coords_match is not None:
ra = (coords_match.group('ra') * getattr(u, self._ra_coords_units)).to(u.deg)
if self._ra_coords_units == 'millisecond':
ra = (coords_match.group('ra') * getattr(u, self._ra_coords_units)).to(u.hour).value
ra = (ra * u.hourangle).to(u.degree)
else:
ra = (coords_match.group('ra') * getattr(u, self._ra_coords_units)).to(u.deg)

dec = (coords_match.group('dec') * getattr(u, self._dec_coords_units)).to(u.deg)

dec_sign = coords_match.group('dec_sign')
Expand Down

0 comments on commit 17dc93d

Please sign in to comment.