IMAP-Lo requested tweaks#3293
Conversation
| 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
…state at its start.
…ystematic errors, but saving the mean in the existing variable. Updated ancillary files.
3f47aef to
cec5c6f
Compare
…ould be DS/EN); pre-commit checked
|
@tmplummer - the CI was failing on |
tmplummer
left a comment
There was a problem hiding this comment.
This all looks ok to me.
b0fe77b
into
IMAP-Science-Operations-Center:dev
Closes #3289, #3270
modified values of pivot angle thresholds
get_star_bin_offsetguided bySTAR_BIN_OFFSET_BY_SYNCdictpulled out 2 constants -
STAR_END_BINS_TO_EXCLUDE,STAR_MIN_COUNT_THRESHOLDlo_angle_offsetgone, per issue Lo L1b prostar - remove two degree offset #3270New ancillary files for geometric factors. Uncertainty values for H/O are now asymmetric, with the ancillary file having columns:
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).