From 17dc93d6e9d3555a95db136d54990fd93ffe88fe Mon Sep 17 00:00:00 2001 From: Wilfred Tyler Gee Date: Fri, 10 Nov 2023 12:18:56 -1000 Subject: [PATCH] Dealing with dumb older RA millisecond values. --- src/panoptes/pocs/mount/ioptron/base.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/panoptes/pocs/mount/ioptron/base.py b/src/panoptes/pocs/mount/ioptron/base.py index d05f9e05f..eb97ff309 100644 --- a/src/panoptes/pocs/mount/ioptron/base.py +++ b/src/panoptes/pocs/mount/ioptron/base.py @@ -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')