ComputeSpectra¶
-
class
muse_origin.ComputeSpectra(orig, idx, param)[source]¶ Bases:
muse_origin.StepCompute 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_dxy
int 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.
- grid_dxy
- Returns
- self.Cat2
astropy.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.spectra
listofSpectrum Estimated lines.
- self.Cat2
Attributes Summary
Processing status (
muse_origin.Status):Methods Summary
__call__(self, \*args, \*\*kwargs)Run a step, calling its
runmethod.dump(self, outpath)Save the attributes that have been created by the steps, and unload them to free memory.
load(self, 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(self, orig[, grid_dxy, spectrum_size_fwhm])store_cube(self, name, data, \*\*kwargs)Create a MPDAF Cube and store it as an attribute.
store_image(self, name, data, \*\*kwargs)Create a MPDAF Image and store it as an attribute.
Attributes Documentation
-
Cat2= None¶
-
desc= 'Lines estimation'¶
-
name= 'compute_spectra'¶
-
require= ('detection',)¶
-
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__(self, *args, **kwargs)¶ Run a step, calling its
runmethod.This method is the one that is called from the ORIGIN object. It calls the
runmethod of the step and also does a few additional things like storing the parameters, execution time and date.
-
dump(self, outpath)¶ Save the attributes that have been created by the steps, and unload them to free memory.
-
load(self, 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.
-
store_cube(self, name, data, **kwargs)¶ Create a MPDAF Cube and store it as an attribute.
-
store_image(self, name, data, **kwargs)¶ Create a MPDAF Image and store it as an attribute.