scarlet.measure

scarlet.measure.centroid(component)[source]

Determine centroid of model

Parameters:
component: `scarlet.Component` or array

Component to analyze or its hyperspectral model

scarlet.measure.flux(component)[source]

Determine flux in every channel

Parameters:
component: `scarlet.Component` or array

Component to analyze or its hyperspectral model

scarlet.measure.max_pixel(component)[source]

Determine pixel with maximum value

Parameters:
component: `scarlet.Component` or array

Component to analyze or its hyperspectral model

scarlet.measure.moments(component, N=2, centroid=None, weight=None)[source]

Determine SNR with morphology as weight function

Parameters:
component: `scarlet.Component` or array

Component to analyze or its hyperspectral model

N: int >=0

Moment order

centroid: array

2D coordinate in frame of component

weight: array

weight function with same shape as component

scarlet.measure.snr(component, observations)[source]

Determine SNR with morphology as weight function

Parameters:
component: `scarlet.Component` or array

Component to analyze or its hyperspectral model

observations: `scarlet.Observation` or list thereof