Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hi2isis does not properly convert MRO:ADC_TIMING_SETTINGS label from .IMG to .cub file #4290

Closed
rbeyer opened this issue Feb 15, 2021 · 1 comment · Fixed by #4362
Closed
Assignees
Labels
bug Something isn't working good first issue Good for newcomers Missions Issues which are a priority for missions

Comments

@rbeyer
Copy link
Contributor

rbeyer commented Feb 15, 2021

ISIS version(s) affected: at least 3.9+

Description
HiRISE EDR .IMG files have an MRO:ADC_TIMING_SETTINGS in their INSTRUMENT_SETTING_PARAMETERS group.

When ISIS hi2isis runs, the resulting value of ADCTimingSetting is always the value -9999 regardless of the original value in the EDR file.

How to reproduce
Pick any HiRISE EDR, run hi2isis.

Possible Solution
I suspect the problem is with $ISISROOT/appdata/translations/MroHiriseInstrument.trn whose ADCTimingSetting group is looking for the MRO:ADC_TIMING_SETTING key which doesn't have the trailing "S" that the key in the PDS label actually has.

I'm not sure if the PDS labels perhaps changed over time (in which case either the singular or plural version of the key should be retained in the translation file) or if this has just always been broken. I have a copy of the old version of the ISIS data area and it appears that there has been no trailing "S" since hiriseInstrument.trn.2006-03-30 (which was before launch). I checked an "early" HiRISE EDR, and it has the "S" on the label and indicates that it was created with software from 2006, so this has probably always been a problem.

This means that every cube file hi2isis has ever written has a ADCTimingSetting = -9999. Not sure if an "s" should be placed on the end of the label in the cube file or not when this is fixed. Since it has always been -9999, nobody has probably been relying on it, but they might be?

@jessemapel jessemapel added the bug Something isn't working label Feb 16, 2021
@jessemapel
Copy link
Contributor

This is also present in the test data for hi2isis. I suspect this is a case of it always being incorrect, but no one noticing.

@jessemapel jessemapel added the good first issue Good for newcomers label Feb 17, 2021
@jlaura jlaura added the Missions Issues which are a priority for missions label Feb 24, 2021
@amystamile-usgs amystamile-usgs self-assigned this Mar 11, 2021
amystamile-usgs pushed a commit to amystamile-usgs/ISIS3 that referenced this issue Mar 15, 2021
scsides pushed a commit that referenced this issue Mar 17, 2021
… Converted Hi2isis App and Tests (#4362)

* Fixed MRO:ADC_TIMING_SETTING label conversion issue #4290 and converted hi2isis App and Tests

* Added test images to test data.

* Removed makefile tests.

* Addressed PR review feedback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers Missions Issues which are a priority for missions
Projects
None yet
4 participants