scarlet2.init

scarlet2.init#

Helper methods to initialize sources

Functions

best_box_moments(obs, center_pix[, sizes, ...])

Make a bounding box for source at center

boxed_moments(obs, center[, footprint, bbox])

Measure 2nd moments of the observation in the region of the bounding box

compact_morphology([min_value, max_value])

Create image of the point source morphology model, i.e. the most compact source possible.

from_gaussian_moments(obs, center[, ...])

Create a Gaussian-shaped morphology and associated spectrum from the observation(s).

pixel_spectrum(obs, pos[, correct_psf])

Get the spectrum at a given position in the observation(s).

standardize_moments(g, obs)

Standardize the 2nd moments to match the model frame