ComputeTGLR¶
-
class
muse_origin.ComputeTGLR(orig, idx, param)[source]¶ Bases:
muse_origin.StepCompute the cube of GLR test values.
The test is done on the cube containing the faint signal (
self.cube_faint) and it uses the PSF and the spectral profiles. Then compute the p-values of local maximum of correlation values.- Parameters
- Returns
- self.cube_correl
Cube Cube of T_GLR values.
- self.correl_min
Cube Cube of T_GLR values of minimum correlation.
- self.cube_profile
Cube(typeint) Number of the profile associated to the T_GLR.
- self.maxmap
Image Map of maximum correlations along the wavelength axis.
- self.minmap
Image Map of minimum correlations along the wavelength axis.
- self.cube_local_max
Cube Local maxima from max correlation.
- self.cube_local_min
Cube Local maxima from minus min correlation.
- self.cube_correl
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[, size, ncpu, pcut, pmeansub])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
-
cube_correl= None¶
-
cube_correl_min= None¶
-
cube_local_max= None¶
-
cube_local_min= None¶
-
cube_profile= None¶
-
desc= 'GLR test'¶
-
maxmap= None¶
-
minmap= None¶
-
name= 'compute_TGLR'¶
-
require= ('compute_greedy_PCA',)¶
-
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.