prepare¶
-
ndmapper.lib.gmos.spec.ifu.
prepare
(*args, **kwargs)[source] [edit on github]¶ Update the meta-data from raw GMOS images in preparation for subsequent processing.
Parameters: inputs : DataFileList or DataFile
Input images to be “prepared” by attaching a “mask definition file” (MDF) extension, describing the slit mapping to sky, and performing meta-data updates.
out_names :
str
-like or list ofstr
-like, optionalNames of the output “prepared” files. If None (default), the names of the DataFile instances returned will be constructed from those of the input files, prefixed with ‘g’ as in the Gemini IRAF package.
mdf : str, optional
Name of a FITS mask definition file (in the current working directory) to be attached as a FITS extension of each output file. If None and all the inputs have mdf associations in their
cals
dictionaries, those mdfs are used, otherwise, if there are no such associations, the GMOS package default is used.See “help gfreduce” in IRAF for more detailed information.
Returns: outimages : DataFileList
The “prepared” images produced by gfreduce.