create_all_sources¶
-
muse_origin.
create_all_sources
(cat3_sources, cat3_lines, origin_params, cube_cor_filename, cube_std_filename, mask_filename_tpl, skymask_filename_tpl, spectra_fits_filename, segmaps, version, profile_fwhm, out_tpl, *, n_jobs=1, author='', nb_fwhm=2, expmap_filename=None)[source]¶ Create and save a MPDAF source file for each source.
- Parameters
- cat3_sources: astropy.table.Table
Table of unique sources (ORIGIN “Cat3_sources”).
- cat3_lines: astropy.table.Table
Table of all the lines (ORIGIN “Cat3_lines”).
- origin_params: dict
Dictionary of the parameters for the ORIGIN run.
- cube_cor_filename: str
Name of the file containing the correlation cube of the ORIGIN run.
- cube_std_filename: str
Name of the file containing the std cube of the ORIGIN run.
- mask_filename_tpl: str
Template for the filename of the FITS file containing the mask of a source. The template is formatted with the id of the source. Eg: masks/source-mask-%0.5d.fits.
- skymask_filename_tpl: str:
Template for the filename of the FITS file containing the mask of a sky for each source. The template is formatted with the id of the source. Eg: masks/sky-mask-%0.5d.fits.
- spectra_fits_filename: str
Name of the FITS file containing the spectra of the lines.
- segmaps: dict(str: str)
Dictionnary associating to a segmap type the associated FITS file name.
- version: str
Version number stored in the source.
- profile_fwhm: list of int
List of line profile FWHM in pixel. The index in the list is the profile number.
- out_tpl: str
Template for the source file names. Eg. sources/source-%0.5d.fits
- author: str
Name of the author.
- n_jobs: int
Number of parallel processes used to create the source files.
- nb_fwhm: float
Factor multiplying the FWHM of the line to compute the width of the narrow band image.
- expmap_filename: str
Name of the file containing the exposure map. If not None, a cut-out of the exposure map will be added to the source file.