fitsmgmt.table.select_fits
fitsmgmt.table.select_fits(
inputs,
extension=None,
unit=None,
trimsec=None,
table_filecol='file',
prefer_ccddata=False,
type_key=None,
type_val=None,
path_to_text=False,
verbose=True,
)Stacks the FITS files specified in fitslist
Parameters
inputs : path-like,~astropy.nddata.CCDData,~astropy.io.fits.PrimaryHDU,~astropy.io.fits.ImageHDU,~pandas.DataFrameor~astropy.table.Table-
If it is path-like, it must contain FITS files to extract header. If CCD-like, the header information will be used for selecting elements to select.
extension :int,str, (str,int), optional. = None-
The extension of FITS to be used. It can be given as integer (0-indexing) of the extension,
EXTNAME(singlestr), or atupleofstrandint:(EXTNAME, EXTVER). IfNone(default), the first extension with data will be used. Ignored ifinputsis table-like. Default:None. unit : str | u.Unit | None = None-
The unit of the CCDs to be loaded. Used only when
fitslistis not alistof~astropy.nddata.CCDDataandprefer_ccddataisTrue. Ignored ifinputsis table-like. Default:None. trimsec :str, [listof]int, [listof] slice = None-
Section of the data to be extracted by
~astroimred.imutil.ccdops.imslice. Default isNone. Ignored ifinputsis table-like. table_filecol :str, optional. = 'file'-
The column name of the
summary_tablewhich contains the path to the FITS files. Ignored ifinputsis CCD-like. Default:'file'. prefer_ccddata : bool = False-
Whether to prefer to return
~astropy.nddata.CCDDataobjects if possible. IfTrue, path-like,~numpy.ndarray, or table-like input will return alistof~astropy.nddata.CCDData. IfFalse(default), only the paths will be returned unless theinputsis consist of~astropy.nddata.CCDData.Ignored ifinputsis already CCD-like. type_key : str | list[str] | None = None-
The header keyword for the ccd type, and the value you want to match. Default:
False. type_val : str | list[str] | None = None-
The header keyword for the ccd type, and the value you want to match. Default:
False.
Returns
matched :listof~pathlib.Pathorlistof~astropy.nddata.CCDData-
listcontaining~pathlib.Pathto files ifprefer_ccddataisFalse. Otherwise it is alistcontaining loaded~astropy.nddata.CCDDataafter loading the files. Ifccdlistis given a priori,listof~astropy.nddata.CCDDatawill be returned regardless ofprefer_ccddata.