BrightStarStamp¶
- class lsst.meas.algorithms.BrightStarStamp(stamp_im: MaskedImageF, psf: Psf | None, wcs: SkyWcs | None, visit: int | None, detector: int | None, ref_id: int | None, ref_mag: float | None, position: Point2D | None, focal_plane_radius: float | None, focal_plane_angle: Angle | None, scale: float | None, scale_err: float | None, pedestal: float | None, pedestal_err: float | None, pedestal_scale_cov: float | None, gradient_x: float | None, gradient_y: float | None, global_reduced_chi_squared: float | None, global_degrees_of_freedom: int | None, psf_reduced_chi_squared: float | None, psf_degrees_of_freedom: int | None, psf_masked_flux_fraction: float | None)¶
Bases:
AbstractStampA single postage stamp centered on a bright star.
- Attributes:
- stamp_im
MaskedImageF The pixel data for this stamp.
- psf
Psf, optional The point-spread function for this star.
- wcs
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
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
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.
- 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.
- stamp_im
Notes
This class is designed to be used with
BrightStarStamps, which manages collections of these stamps and handles reading/writing them to FITS files. Thefactoryclass method provides a standard interface to construct instances from image data and metadata, while the_getMetadatamethod extracts metadata for storage in FITS headers.Attributes Summary
Return the stamp's metadata as a PropertyList.
Methods Summary
factory(stamp_im, psf, wcs, metadata)Construct a
BrightStarStampfrom image data and metadata.Attributes Documentation
- metadata¶
Return the stamp’s metadata as a PropertyList.
Methods Documentation
- classmethod factory(stamp_im: MaskedImageF, psf: Psf | None, wcs: SkyWcs | None, metadata: PropertyList) BrightStarStamp¶
Construct a
BrightStarStampfrom image data and metadata.This method provides a standard interface to create a
BrightStarStampfrom its image data, PSF, WCS, and associated metadata. It is used by theBrightStarStamps.readFitsmethod to construct individual bright star stamps from FITS files.- Parameters:
- Returns:
- brightStarStamp
BrightStarStamp The constructed
BrightStarStampinstance.
- brightStarStamp