2769 hi goodtimes fix esa step field in output txt file#2863
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates IMAP-Hi goodtimes to (1) use per-filter bit-flag cull codes that can be combined, and (2) fix the goodtimes TXT interval output to represent ESA steps as a 10-element boolean mask (per issue #2769), while also adjusting interval grouping/metadata.
Changes:
- Replace the single
CullCode.LOOSEwith per-filter bit flags and combine flags via|=inmark_bad_times(). - Update interval extraction/output: merge consecutive identical cull patterns across METs; emit
esa_step_maskandcull_value(and update the TXT format/tests accordingly). - Fix spin-bin coordinate metadata in the HI variable-attrs YAML (fill value, dtype, label dependency).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
imap_processing/hi/hi_goodtimes.py |
Introduces bit-flag cull codes, combines flags with OR, changes interval grouping, and updates TXT output format (including ESA step mask). |
imap_processing/tests/hi/test_hi_goodtimes.py |
Updates and expands tests for bit flags, combined flags behavior, merged intervals, and new TXT format/values. |
imap_processing/cdf/config/imap_hi_variable_attrs.yaml |
Adjusts HI goodtimes spin_bin/spin_bin_label variable metadata (fill value, dtype, DEPEND key). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
lacoak21
left a comment
There was a problem hiding this comment.
These changes look solid to me.
|
I did have one overall question. So there is a goodtimes txt and CDF? Is the Txt basically just for a quicklook? |
a0a0092
into
IMAP-Science-Operations-Center:dev
I am including the txt function so that Paul can convert the CDF to a txt file using a command line utility. He has code that parses the txt file and displays data overlayed with goodtimes. |
Ok cool - thats nice to have. |
…-Operations-Center#2863) * Fix hi goodtimes to txt file format * Fix goodtimes spin_bin coordinate metadata * Add cull code for each of the goodtimes checks * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Copilot feedback changes --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Summary
This PR adds unique bit-flag cull codes for each goodtimes filter, enabling tracking of which specific checks flagged each time bin. It also includes fixes to the goodtimes txt file format and spin_bin coordinate metadata.
Changes
Unique Cull Codes (Bit Flags)
Other Fixes
Closes: #2769