Hi, thanks for this library! I ran into a few errors with missing units on a label data file from hirise, and added these lines:
from astropy import units
unit_meters_pixel = units.def_unit('meters/pixel', units.meter / units.pixel)
unit_local_day = units.def_unit('localday/24', units.day / 24)
unit_bytes = units.def_unit('bytes', units.byte)
units.add_enabled_units([unit_meters_pixel, unit_local_day, unit_bytes])
Reference to astropy defining units: https://docs.astropy.org/en/latest/units/combining_and_defining.html
I'm pretty sure unit_local_day is wrong, because it represents a 24-hour day according to the astropy documentation, but local day might be defined differently on labels. This could cause issues.
I also might be totally wrong that this needs to be added -- I'm new to this kind of data. If this is something that needs to be done, it might be good to add it to this library with fixes.
Hi, thanks for this library! I ran into a few errors with missing units on a label data file from hirise, and added these lines:
Reference to astropy defining units: https://docs.astropy.org/en/latest/units/combining_and_defining.html
I'm pretty sure
unit_local_dayis wrong, because it represents a 24-hour day according to the astropy documentation, but local day might be defined differently on labels. This could cause issues.I also might be totally wrong that this needs to be added -- I'm new to this kind of data. If this is something that needs to be done, it might be good to add it to this library with fixes.