Skip to content

bias_combine_easyspec

Combine bias frames into a master bias via easyspec.cleaning.master.

Category Master frames
Backend easyspec - wraps the EasySpec reduction library (optional extra reduction)
Version 1.1.1
Reads -
Writes extras.master_bias

Requires the optional reduction extra. The matplotlib backend is forced to 'Agg' at import time so easyspec's plotting defaults never open a window in a server context.

Parameters

Parameter Default Required Description
bias_dir None - Directory containing the bias FITS files.
bias_paths None - List of bias FITS file paths (symlinked into a temp dir).
method 'median' - Stacking method passed to easyspec: median, mean, or mode.
header_hdu_entry 0 - HDU extension where the FITS header lives.

Use it

from spectro_kernel import run_algorithm

output = run_algorithm("bias_combine_easyspec", ctx, {
    "bias_dir": None,
    "bias_paths": None,
    "method": "median",
    "header_hdu_entry": 0
})
spectro run bias_combine_easyspec --input spectrum.fits \
  --param bias_dir=none \
  --param bias_paths=none \
  --param method=median \
  --param header_hdu_entry=0
{
  "tool": "bias_combine_easyspec",
  "arguments": {
    "session_id": "<session_id>",
    "params": {
      "bias_dir": null,
      "bias_paths": null,
      "method": "median",
      "header_hdu_entry": 0
    }
  }
}

Every algorithm is an MCP tool of the same name; describe_algorithm returns this page's metadata as JSON.

References

  • easyspec — Lobão et al. (https://pypi.org/project/easyspec/).
  • easyspec.cleaning.cleaning.master.
  • bias_combine - Combine a stack of bias frames into one master bias.
  • dark_combine - Combine a stack of dark frames into a master dark.
  • dark_combine_easyspec - Combine dark frames into a master dark via easyspec.cleaning.master.
  • flat_combine - Combine a stack of flat frames into a master flat (raw, not normalised).
  • flat_combine_easyspec - Combine flat frames into a master flat via easyspec.cleaning.master.