DetectorView#

class lsst.ts.wep.blitz.DetectorView(image, binning, bbox_min, bbox_shape, refcat, detections, selections, field_dist, max_field_dist_deg)#

Bases: object

One detector’s binned image and overlay sources, for the plot task.

What the focal-plane selection plot needs and the output catalog cannot supply: the catalog is one row per surviving donut, whereas this plot is about everything that was considered. Built in the cutout worker, since the post-ISR image only exists there, and carried home on CutoutResult.

Binned and float32 deliberately for speed.

binning and the two bbox fields are recorded rather than assumed, so a plot regenerated from an older run cannot mis-scale its overlays against a differently-binned image.

image#

The background-subtracted post-ISR image.

Type:

ndarray

binning#

Factor image was binned by.

Type:

int

bbox_min#

The exposure bbox’s (x, y) origin, subtracted before scaling a detector-frame coordinate into image.

Type:

tuple of int

bbox_shape#

The un-binned (height, width), i.e. numpy order.

Type:

tuple of int

refcat, detections, selections

The three stages’ sources. None means the stage did not run, which is distinct from a stage that ran and found nothing.

Type:

SourceSet or None

field_dist#

Each binned pixel’s distance from the field center, in degrees, same shape as image. float32; all-NaN if the transform failed.

Type:

ndarray

max_field_dist_deg#

The selector’s configured maxFieldDist, read from the live subtask config rather than assumed – corner mode overrides the class default.

Type:

float

Parameters:

Attributes Summary

Attributes Documentation

bbox_min: tuple[int, int] = <dataclasses._MISSING_TYPE object>#
bbox_shape: tuple[int, int] = <dataclasses._MISSING_TYPE object>#
binning: int = <dataclasses._MISSING_TYPE object>#
detections: SourceSet | None = <dataclasses._MISSING_TYPE object>#
field_dist: ndarray[tuple[Any, ...], dtype[float32]] = <dataclasses._MISSING_TYPE object>#
image: ndarray[tuple[Any, ...], dtype[float32]] = <dataclasses._MISSING_TYPE object>#
max_field_dist_deg: float = <dataclasses._MISSING_TYPE object>#
refcat: SourceSet | None = <dataclasses._MISSING_TYPE object>#
selections: SourceSet | None = <dataclasses._MISSING_TYPE object>#