color_terms

sofia_redux.calibration.standard_model.derived_optics.color_terms(result, fref, pl, bb, alpha=None, wref=None, temp=None, model_flux_in_filter=None, wavelengths=None)[source]

Calculate the color terms k0 and k1.

Parameters:
resultdict

Collection of calibration results.

freffloat

Reference flux for power law models.

plbool

If set, the model is based on a power law.

bbbool

If set, the model is based on a blackbody.

alphafloat, optional

Slope used for power law if pl is True.

wreffloat, optional

Reference wavelength for power law models if pl is True.

tempfloat, optional

Reference temperature for blackbody models if bb is True.

model_flux_in_filternumpy.array, optional

Flux in the filter of the model if pl and bb are both False.

wavelengthsnumpy.array, optional

Wavelenths in the filter of the model if pl and bb are both False.

Returns:
resultdict

Same as input result with both ‘color_term_k0’ and ‘color_term_k1’ populated.