3.2.4. measureBlaze

Fit a blaze function to each fiber of a processed masterflat and store the results as named AstroData extensions.

Instantiates a FlatSpectrum per fiber from the BOX_REDUCED_FLAT_{f} and REDUCED_ORDERS_FIBER_{f} extensions produced by optimalExtraction(), calls fit_blaze(), then stores the resulting normalised blaze as BLAZE_FIBER_{f} — a 2-D float32 array of shape [n_orders, n_pixels_per_order] with max == 1 per order row.

3.2.4.1. Parameters

adinputslist of AstroData

Processed flat AstroData objects that contain BOX_REDUCED_FLAT_{f} extensions.

suffixstr

Filename suffix appended to output files.

n_knotsint

Number of spline knots used in the blaze fit (default 50).

outlier_thresholdfloat

Relative outlier rejection threshold (fraction of blaze fit value).

fiberslist of int

Fiber numbers to process.

3.2.4.2. Returns

list of AstroData

Input frames with the following extension added, one per fiber N in 1-5:

  • BLAZE_FIBER_N

3.2.4.3. Parameter defaults and options

suffix               ''                   Filename suffix
n_knots              50                   Number of spline knots for blaze fit
outlier_threshold    0.05                 Relative outlier rejection threshold (fraction of blaze fit value)
fibers               None                 Fiber numbers to fit blaze for. None = all fibers present in input.

3.2.4.4. Algorithm

Todo

add description

3.2.4.5. Issues and Limitations

Todo

add description