|
lsst.meas.algorithms g1d3acf762d+f7d6f6868b
|
Public Member Functions | |
| PropertyList | metadata (self) |
| BrightStarStamp | factory (cls, MaskedImageF stamp_im, Psf|None psf, SkyWcs|None wcs, PropertyList metadata) |
Static Public Attributes | |
| Psf | psf | None |
| SkyWcs | wcs | None |
| int | visit | None |
| int | detector | None |
| int | ref_id | None |
| float | ref_mag | None |
| Point2D | position | None |
| float | focal_plane_radius | None |
| Angle | focal_plane_angle | None |
| float | scale | None |
| float | scale_err | None |
| float | pedestal | None |
| float | pedestal_err | None |
| float | pedestal_scale_cov | None |
| float | gradient_x | None |
| float | gradient_y | None |
| float | curvature_x | None |
| float | curvature_y | None |
| float | curvature_xy | None |
| float | global_reduced_chi_squared | None |
| int | global_degrees_of_freedom | None |
| float | psf_reduced_chi_squared | None |
| int | psf_degrees_of_freedom | None |
| float | psf_masked_flux_fraction | None |
Protected Member Functions | |
| PropertyList | _getMetadata (self) |
Static Protected Attributes | |
| dict | _metadata_attribute_map |
A single postage stamp centered on a bright star.
Attributes
----------
stamp_im : `~lsst.afw.image.MaskedImageF`
The pixel data for this stamp.
psf : `~lsst.afw.detection.Psf`, optional
The point-spread function for this star.
wcs : `~lsst.afw.geom.SkyWcs`, optional
World coordinate system associated with the stamp.
visit : `int`, optional
Visit number of the observation.
detector : `int`, optional
Detector ID within the visit.
ref_id : `int`, optional
Reference catalog ID of the star.
ref_mag : `float`, optional
Reference catalog magnitude of the star.
position : `~lsst.geom.Point2D`, optional
Center position of the star on the detector in pixel coordinates.
focal_plane_radius : `float`, optional
Radial distance from the focal plane center in tangent-plane pixels.
focal_plane_angle : `~lsst.geom.Angle`, optional
Azimuthal angle on the focal plane (counterclockwise from +X).
scale : `float`, optional
Flux scaling factor applied to the PSF model.
scale_err : `float`, optional
Error in the flux scale.
pedestal : `float`, optional
Background pedestal level.
pedestal_err : `float`, optional
Error on the pedestal.
pedestal_scale_cov : `float`, optional
Covariance between pedestal and scale.
gradient_x : `float`, optional
Background gradient in the X direction.
gradient_y : `float`, optional
Background gradient in the Y direction.
curvature_x: `float`, optional
Background curvature in the X direction.
curvature_y: `float`, optional
Background curvature in the Y direction.
curvature_xy: `float`, optional
The xy component of the second order fit.
global_reduced_chi_squared : `float`, optional
Reduced chi-squared for the global model fit.
global_degrees_of_freedom : `int`, optional
Degrees of freedom for the global model fit.
psf_reduced_chi_squared : `float`, optional
Reduced chi-squared for the PSF fit.
psf_degrees_of_freedom : `int`, optional
Degrees of freedom for the PSF fit.
psf_masked_flux_fraction : `float`, optional
Fraction of flux masked in the PSF.
Notes
-----
This class is designed to be used with `BrightStarStamps`, which manages
collections of these stamps and handles reading/writing them to FITS files.
The `factory` class method provides a standard interface to construct
instances from image data and metadata, while the `_getMetadata` method
extracts metadata for storage in FITS headers.
Definition at line 45 of file brightStarStamps.py.
|
protected |
Extract metadata from the stamp's attributes.
This method constructs a `PropertyList` containing metadata
extracted from the stamp's attributes. It is used when writing the
stamp to a FITS file to store relevant metadata in the FITS headers.
Returns
-------
metadata : `PropertyList`
A `PropertyList` containing the metadata, or `None` if no
metadata attributes are defined.
Definition at line 163 of file brightStarStamps.py.
| BrightStarStamp lsst.meas.algorithms.brightStarStamps.BrightStarStamp.factory | ( | cls, | |
| MaskedImageF | stamp_im, | ||
| Psf | None | psf, | ||
| SkyWcs | None | wcs, | ||
| PropertyList | metadata ) |
Construct a `BrightStarStamp` from image data and metadata.
This method provides a standard interface to create a `BrightStarStamp`
from its image data, PSF, WCS, and associated metadata.
It is used by the `BrightStarStamps.readFits` method to construct
individual bright star stamps from FITS files.
Parameters
----------
stamp_im : `~lsst.afw.image.MaskedImageF`
Masked image for the stamp.
psf : `~lsst.afw.detection.Psf`, optional
Point-spread function for the stamp.
wcs : `~lsst.afw.geom.SkyWcs`, optional
World coordinate system for the stamp.
metadata : `PropertyList`
Metadata associated with the stamp, containing keys for all
required attributes.
Returns
-------
brightStarStamp : `BrightStarStamp`
The constructed `BrightStarStamp` instance.
Reimplemented from lsst.meas.algorithms.stamps.AbstractStamp.
Definition at line 194 of file brightStarStamps.py.
| PropertyList lsst.meas.algorithms.brightStarStamps.BrightStarStamp.metadata | ( | self | ) |
Return the stamp's metadata as a PropertyList.
Reimplemented in lsst.meas.algorithms.brightStarStamps.BrightStarStamps.
Definition at line 189 of file brightStarStamps.py.
|
staticprotected |
Definition at line 137 of file brightStarStamps.py.
|
static |
Definition at line 127 of file brightStarStamps.py.
|
static |
Definition at line 129 of file brightStarStamps.py.
|
static |
Definition at line 128 of file brightStarStamps.py.
|
static |
Definition at line 114 of file brightStarStamps.py.
|
static |
Definition at line 119 of file brightStarStamps.py.
|
static |
Definition at line 118 of file brightStarStamps.py.
|
static |
Definition at line 131 of file brightStarStamps.py.
|
static |
Definition at line 130 of file brightStarStamps.py.
|
static |
Definition at line 125 of file brightStarStamps.py.
|
static |
Definition at line 126 of file brightStarStamps.py.
|
static |
Definition at line 122 of file brightStarStamps.py.
|
static |
Definition at line 123 of file brightStarStamps.py.
|
static |
Definition at line 124 of file brightStarStamps.py.
|
static |
Definition at line 117 of file brightStarStamps.py.
|
static |
Definition at line 111 of file brightStarStamps.py.
|
static |
Definition at line 133 of file brightStarStamps.py.
|
static |
Definition at line 134 of file brightStarStamps.py.
|
static |
Definition at line 132 of file brightStarStamps.py.
|
static |
Definition at line 115 of file brightStarStamps.py.
|
static |
Definition at line 116 of file brightStarStamps.py.
|
static |
Definition at line 120 of file brightStarStamps.py.
|
static |
Definition at line 121 of file brightStarStamps.py.
|
static |
Definition at line 113 of file brightStarStamps.py.
|
static |
Definition at line 112 of file brightStarStamps.py.