Skip to content

bias_combine

Combine a stack of bias frames into one master bias.

Category Master frames
Backend numpy - implemented here on top of numpy primitives
Version 1.0.0
Reads ctx.images (a list of ImageFrame)
Writes extras.master_bias

Parameters

Parameter Default Required Description
method 'median' - Combination method: 'median' (robust) or 'mean'.

Use it

from spectro_kernel import run_algorithm

output = run_algorithm("bias_combine", ctx, {
    "method": "median"
})

The CLI loads a single 1-D spectrum with --input; this algorithm needs ctx.images (a list of ImageFrame). Run it from Python or as a step of a pipeline preset.

{
  "tool": "bias_combine",
  "arguments": {
    "session_id": "<session_id>",
    "params": {
      "method": "median"
    }
  }
}

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

References

  • Howell 2006 — Handbook of CCD Astronomy, ch. 4 (standard CCD reduction).