Description of the issue
The number of energy labels in the GLOWS L3e files for Lo does not match the number of energy bins. This is because the energy bins are from the pipeline configuration file, and we updated the file, but the energy labels are hardcoded (first two lines of to_data_product_variables in glows_l3e_lo_model.py)
This is only showing up in Lo, but we should also fix Hi and Ultra
Steps to reproduce the issue
E.g.
f = spacepy.pycdf.CDF('imap_glows_l3e_survival-probability-lo_20260511-repoint00245_v011.cdf')
print(len(f['energy_grid'])) # 24
print(len(f['energy_label'])) # 13
Expected vs Actual behavior
Energy grid and energy label should have same dimensions
Additional notes, affected areas, and suggested fixes
Populate labels from the numerical variables:
spin_angle_labels = numpy.char.mod("%3.0f", self.spin_angle) # Ultra is different
energy_labels = numpy.char.mod("%6.2f", self.energy)
Description of the issue
The number of energy labels in the GLOWS L3e files for Lo does not match the number of energy bins. This is because the energy bins are from the pipeline configuration file, and we updated the file, but the energy labels are hardcoded (first two lines of
to_data_product_variablesinglows_l3e_lo_model.py)This is only showing up in Lo, but we should also fix Hi and Ultra
Steps to reproduce the issue
E.g.
Expected vs Actual behavior
Energy grid and energy label should have same dimensions
Additional notes, affected areas, and suggested fixes
Populate labels from the numerical variables: