Correlation_GLR_test

muse_origin.Correlation_GLR_test(cube, fsf, weights, profiles, nthreads=1, pcut=None, pmeansub=True)[source]

Compute the cube of GLR test values with the given PSF and dictionary of spectral profiles.

Parameters
cubearray

data cube

fsflist of arrays

FSF for each field of this data cube

weightslist of array

Weight maps of each field

profileslist of ndarray

Dictionary of spectral profiles to test

nthreadsint

number of threads

pcutfloat

Cut applied to the profiles to limit their width

pmeansubbool

Subtract the mean of the profiles

Returns
correlarray

cube of T_GLR values of maximum correlation

profilearray

Number of the profile associated to the T_GLR

correl_minarray

cube of T_GLR values of minimum correlation