calibrate_flux¶
-
ndmapper.lib.gmos.spec.
calibrate_flux
(*args, **kwargs)[source] [edit on github]¶ Generate an instrumental sensitivity spectrum in magnitudes from the 1D integrated spectrum of a spectrophotometric standard star.
Parameters: inputs : DataFileList or DataFile
Input images, containing the 1D spectrum of a spectrophotometric standard star. Usually there will just be one input and output, but multiple files are accepted.
out_names :
str
-like or list ofstr
-like, optionalNames of output sensitivity spectra. If None (default), the names of the DataFile instances returned will be constructed from those of the input files, with ‘_sens’ appended.
reference : str or None, optional
The name of a text file containing tabulated fluxes. This is usually the name of the standard star, in lower case. If None, a table matching the OBJECT header keyword will be sought (with any ‘LTT’ prefix abbreviated to ‘L’, to match the “noao$onedstds” convention). The precise bandpasses to be used can be adjusted by editing a copy of this file.
lookup_dir : str or None, optional
Directory name in which to find the
reference
file with tabulated fluxes, if not the current working directory. IRAF syntax may be used.See “help gsstandard” in IRAF for more detailed information.
Returns: outimages : DataFileList
The sensitivity spectra produced by gsstandard.