Donut#

class lsst.ts.wep.blitz.Donut(det_name, stamp, thx_ccs, thy_ccs, flux, band, det_id, visit_id, x_det, y_det, donut_id, inner_frac, outer_frac, outer_asym, donut_radius, snr, bkg, bkg_std, n_quarter, photo_mag, astrom_mag, nearby_photo, nearby_astrom, coord_ra=nan, coord_dec=nan, intrinsic_zk=None, defocal_offsets=None, rejected_sat=False, rejected_inner_frac=False, rejected_outer_frac=False, rejected_outer_asym=False, rejected_snr=False, rejected_nan_intrinsics=False, rejected=False)#

Bases: object

One cut donut stamp with its selection/quality metrics.

det_name#

Detector name.

Type:

str

stamp#

The cut stamp pixels, in the camera coordinate system (CCS).

Type:

numpy.ndarray or None

thx_ccs, thy_ccs

Field angle of the donut in CCS, in radians.

Type:

float

flux#

Measured flux, the brightness ordering key.

Type:

float

band#

Exposure band label.

Type:

str

det_id#

Detector identifier.

Type:

int

visit_id#

Visit identifier of the exposure the donut came from.

Type:

int

x_det, y_det

Un-rounded centroid in detector pixels.

Type:

float

donut_id#

Donut id – a refcat source id on the refcat path, a per-detector 1..N counter on the blitz-detection path.

Type:

int

inner_frac, outer_frac

Inner/outer flux-fraction geometry metrics.

Type:

float

outer_asym#

Azimuthal asymmetry of the outer background annulus: the spread between its brightest and faintest octant, as a fraction of the donut’s flux. Large for a blend or a close neighbor.

Type:

float

donut_radius#

Measured donut radius in un-binned pixels.

Type:

float

snr#

Stamp signal-to-noise ratio.

Type:

float

bkg, bkg_std

Local background level and its standard deviation.

Type:

float

n_quarter#

Detector orientation as a count of 90-degree rotations, relating the CCS stamp to x_det/y_det.

Type:

int

photo_mag, astrom_mag

The donut’s own refcat magnitudes, NaN on the blitz-detection path where there is no refcat.

Type:

float

nearby_photo, nearby_astrom

Neighboring refcat sources inside the stamp box as (dx, dy, mag), offset from (x_det, y_det) and excluding this donut itself.

Type:

list of tuple of float

coord_ra, coord_dec

Refcat sky position in radians, NaN on the blitz-detection path. A finite value means the donut was matched to a catalog source.

Type:

float, optional

intrinsic_zk#

Intrinsic Zernike coefficients for this field position, or None.

Type:

numpy.ndarray or None, optional

defocal_offsets#

The signed optic z shifts in meters that put this donut off focus, ordered (detector, camera, m2).

Type:

tuple of float or None, optional

rejected_sat, rejected_inner_frac, rejected_outer_frac

Per-cut rejection flags; True means the donut failed that cut.

Type:

bool, optional

rejected_outer_asym#

Outer-asymmetry rejection flag; True means the donut failed the outer_asym cut.

Type:

bool, optional

rejected_snr#

SNR rejection flag; True means the donut failed the SNR cut.

Type:

bool, optional

rejected_nan_intrinsics#

Non-finite-intrinsics flag; True means the donut’s measured intrinsic Zernikes were not all finite (field-angle extrapolation can return NaN past the first terms), so it was kept out of wavefront fitting.

Type:

bool, optional

rejected#

True if any quality cut rejected the donut.

Type:

bool, optional

Parameters:

Attributes Summary

Attributes Documentation

astrom_mag: float = <dataclasses._MISSING_TYPE object>#
band: str = <dataclasses._MISSING_TYPE object>#
bkg: float = <dataclasses._MISSING_TYPE object>#
bkg_std: float = <dataclasses._MISSING_TYPE object>#
coord_dec: float = nan#
coord_ra: float = nan#
defocal_offsets: tuple[float, float, float] | None = None#
det_id: int = <dataclasses._MISSING_TYPE object>#
det_name: str = <dataclasses._MISSING_TYPE object>#
donut_id: int = <dataclasses._MISSING_TYPE object>#
donut_radius: float = <dataclasses._MISSING_TYPE object>#
flux: float = <dataclasses._MISSING_TYPE object>#
inner_frac: float = <dataclasses._MISSING_TYPE object>#
intrinsic_zk: ndarray[tuple[Any, ...], dtype[float64]] | None = None#
n_quarter: int = <dataclasses._MISSING_TYPE object>#
nearby_astrom: list[tuple[float, float, float]] = <dataclasses._MISSING_TYPE object>#
nearby_photo: list[tuple[float, float, float]] = <dataclasses._MISSING_TYPE object>#
outer_asym: float = <dataclasses._MISSING_TYPE object>#
outer_frac: float = <dataclasses._MISSING_TYPE object>#
photo_mag: float = <dataclasses._MISSING_TYPE object>#
rejected: bool = False#
rejected_inner_frac: bool = False#
rejected_nan_intrinsics: bool = False#
rejected_outer_asym: bool = False#
rejected_outer_frac: bool = False#
rejected_sat: bool = False#
rejected_snr: bool = False#
snr: float = <dataclasses._MISSING_TYPE object>#
stamp: ndarray[tuple[Any, ...], dtype[float64]] | None = <dataclasses._MISSING_TYPE object>#
thx_ccs: float = <dataclasses._MISSING_TYPE object>#
thy_ccs: float = <dataclasses._MISSING_TYPE object>#
visit_id: int = <dataclasses._MISSING_TYPE object>#
x_det: float = <dataclasses._MISSING_TYPE object>#
y_det: float = <dataclasses._MISSING_TYPE object>#