apply_flux_cal

ndmapper.lib.gmos.spec.apply_flux_cal(*args, **kwargs)[source] [edit on github]

Apply a previously-measured sensitivity spectrum to each input to convert the data values to spectrophotometric flux units.

Parameters:

inputs : DataFileList or DataFile

Input images, containing spectra to be converted to physical flux units. Each input DataFile must already have an associated entry named ‘specphot’ in its cals dictionary, corresponding to the measured instrumental sensitivity spectrum.

out_names : str-like or list of str-like, optional

Names of flux-calibrated output spectra. If None (default), the names of the DataFile instances returned will be constructed from those of the input files, prefixed with ‘c’ as in the Gemini IRAF package.

Returns:

output : DataFileList

The flux-calibrated spectra produced by gscalibrate.