AutoIntegrate v1.84 - Calibration updates

PixInsight: Script / AutoIntegrate
Repository: https://ruuth.xyz/autointegrate/

Changes in AutoIntegrate v1.84 are listed below.

Calibration changes

  • Masters button — New button in the Files tab to load master calibration files (bias, dark, flat, flat dark) from a directory in one step.
  • Generate Masters Only mode — New option to run calibration and generate master frames without requiring light files.
  • Dark frame grouping by exposure time — Dark files are now grouped by exposure time in the TreeBox allowing multiple exposure times for calibration matching. Master darks are auto-detected per exposure group.
  • Master flat dark support — Master flat dark files can now be specified and are used in the calibration engine.
  • Default values for calibration options have been updated to better match with modern CMOS sensors.

Bug Fixes

  • Fixed TreeBox clearing incorrectly when adding new files.
  • Preview fixes and updates.

Fixes in 1.84.1

Calibration fixes

  • Fixed a bug where master bias was silently disabled on light frames when Optimize darks was off (the default), even when bias frames were available
  • Fixed bias handling when Pre-calibrate darks is enabled: bias is now correctly applied directly to lights instead of being lost when the dark has already had bias removed
  • Master darks created with bias subtracted now write CALSTAT=B to their FITS header; AutoIntegrate reads this keyword automatically on subsequent runs, so the Pre-calibrate darks checkbox no longer needs to be set manually in those cases
  • Fixed flat integration always using Average combination regardless of the user’s integration combination setting (Average is correct for flats)

Dark matching

  • Light frames within the same filter are now grouped by exposure time before calibration, so each exposure time group is matched to the correct master dark
  • Added a warning when a single master dark’s exposure time does not closely match the lights being calibrated (consistent with the existing warning in the multi-dark path)
  • selectMasterDarkForExptime is now called unconditionally for both single and multiple master dark cases

Flowchart

  • Exposure time is now shown in the flowchart for dark integration (e.g. ImageIntegration:dark (300s)) and light calibration
  • Flowchart file filtering now picks one representative file per exposure time group for lights and flats, so all exposure variants are visible in the flowchart

Bug fixes

  • Fixed master dark filename showing _undefined instead of the exposure time when all darks share a single exposure time
  • Fixed AutoMaster dark windows not being closed when a window prefix was in use
  • Fixed stretching mode always defaulting to Auto STF when restoring settings from a JSON file
  • Fixed a bad flowchart call