Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion imap_l3_processing/swe/l3/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ def read_l3a_swapi_proton_data(swapi_l3a_data: Path) -> SwapiL3aProtonData:
proton_sw_speed = read_numeric_variable(cdf["proton_sw_speed"])
proton_sw_clock_angle = read_numeric_variable(cdf["proton_sw_clock_angle"])
proton_sw_deflection_angle = read_numeric_variable(cdf["proton_sw_deflection_angle"])
swp_flags = read_numeric_variable(cdf["swp_flags"])
### MEC: insert try-except to catch swp_flags issue
try:
swp_flags = read_numeric_variable(cdf["swp_flags"])
except:
swp_flags = np.zeros(len(epoch))

return SwapiL3aProtonData(epoch=epoch,
epoch_delta=epoch_delta,
Expand Down