OSSOS / MOP

The Moving Object Pipeline: discovery & tracking of trans-Neptunian objects
GNU General Public License v3.0
4 stars 9 forks source link

[OSSOSPlot] range error on RA/DEC when fed to PH2 in outlier rounding case #334

Closed mtbannister closed 9 years ago

mtbannister commented 9 years ago

The CFHT PH2 will throw an error if it cannot parse the pointing: "Field dec_s (DEC ss.s) must be in range {0;59.99} (found 59.995)" "Field ra_s (RA ss.ss) must be in range {0;59.99} (found 59.997)"

The save function in OSSOSPlot calls ossos.ephem_target.save(): this function should assert the values are within range and round accordingly if they are not. We don't require 3 dp of accuracy on the pointing, fortunately.

mtbannister commented 9 years ago

Can also generate a rounding error: Field dec_s (DEC ss.s) must be in range {0;59.99} (found 60.000) where the value was 1:59:60.000 so need a catch for that as well.