create_source

muse_origin.create_source(source_id, source_table, source_lines, origin_params, cube_cor_filename, cube_std_filename, mask_filename, skymask_filename, spectra_fits_filename, segmaps, version, source_ts, profile_fwhm, *, author='', nb_fwhm=2, expmap_filename=None, save_to=None)[source]

Create a MPDAF source.

This function create a MPDAF source object for the ORIGIN source.

Parameters
source_idint

Identifier for the source in the source and line tables.

source_tableastropy.table.Table

Catalogue of sources like the Cat3_sources one.

source_linesastropy.table.Table

Catalogue of lines like the Cat3_lines one.

origin_paramsdict

Dictionary of the parameters for the ORIGIN run.

cube_cor_filenamestr

Name of the file containing the correlation cube of the ORIGIN run.

cube_std_filenamestr

Name of the file containing the std cube of the ORIGIN run.

mask_filenam e: str

Name of the file containing the mask of the source.

skymask_filenamestr

Name of the file containing the sky mask of the source.

spectra_fits_filenamestr

Name of the FITS file containing the spectra of the lines.

segmapsdict(str: str)

Dictionnary associating to a segmap type the associated FITS file name.

versionstr

Version number stored in the source.

source_tsstr

Time stamp for when the source was created.

profile_fwhmlist of int

List of line profile FWHM in pixel. The index in the list is the profile number.

authorstr

Name of the author.

nb_fwhmfloat

Factor multiplying the FWHM of the line to compute the width of the narrow band image.

expmap_filenamestr

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.

save_tostr

If not None, the source will be saved to the given file.

Returns
mpdaf.sdetect.Source or None

If save_to is used, the function returns None.