Skip to content

BUG - CoDICE L3a Lo line plots (epoch deltas?) (Phase D) #68

@jtniehof

Description

@jtniehof

Description of the issue

Line plotting the CoDICE L3a Lo products in CAVA leaves many data points unconnected to their neighbors.

Image

The epoch_delta appears to create time bins that are noncontiguous by a few milliseconds. I don't know if that's enough to trigger CAVA's detection of missing data. This might be a CAVA problem if this accurately represents the CoDICE sampling of the data. Or there might be a rounding or something in the L2 that needs to be looked into.

Affects partial densities and ratios most obviously. The charge state distributions might be affected but don't manifest in the same way on a spectrogram.

Steps to reproduce the issue

Plot imap_codice_l3a_lo-sw-ratios_20260121_v003.cdf in CAVA; I was using o7_to_o6_ratio. Turn off log plot to remove the "goes to zero" problem for diagnosis.

with spacepy.pycdf.CDF('imap_codice_l3a_lo-sw-ratios_20260121_v003.cdf') as f:
    e = f.raw_var('epoch')[...]
    de = f['epoch_delta'][...]
expected = e + de
err = numpy.abs(expected[:-1] - e[1:])
print(numpy.max(err) / 1e6)
print(numpy.median(err) / 1e6)

Expected vs Actual behavior

No response

Code Snippet (If applicable)

Code

Additional notes, affected areas, and suggested fixes

No response

Metadata

Metadata

Labels

Ins: CoDICERelated to the CoDICE instrumentPhase E: Parent IssuePhase E major task indicatorbugSomething isn't working

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions