Skip to content

subtract_bias_easyspec

Subtract a master bias from a single science frame via cleaning.debias.

Category Preprocessing (2-D image)
Backend easyspec - wraps the EasySpec reduction library (optional extra reduction)
Version 1.0.1
Reads -
Writes image

Parameters

Parameter Default Required Description
target_path None - Science FITS to debias; falls back to ctx.image.
master_bias_path None - Master-bias FITS; falls back to ctx.extras['master_bias'].
pad_with_zeros True - Clip negative pixels to zero after subtraction (easyspec default).

Use it

from spectro_kernel import run_algorithm

output = run_algorithm("subtract_bias_easyspec", ctx, {
    "target_path": None,
    "master_bias_path": None,
    "pad_with_zeros": True
})
spectro run subtract_bias_easyspec --input spectrum.fits \
  --param target_path=none \
  --param master_bias_path=none \
  --param pad_with_zeros=true
{
  "tool": "subtract_bias_easyspec",
  "arguments": {
    "session_id": "<session_id>",
    "params": {
      "target_path": null,
      "master_bias_path": null,
      "pad_with_zeros": true
    }
  }
}

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

References

  • easyspec.cleaning.cleaning.debias.