Class: AstroSubframeOrganizer::PathBuilders::BiasPathBuilder

Inherits:
BasePathBuilder
  • Object
show all
Defined in:
lib/astro_subframe_organizer/path_builders/bias_path_builder.rb

Overview

Builds folder paths for bias (zero-exposure) calibration frames.

Bias frames are organized by the following keywords, which allow WBPP to automatically match biases during calibration of darks, flats, and lights:

Bias_ISO_<value>_EXP_<value>_Bin_<value>_CAMERA_<model>_MONTH_<YYYY-MM>

**Keyword meanings:**

  • ISO: Camera ISO setting

  • EXP: Exposure time (typically 0.0s for bias frames)

  • Bin: Binning mode

  • CAMERA: Camera model

  • MONTH: Year-Month in YYYY-MM format (used for seasonal grouping)

Bias frames are primarily used as the baseline calibration for darks, flats, and lights to remove electronic noise. WBPP uses these keywords to match an appropriate master bias based on the ISO, exposure, binning, and season of acquisition.

See README.md for details on the WBPP calibration workflow.

Instance Method Summary collapse

Methods inherited from BasePathBuilder

#initialize

Constructor Details

This class inherits a constructor from AstroSubframeOrganizer::PathBuilders::BasePathBuilder

Instance Method Details

#buildString

Returns The folder path for this bias frame.

Returns:

  • (String)

    The folder path for this bias frame



26
27
28
29
30
31
32
33
34
35
# File 'lib/astro_subframe_organizer/path_builders/bias_path_builder.rb', line 26

def build
  [
    'Bias',
    iso_or_gain,
    "EXP_#{@metadata.exposure}",
    "Bin_#{@metadata.bin}",
    "CAMERA_#{@metadata.camera || '????'}",
    "MONTH_#{@metadata.month}",
  ].compact.join('_')
end