Skip to content

IMAP-Lo requested tweaks#3293

Merged
tmplummer merged 6 commits into
IMAP-Science-Operations-Center:devfrom
vineetbansal:vb/issue3289
Jun 17, 2026
Merged

IMAP-Lo requested tweaks#3293
tmplummer merged 6 commits into
IMAP-Science-Operations-Center:devfrom
vineetbansal:vb/issue3289

Conversation

@vineetbansal

@vineetbansal vineetbansal commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Closes #3289, #3270

  • modified values of pivot angle thresholds

  • get_star_bin_offset guided by STAR_BIN_OFFSET_BY_SYNC dict

  • pulled out 2 constants - STAR_END_BINS_TO_EXCLUDE, STAR_MIN_COUNT_THRESHOLD

  • lo_angle_offset gone, per issue Lo L1b prostar - remove two degree offset #3270

  • New ancillary files for geometric factors. Uncertainty values for H/O are now asymmetric, with the ancillary file having columns:

    • esa_mode
    • incident_E-Step
    • Observed_E-Step
    • Cntr_E
    • Cntr_E_unc
    • GF_Trpl_H
    • GF_Trpl_H_unc_minus
    • GF_Trpl_H_unc_plus

    The value of systematic errors determined in the code (and stored in the CDFs) is by taking a mean of the two systematic errors. This is to avoid major disruptions for now. Another PR (coming soon) will try to tackle this in a coordinated way among the mapper instruments (Lo/Hi/Ultra).

@vineetbansal vineetbansal changed the title WIP WIP - IMAP-Lo requested tweaks Jun 8, 2026
Comment thread imap_processing/lo/constants.py Outdated
STAR_BIN_OFFSET_BY_SYNC: ClassVar[dict[str | None, float]] = {
"DS": 0.5, # star sync disabled (pre FSW 4.8)
"EN": 0.0, # star sync enabled (FSW 4.8+)
None: 0.5, # default value

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there instances where the value is not either "DS", or "EN". I'm wondering if this silently handling a None value is a bad thing to do. It seems like a major problem that should fail loudly if the state is not one of the two options.

@vineetbansal vineetbansal Jun 17, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good - done. Now we fail loudly with a KeyError if the value is not in there (one of DS/EN). I've confirmed that DS/EN are the only two values in the Lo HK files for this attribute (at least going till mid May from mission start).

…t 2 constants - STAR_END_BINS_TO_EXCLUDE, STAR_MIN_COUNT_THRESHOLD. lo_angle_offset gone
…ystematic errors, but saving the mean in the existing variable. Updated ancillary files.
@vineetbansal vineetbansal changed the title WIP - IMAP-Lo requested tweaks IMAP-Lo requested tweaks Jun 17, 2026
@vineetbansal vineetbansal marked this pull request as ready for review June 17, 2026 17:36
@vineetbansal

Copy link
Copy Markdown
Collaborator Author

@tmplummer - the CI was failing on docs because of a completely unrelated thing (spiceypy wheels not available on 3.10), so I've gone ahead and fixed it in a commit here by generating docs on 3.12, just to have a clean CI pass. In case you don't want it here, I can open it in a separate PR.

@tmplummer tmplummer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks ok to me.

@tmplummer tmplummer merged commit b0fe77b into IMAP-Science-Operations-Center:dev Jun 17, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IMAP-Lo - Final tweaks before data release

2 participants