Extract extended PSF cutouts, and warp to the same pixel grid.
The ExtendedPsfCutoutTask is used to extract, process, and store small
image cutouts around stars.
This task essentially consists of two principal steps.
First, it identifies stars within an exposure using a reference
catalog and extracts a cutout around each.
Second, it shifts and warps each cutout to remove optical distortions and
sample all stars on the same pixel grid.
Definition at line 191 of file extended_psf_cutout.py.
| Table lsst.pipe.tasks.extended_psf.extended_psf_cutout.ExtendedPsfCutoutTask._get_extended_psf_candidate_table |
( |
| self, |
|
|
ReferenceObjectLoader | ref_obj_loader, |
|
|
ExposureF | input_exposure ) |
|
protected |
Get a table of extended PSF candidates from the reference catalog.
Trim the reference catalog to only those objects within the exposure
bounding box.
Then, select stars based on the specified magnitude range,
isolation criteria, and optionally focal plane radius criteria.
Finally, add columns with pixel coordinates and focal plane coordinates
for each extended PSF candidate.
Parameters
----------
ref_obj_loader : `~lsst.meas.algorithms.ReferenceObjectLoader`
Loader to find objects within a reference catalog.
input_exposure : `~lsst.afw.image.ExposureF`
The exposure for which extended PSF candidates are being selected.
Returns
-------
extended_psf_candidate_table : `~astropy.table.Table`
Table of extended PSF candidates within the exposure.
Definition at line 259 of file extended_psf_cutout.py.
| ExtendedPsfCandidates | None lsst.pipe.tasks.extended_psf.extended_psf_cutout.ExtendedPsfCutoutTask._get_extended_psf_candidates |
( |
| self, |
|
|
ExposureF | input_exposure, |
|
|
BackgroundList | None | input_background, |
|
|
SourceCatalog | np.ndarray | footprints, |
|
|
Table | extended_psf_candidate_table ) |
|
protected |
Extract and warp extended PSF candidate cutouts.
For each extended PSF candidate, extract a cutout from the input
exposure centered on the candidate's pixel coordinates.
Then, shift and warp the cutout to recenter on the candidate and align
each to the same orientation.
Finally, check the fraction of the cutout area that is masked
(e.g. due to neighboring sources or bad pixels), and only retain those
with sufficient unmasked area.
Parameters
----------
input_exposure : `~lsst.afw.image.ExposureF`
The science image to extract extended PSF cutouts.
input_background : `~lsst.afw.math.BackgroundList` | None
The background model associated with the input exposure.
If provided, this will be added back on to the input image.
footprints : `~lsst.afw.table.SourceCatalog` | `numpy.ndarray`
The source catalog containing footprints on the input exposure, or
a 2D numpy array with the same dimensions as the input exposure
where each pixel value corresponds to the source footprint ID.
extended_psf_candidate_table : `~astropy.table.Table`
Table of extended PSF candidates for which to extract cutouts.
Returns
-------
extended_psf_candidates :
`~lsst.pipe.tasks.extendedPsf.ExtendedPsfCandidates` | None
A set of cutouts, each centered on an extended PSF candidate.
If no cutouts are retained post-masking, returns `None`.
Definition at line 368 of file extended_psf_cutout.py.