Skip to content

normalize_max

Normalise a spectrum by dividing the flux by its maximum value.

Category Continuum
Backend numpy - implemented here on top of numpy primitives
Version 1.0.1
Reads ctx.spectrum (a Spectrum1D)
Writes spectrum, metrics.max_flux

Parameters

This algorithm takes no parameters.

Use it

from spectro_kernel import run_algorithm

output = run_algorithm("normalize_max", ctx, {})
spectro run normalize_max --input spectrum.fits
{
  "tool": "normalize_max",
  "arguments": {
    "session_id": "<session_id>",
    "params": {}
  }
}

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

References

  • Gray 2005, The Observation and Analysis of Stellar Photospheres, 3rd ed., Cambridge UP — ch. 12, continuum placement (the peak flux as the crudest continuum proxy).
  • Tody 1986, Proc. SPIE 627, 733 — the IRAF data reduction and analysis system (reference implementation of spectrum normalisation tasks).