Skip to content

BUG - Survival probability energy labels not tied to actual energy bins - Card 3297 #135

Description

@jtniehof

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)

Metadata

Metadata

Labels

Data Release 1Deadline: June 15, 2026Ins: GLOWSRelated to the GLOWS instrumentIns: LoRelated to the IMAP-Lo instrumentbugSomething isn't working

Type

Fields

No fields configured for Bug.

Projects

Status
Blocked

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions