USRA-STI / gdt-fermi

Gamma-ray Data Tools - Fermi mission components
Apache License 2.0
2 stars 3 forks source link

Trigdat fix for missing data columns in OB_CALC #22

Closed AdamGoldstein-USRA closed 4 months ago

AdamGoldstein-USRA commented 4 months ago

Trigdat files early in the mission are missing the following columns in the OB_CALC extension:

Presumably there was a change later in the mission to provide these columns in the OB_CALC extension.

The process of creation of the FswLocation object, which is generated with a Trigdat object is created via the open() method, currently assumes that these columns exist. If they are not found to exist and exception is raised and the Trigdat object cannot be created.

The fix is to check if the columns exist instead of assuming they do exist. Default values are already assigned on instantiation, so no action is required if they do not exist.