Skip to content

Ten million changes as I develop in production as LS4 starts#535

Open
rknop wants to merge 56 commits into
c3-time-domain:mainfrom
rknop:import_ls4
Open

Ten million changes as I develop in production as LS4 starts#535
rknop wants to merge 56 commits into
c3-time-domain:mainfrom
rknop:import_ls4

Conversation

@rknop
Copy link
Copy Markdown
Contributor

@rknop rknop commented May 21, 2026

No description provided.

rknop and others added 30 commits November 20, 2025 12:04
…handle file:/// ; update tests to allow download from a local directory (env var configured) or env-var set url instead of just hardcoded nersc url
…mize provenance parameters, make exposure_processor.py able to handle something not in knownexposures.
…s so we don't have to included lots of subclass module files in everything that wants to process exposures.
… images. Use astrometry.net to measure the offsets of the chip centers and chip corners from TELE_RA and TELE_DEC (which is *not* centered on the array).
…fits.save_fits_image_file, as we just had to get something in a temp directory for astrometry.net to use and didn't want our own assumptions creeping i
…lding for Darks, Biases, Flats. Fix top_level so it won't go past preprcessing for Darks, Biases, Flats.
…mask

Builds three Rice-compressed FITS per chip from a stack of LS4Cam bias
frames:

  superbias_<CCD>.fits.fz       float32, MED_BIAS = median of image
  superbias_nmad_<CCD>.fits.fz  float32, MB_NMAD  = median of NMAD image
  superbias_mask_<CCD>.fits.fz  int16,   1 where NMAD > 3*1.4826*median(NMAD)

Two input layouts via --input-mode:

  multi-ext (default): raw multi-extension exposures; runs
                       LS4Cam.overscan_and_trim internally per chip.

  per-chip:            flat directory of already-trimmed per-chip files;
                       groups by CCD_LOC header keyword.  Different chips
                       may have different N.

Both modes have been verified to produce bit-identical superbias / NMAD /
mask outputs on the same underlying frames.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
rknop and others added 26 commits May 13, 2026 12:15
Add hacks/make_superbias.py: per-chip superbias / NMAD / bad-pixel mask
…. Incorporate Peter's superbias code into improc/make_flat and make that now a flat & bias maker. Test nothing!!!!! Tests are for the weak! Or tomorrow.
…nfig is what we think; if somebody left a local_overrides.yaml file in the top directory, the tests might wipe out a production database! Also, allow for conductor to search for exposures associated with known exposures based on provenance tag.
…t some 0-length files... this is a more general problem, of course, but in quick-hack-omg-must-get-stuff-done mode, I just put in the fix at the one place that was the current pain point.)
…'t include SIP unless you give it relax=True! D'oh!
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.

2 participants