Detection¶
- class muse_origin.Detection(orig, idx, param)[source]¶
Bases:
muse_origin.steps.Step
Detections 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
Description of the step.
Name of the function to run the step.
List of required steps (that must be run before).
Processing status (
muse_origin.Status
):Methods Summary
__call__
(*args, **kwargs)Run a step, calling its
run
method.det_correl_min
([thresh])3D positions of detections in correl_min.
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[, threshold, threshold_std, ...])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
- Cat0 = None¶
- Cat1 = None¶
- desc = 'Thresholding and spatio-spectral merging'¶
Description of the step.
- name = 'detection'¶
Name of the function to run the step.
- require = None¶
List of required steps (that must be run before).
- 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__(*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, threshold=None, threshold_std=None, tol_spat=3, tol_spec=5, maxdist_lines=2.5, segmap=None)[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.