|
lsst.meas.algorithms g1d3acf762d+812787a8c8
|
Public Member Functions | |
| __init__ (self, Sequence[BrightStarStamp] brightStarStamps, PropertyList|None metadata=None) | |
| __len__ (self) | |
| __getitem__ (self, index) | |
| __iter__ (self) | |
| metadata (self) | |
| BrightStarStamps | readFits (cls, str filename) |
| BrightStarStamps | readFitsWithOptions (cls, str filename, PropertyList|None options) |
| writeFits (self, str filename) | |
| BrightStarStamp | factory (cls, MaskedImageF stamp_im, Psf|None psf, SkyWcs|None wcs, PropertyList metadata) |
Public Attributes | |
| dict | by_ref_id = {stamp.ref_id: stamp for stamp in self} |
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) |
Protected Attributes | |
| _stamps = list(brightStarStamps) | |
| _metadata = PropertyList() if metadata is None else metadata.deepCopy() | |
Static Protected Attributes | |
| dict | _metadata_attribute_map |
A collection of bright star stamps.
Parameters
----------
brightStarStamps : `Iterable` [`BrightStarStamp`]
Collection of `BrightStarStamp` instances.
metadata : `~lsst.daf.base.PropertyList`, optional
Global metadata associated with the collection.
Definition at line 242 of file brightStarStamps.py.
| lsst.meas.algorithms.brightStarStamps.BrightStarStamps.__init__ | ( | self, | |
| Sequence[BrightStarStamp] | brightStarStamps, | ||
| PropertyList | None | metadata = None ) |
Definition at line 253 of file brightStarStamps.py.
| lsst.meas.algorithms.brightStarStamps.BrightStarStamps.__getitem__ | ( | self, | |
| index ) |
Definition at line 265 of file brightStarStamps.py.
| lsst.meas.algorithms.brightStarStamps.BrightStarStamps.__iter__ | ( | self | ) |
Definition at line 270 of file brightStarStamps.py.
| lsst.meas.algorithms.brightStarStamps.BrightStarStamps.__len__ | ( | self | ) |
Definition at line 262 of file brightStarStamps.py.
|
protectedinherited |
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.
|
inherited |
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.
| lsst.meas.algorithms.brightStarStamps.BrightStarStamps.metadata | ( | self | ) |
Return the collection's global metadata as a PropertyList.
Reimplemented from lsst.meas.algorithms.brightStarStamps.BrightStarStamp.
Definition at line 274 of file brightStarStamps.py.
| BrightStarStamps lsst.meas.algorithms.brightStarStamps.BrightStarStamps.readFits | ( | cls, | |
| str | filename ) |
Make a `BrightStarStamps` object from a FITS file.
Parameters
----------
filename : `str`
Name of the FITS file to read.
Returns
-------
brightStarStamps : `BrightStarStamps`
The constructed `BrightStarStamps` instance.
Definition at line 279 of file brightStarStamps.py.
| BrightStarStamps lsst.meas.algorithms.brightStarStamps.BrightStarStamps.readFitsWithOptions | ( | cls, | |
| str | filename, | ||
| PropertyList | None | options ) |
Make a `BrightStarStamps` object from a FITS file, with options.
Parameters
----------
filename : `str`
Name of the FITS file to read.
options : `~lsst.daf.base.PropertyList`, optional
Options for reading the FITS file. Not currently used.
Returns
-------
brightStarStamps : `BrightStarStamps`
The constructed `BrightStarStamps` instance.
Definition at line 295 of file brightStarStamps.py.
| lsst.meas.algorithms.brightStarStamps.BrightStarStamps.writeFits | ( | self, | |
| str | filename ) |
Write this `BrightStarStamps` object to a FITS file.
Parameters
----------
filename : `str`
Name of the FITS file to write.
Definition at line 374 of file brightStarStamps.py.
|
protected |
Definition at line 259 of file brightStarStamps.py.
|
staticprotectedinherited |
Definition at line 137 of file brightStarStamps.py.
|
protected |
Definition at line 258 of file brightStarStamps.py.
| dict lsst.meas.algorithms.brightStarStamps.BrightStarStamps.by_ref_id = {stamp.ref_id: stamp for stamp in self} |
Definition at line 260 of file brightStarStamps.py.
|
staticinherited |
Definition at line 127 of file brightStarStamps.py.
|
staticinherited |
Definition at line 129 of file brightStarStamps.py.
|
staticinherited |
Definition at line 128 of file brightStarStamps.py.
|
staticinherited |
Definition at line 114 of file brightStarStamps.py.
|
staticinherited |
Definition at line 119 of file brightStarStamps.py.
|
staticinherited |
Definition at line 118 of file brightStarStamps.py.
|
staticinherited |
Definition at line 131 of file brightStarStamps.py.
|
staticinherited |
Definition at line 130 of file brightStarStamps.py.
|
staticinherited |
Definition at line 125 of file brightStarStamps.py.
|
staticinherited |
Definition at line 126 of file brightStarStamps.py.
|
staticinherited |
Definition at line 122 of file brightStarStamps.py.
|
staticinherited |
Definition at line 123 of file brightStarStamps.py.
|
staticinherited |
Definition at line 124 of file brightStarStamps.py.
|
staticinherited |
Definition at line 117 of file brightStarStamps.py.
|
staticinherited |
Definition at line 111 of file brightStarStamps.py.
|
staticinherited |
Definition at line 133 of file brightStarStamps.py.
|
staticinherited |
Definition at line 134 of file brightStarStamps.py.
|
staticinherited |
Definition at line 132 of file brightStarStamps.py.
|
staticinherited |
Definition at line 115 of file brightStarStamps.py.
|
staticinherited |
Definition at line 116 of file brightStarStamps.py.
|
staticinherited |
Definition at line 120 of file brightStarStamps.py.
|
staticinherited |
Definition at line 121 of file brightStarStamps.py.
|
staticinherited |
Definition at line 113 of file brightStarStamps.py.
|
staticinherited |
Definition at line 112 of file brightStarStamps.py.