ComputeSpectra

class muse_origin.ComputeSpectra(orig, idx, param)[source]

Bases: muse_origin.steps.Step

Compute the estimated emission line and the optimal coordinates.

For each detected line in a spatio-spectral grid, the line is estimated with the deconvolution model:

subcube = FSF*line -> line_est = subcube*fsf/(fsf^2))

Via PCA LS or denoised PCA LS Method.

Parameters
grid_dxyint

Maximum spatial shift for the grid, defaults to 0.

spectrum_size_fwhm: float

The length of the spectrum to keep around each line as a factor of the fitted line FWHM, defaults to 6.

Returns
self.Cat2astropy.table.Table

Catalog of parameters of detected emission lines. Columns: ra dec lbda x0 x y0 y z0 z T_GLR profile residual flux num_line purity

self.spectralist of Spectrum

Estimated lines.

Attributes Summary

Cat2

desc

Description of the step.

name

Name of the function to run the step.

require

List of required steps (that must be run before).

spectra

status

Processing status (muse_origin.Status):

Methods Summary

__call__(*args, **kwargs)

Run a step, calling its run method.

dump(outpath)

Save the attributes that have been created by the steps, and unload them to free memory.

load(outpath)

Recreate attributes of a step, not really loading them as just the file is set, and files are loaded in memory only if needed.

run(orig[, grid_dxy, spectrum_size_fwhm])

store_cube(name, data, **kwargs)

Create a MPDAF Cube and store it as an attribute.

store_image(name, data, **kwargs)

Create a MPDAF Image and store it as an attribute.

Attributes Documentation

Cat2 = None
desc = 'Lines estimation'

Description of the step.

name = 'compute_spectra'

Name of the function to run the step.

require = ('detection',)

List of required steps (that must be run before).

spectra = None
status

Processing status (muse_origin.Status):

  • NOTRUN: The step has not been run.

  • RUN: The step has been run but not saved.

  • DUMP: The step has been run and its outputs saved to disk.

  • FAILED: The step has been run but it failed.

Methods Documentation

__call__(*args, **kwargs)

Run a step, calling its run method.

This method is the one that is called from the ORIGIN object. It calls the run method of the step and also does a few additional things like storing the parameters, execution time and date.

dump(outpath)

Save the attributes that have been created by the steps, and unload them to free memory.

load(outpath)

Recreate attributes of a step, not really loading them as just the file is set, and files are loaded in memory only if needed.

run(orig, grid_dxy=0, spectrum_size_fwhm=6)[source]
store_cube(name, data, **kwargs)

Create a MPDAF Cube and store it as an attribute.

store_image(name, data, **kwargs)

Create a MPDAF Image and store it as an attribute.