Detection¶
-
class
muse_origin.Detection(orig, idx, param)[source]¶ Bases:
muse_origin.StepDetections on local maxima from correlation and std cube, and spatial-spectral merging in order to create the first catalog.
- Parameters
- threshold
float User threshold if the estimated threshold from the previous step is not good.
- threshold_std
float User threshold if the estimated cube_std threshold is not good.
- tol_spat
int Tolerance for the spatial merging (distance in pixels), defaults to 3. TODO en fonction du FWHM
- tol_spec
int Tolerance for the spectral merging (distance in pixels), defaults to 5.
- segmap
str Optional segmap to use instead of the one computed automatically on the continuum image.
- threshold
- Returns
- self.Cat0
astropy.table.Table Catalog with all detections (correl and comp). Columns: x0 y0 z0 comp STD T_GLR profile
- self.Cat1
astropy.table.Table Catalog with filtered and matched detections. Columns: ID ra dec lbda x0 y0 z0 comp STD T_GLR profile seg_label
- self.segmap_label
Image Segmentation map used for the catalog, either the one given as input, otherwise self.segmap_cont.
- self.Cat0
Attributes Summary
Processing status (
muse_origin.Status):Methods Summary
__call__(self, \*args, \*\*kwargs)Run a step, calling its
runmethod.det_correl_min(self[, thresh])3D positions of detections in correl_min.
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[, threshold, threshold_std, …])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
-
Cat0= None¶
-
Cat1= None¶
-
desc= 'Thresholding and spatio-spectral merging'¶
-
name= 'detection'¶
-
require= None¶
-
segmap_label= 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.
-
run(self, orig, threshold=None, threshold_std=None, tol_spat=3, tol_spec=5, maxdist_lines=2.5, segmap=None)[source]¶
-
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.