LSST Applications g0265f82a02+0e5473021a,g02d81e74bb+f5613e8b4f,g1470d8bcf6+190ad2ba91,g14a832a312+311607e4ab,g2079a07aa2+86d27d4dc4,g2305ad1205+a8e3196225,g295015adf3+b67ee847e5,g2bbee38e9b+0e5473021a,g337abbeb29+0e5473021a,g3ddfee87b4+a761f810f3,g487adcacf7+17c8fdbcbd,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+65b5bd823e,g5a732f18d5+53520f316c,g64a986408d+f5613e8b4f,g6c1bc301e9+51106c2951,g858d7b2824+f5613e8b4f,g8a8a8dda67+585e252eca,g99cad8db69+6729933424,g9ddcbc5298+9a081db1e4,ga1e77700b3+15fc3df1f7,ga8c6da7877+ef4e3a5875,gb0e22166c9+60f28cb32d,gb6a65358fc+0e5473021a,gba4ed39666+c2a2e4ac27,gbb8dafda3b+e9bba80f27,gc120e1dc64+eee469a5e5,gc28159a63d+0e5473021a,gcf0d15dbbd+a761f810f3,gdaeeff99f8+f9a426f77a,ge6526c86ff+d4c1d4bfef,ge79ae78c31+0e5473021a,gee10cc3b42+585e252eca,gf1cff7945b+f5613e8b4f,w.2024.16
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Static Protected Member Functions | Static Protected Attributes | Related Symbols | List of all members
lsst.afw.image._exposureSummaryStats.ExposureSummaryStats Class Reference
Inheritance diagram for lsst.afw.image._exposureSummaryStats.ExposureSummaryStats:
lsst::afw::typehandling::Storable lsst::afw::table::io::Persistable

Public Member Functions

 __post_init__ (self)
 
 isPersistable (self)
 
None update_schema (cls, Schema schema)
 
None update_record (self, BaseRecord record)
 
ExposureSummaryStats from_record (cls, BaseRecord record)
 
virtual std::shared_ptr< StorablecloneStorable () const
 Create a new object that is a copy of this one (optional operation).
 
virtual std::string toString () const
 Create a string representation of this object (optional operation).
 
virtual std::size_t hash_value () const
 Return a hash of this object (optional operation).
 
virtual bool equals (Storable const &other) const noexcept
 Compare this object to another Storable.
 
void writeFits (std::string const &fileName, std::string const &mode="w") const
 Write the object to a regular FITS file.
 
void writeFits (fits::MemFileManager &manager, std::string const &mode="w") const
 Write the object to a FITS image in memory.
 
void writeFits (fits::Fits &fitsfile) const
 Write the object to an already-open FITS object.
 
virtual bool isPersistable () const noexcept
 Return true if this particular object can be persisted using afw::table::io.
 

Static Public Attributes

int version = 0
 
float psfSigma = float('nan')
 
float psfArea = float('nan')
 
float psfIxx = float('nan')
 
float psfIyy = float('nan')
 
float psfIxy = float('nan')
 
float ra = float('nan')
 
float dec = float('nan')
 
float zenithDistance = float('nan')
 
float zeroPoint = float('nan')
 
float skyBg = float('nan')
 
float skyNoise = float('nan')
 
float meanVar = float('nan')
 
list raCorners = dataclasses.field(default_factory=_default_corners)
 
list decCorners = dataclasses.field(default_factory=_default_corners)
 
float astromOffsetMean = float('nan')
 
float astromOffsetStd = float('nan')
 
int nPsfStar = 0
 
float psfStarDeltaE1Median = float('nan')
 
float psfStarDeltaE2Median = float('nan')
 
float psfStarDeltaE1Scatter = float('nan')
 
float psfStarDeltaE2Scatter = float('nan')
 
float psfStarDeltaSizeMedian = float('nan')
 
float psfStarDeltaSizeScatter = float('nan')
 
float psfStarScaledDeltaSizeScatter = float('nan')
 
float psfTraceRadiusDelta = float('nan')
 
float maxDistToNearestPsf = float('nan')
 
float effTime = float('nan')
 
float effTimePsfSigmaScale = float('nan')
 
float effTimeSkyBgScale = float('nan')
 
float effTimeZeroPointScale = float('nan')
 

Protected Types

using OutputArchiveHandle = io::OutputArchiveHandle
 

Protected Member Functions

 _getPersistenceName (self)
 
 _getPythonModule (self)
 
 _write (self)
 
virtual std::string getPersistenceName () const
 Return the unique name used to persist this object and look up its factory.
 
virtual std::string getPythonModule () const
 Return the fully-qualified Python module that should be imported to guarantee that its factory is registered.
 
virtual void write (OutputArchiveHandle &handle) const
 Write the object to one or more catalogs.
 

Static Protected Member Functions

 _read (bytes)
 
template<class T >
static bool singleClassEquals (T const &lhs, Storable const &rhs)
 Test if a Storable is of a particular class and equal to another object.
 

Static Protected Attributes

str _persistence_name = 'ExposureSummaryStats'
 
 _factory = StorableHelperFactory(__name__, _persistence_name)
 

Related Symbols

(Note that these are not member symbols.)

std::ostreamoperator<< (std::ostream &os, Storable const &storable)
 Output operator for Storable.
 

Detailed Description

Definition at line 41 of file _exposureSummaryStats.py.

Member Typedef Documentation

◆ OutputArchiveHandle

using lsst::afw::table::io::Persistable::OutputArchiveHandle = io::OutputArchiveHandle
protectedinherited

Definition at line 108 of file Persistable.h.

Member Function Documentation

◆ __post_init__()

lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.__post_init__ ( self)

Definition at line 144 of file _exposureSummaryStats.py.

144 def __post_init__(self):
145 Storable.__init__(self)
146

◆ _getPersistenceName()

lsst.afw.image._exposureSummaryStats.ExposureSummaryStats._getPersistenceName ( self)
protected

Definition at line 150 of file _exposureSummaryStats.py.

150 def _getPersistenceName(self):
151 return self._persistence_name
152

◆ _getPythonModule()

lsst.afw.image._exposureSummaryStats.ExposureSummaryStats._getPythonModule ( self)
protected

Definition at line 153 of file _exposureSummaryStats.py.

153 def _getPythonModule(self):
154 return __name__
155

◆ _read()

lsst.afw.image._exposureSummaryStats.ExposureSummaryStats._read ( bytes)
staticprotected

Definition at line 160 of file _exposureSummaryStats.py.

160 def _read(bytes):
161 yamlDict = yaml.load(bytes, Loader=yaml.SafeLoader)
162
163 # Special list of fields to forward to new names.
164 forwardFieldDict = {"decl": "dec"}
165
166 # For forwards compatibility, filter out any fields that are
167 # not defined in the dataclass.
168 droppedFields = []
169 for _field in list(yamlDict.keys()):
170 if _field not in ExposureSummaryStats.__dataclass_fields__:
171 if _field in forwardFieldDict and forwardFieldDict[_field] not in yamlDict:
172 yamlDict[forwardFieldDict[_field]] = yamlDict[_field]
173 else:
174 droppedFields.append(_field)
175 yamlDict.pop(_field)
176 if len(droppedFields) > 0:
177 droppedFieldString = ", ".join([str(f) for f in droppedFields])
178 plural = "s" if len(droppedFields) != 1 else ""
179 them = "them" if len(droppedFields) > 1 else "it"
180 warnings.warn(
181 f"Summary field{plural} [{droppedFieldString}] not recognized by this software version;"
182 f" ignoring {them}.",
183 FutureWarning,
184 stacklevel=2,
185 )
186 return ExposureSummaryStats(**yamlDict)
187

◆ _write()

lsst.afw.image._exposureSummaryStats.ExposureSummaryStats._write ( self)
protected

Definition at line 156 of file _exposureSummaryStats.py.

156 def _write(self):
157 return yaml.dump(dataclasses.asdict(self), encoding='utf-8')
158

◆ cloneStorable()

std::shared_ptr< Storable > lsst::afw::typehandling::Storable::cloneStorable ( ) const
virtualinherited

Create a new object that is a copy of this one (optional operation).

This operation is required for Storables that are stored in GenericMap by value, but not for those stored by shared pointer.

Exceptions
UnsupportedOperationExceptionThrown if this object is not cloneable.
Note
If this class supports a clone operation, the two should behave identically except for the formal return type.
When called on Python classes, this method delegates to __deepcopy__ if it exists.

Reimplemented in lsst::afw::detection::Psf, lsst::afw::geom::polygon::Polygon, lsst::afw::geom::SkyWcs, lsst::afw::image::ApCorrMap, lsst::afw::image::CoaddInputs, lsst::afw::image::FilterLabel, lsst::afw::image::PhotoCalib, lsst::afw::image::VisitInfo, and lsst::afw::typehandling::StorableHelper< Base >.

Definition at line 36 of file Storable.cc.

36 {
37 throw LSST_EXCEPT(UnsupportedOperationException, "Cloning is not supported.");
38}
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
Definition Exception.h:48

◆ equals()

bool lsst::afw::typehandling::Storable::equals ( Storable const & other) const
virtualnoexceptinherited

Compare this object to another Storable.

Subclasses that implement equality comparison must override this method to give results consistent with operator== for all inputs that are accepted by both.

Returns
This implementation returns whether the two objects are the same.
Warning
This method compares an object to any type of Storable, although cross-class comparisons should usually return false. If cross-class comparisons are valid, implementers should take care that they are symmetric and will give the same result no matter what the compile-time types of the left- and right-hand sides are.
See also
singleClassEquals
Note
When called on Python classes, this method delegates to __eq__ if it exists.

Reimplemented in lsst::afw::typehandling::StorableHelper< Base >, lsst::afw::geom::polygon::Polygon, lsst::afw::geom::SkyWcs, lsst::afw::image::PhotoCalib, and lsst::afw::image::VisitInfo.

Definition at line 48 of file Storable.cc.

48{ return this == &other; }

◆ from_record()

ExposureSummaryStats lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.from_record ( cls,
BaseRecord record )
Read summary-statistic columns from a record into ``self``.

Parameters
----------
record : `lsst.afw.table.BaseRecord`
    Record to read from.  This is expected to frequently be an
    `ExposureRecord` instance (with higher-level code adding other
    columns and objects), but this method can work with any record
    type, ignoring any attributes or columns it doesn't recognize.

Returns
-------
summary : `ExposureSummaryStats`
    Summary statistics object created from the given record.

Definition at line 390 of file _exposureSummaryStats.py.

390 def from_record(cls, record: BaseRecord) -> ExposureSummaryStats:
391 """Read summary-statistic columns from a record into ``self``.
392
393 Parameters
394 ----------
395 record : `lsst.afw.table.BaseRecord`
396 Record to read from. This is expected to frequently be an
397 `ExposureRecord` instance (with higher-level code adding other
398 columns and objects), but this method can work with any record
399 type, ignoring any attributes or columns it doesn't recognize.
400
401 Returns
402 -------
403 summary : `ExposureSummaryStats`
404 Summary statistics object created from the given record.
405 """
406 return cls(
407 **{
408 field.name: (
409 record[field.name] if not field.type.startswith("list")
410 else [float(v) for v in record[field.name]]
411 )
412 for field in dataclasses.fields(cls)
413 if field.name != "version"
414 }
415 )

◆ getPersistenceName()

std::string lsst::afw::table::io::Persistable::getPersistenceName ( ) const
protectedvirtualinherited

Return the unique name used to persist this object and look up its factory.

Must be less than ArchiveIndexSchema::MAX_NAME_LENGTH characters.

Reimplemented in lsst::afw::image::FilterLabel, lsst::afw::cameraGeom::Camera, lsst::afw::cameraGeom::Detector, lsst::afw::cameraGeom::DetectorCollection, lsst::afw::cameraGeom::TransformMap, lsst::afw::detection::Footprint, lsst::afw::detection::GaussianPsf, lsst::afw::detection::HeavyFootprint< ImagePixelT, MaskPixelT, VariancePixelT >, lsst::afw::geom::polygon::Polygon, lsst::afw::geom::SkyWcs, lsst::afw::geom::SpanSet, lsst::afw::geom::Transform< FromEndpoint, ToEndpoint >, lsst::afw::geom::Transform< afw::geom::Point2Endpoint, afw::geom::GenericEndpoint >, lsst::afw::image::ApCorrMap, lsst::afw::image::CoaddInputs, lsst::afw::image::PhotoCalib, lsst::afw::image::VisitInfo, lsst::afw::math::ChebyshevBoundedField, lsst::afw::math::GaussianFunction2< ReturnT >, lsst::afw::math::DoubleGaussianFunction2< ReturnT >, lsst::afw::math::PolynomialFunction2< ReturnT >, lsst::afw::math::Chebyshev1Function2< ReturnT >, lsst::afw::math::FixedKernel, lsst::afw::math::AnalyticKernel, lsst::afw::math::DeltaFunctionKernel, lsst::afw::math::LinearCombinationKernel, lsst::afw::math::PixelAreaBoundedField, lsst::afw::math::ProductBoundedField, lsst::afw::math::TransformBoundedField, lsst::afw::math::LanczosWarpingKernel, lsst::afw::math::BilinearWarpingKernel, lsst::afw::math::NearestWarpingKernel, lsst::afw::math::WarpingControl, lsst::afw::typehandling::StorableHelper< Base >, lsst::meas::algorithms::CoaddBoundedField, lsst::meas::algorithms::CoaddPsf, lsst::meas::algorithms::DoubleGaussianPsf, lsst::meas::algorithms::KernelPsf, lsst::meas::algorithms::PcaPsf, lsst::meas::algorithms::SingleGaussianPsf, lsst::meas::algorithms::WarpedPsf, lsst::meas::extensions::psfex::PsfexPsf, and lsst::meas::modelfit::Mixture.

Definition at line 34 of file Persistable.cc.

34{ return std::string(); }

◆ getPythonModule()

std::string lsst::afw::table::io::Persistable::getPythonModule ( ) const
protectedvirtualinherited

Return the fully-qualified Python module that should be imported to guarantee that its factory is registered.

Must be less than ArchiveIndexSchema::MAX_MODULE_LENGTH characters.

Will be ignored if empty.

Reimplemented in lsst::afw::image::FilterLabel, lsst::afw::cameraGeom::Detector, lsst::afw::cameraGeom::DetectorCollection, lsst::afw::cameraGeom::TransformMap, lsst::afw::detection::Footprint, lsst::afw::detection::GaussianPsf, lsst::afw::geom::SkyWcs, lsst::afw::geom::SpanSet, lsst::afw::geom::Transform< FromEndpoint, ToEndpoint >, lsst::afw::geom::Transform< afw::geom::Point2Endpoint, afw::geom::GenericEndpoint >, lsst::afw::image::ApCorrMap, lsst::afw::image::CoaddInputs, lsst::afw::image::TransmissionCurve, lsst::afw::math::ChebyshevBoundedField, lsst::afw::math::Function< double >, lsst::afw::math::Function< Kernel::Pixel >, lsst::afw::math::Function< Pixel >, lsst::afw::math::Function< ReturnT >, lsst::afw::math::Kernel, lsst::afw::math::PixelAreaBoundedField, lsst::afw::math::ProductBoundedField, lsst::afw::math::TransformBoundedField, lsst::afw::math::LanczosWarpingKernel, lsst::afw::math::BilinearWarpingKernel, lsst::afw::math::NearestWarpingKernel, lsst::afw::math::WarpingControl, lsst::afw::typehandling::StorableHelper< Base >, lsst::meas::algorithms::CoaddBoundedField, lsst::meas::algorithms::CoaddPsf, lsst::meas::algorithms::KernelPsf, lsst::meas::algorithms::WarpedPsf, lsst::meas::extensions::psfex::PsfexPsf, and lsst::meas::modelfit::Mixture.

Definition at line 36 of file Persistable.cc.

36{ return std::string(); }

◆ hash_value()

std::size_t lsst::afw::typehandling::Storable::hash_value ( ) const
virtualinherited

Return a hash of this object (optional operation).

Exceptions
UnsupportedOperationExceptionThrown if this object is not hashable.
Note
C++ subclass authors are responsible for any associated specializations of std::hash.
When called on Python classes, this method delegates to __hash__ if it exists.

Reimplemented in lsst::afw::geom::polygon::Polygon, lsst::afw::image::FilterLabel, lsst::afw::image::VisitInfo, and lsst::afw::typehandling::StorableHelper< Base >.

Definition at line 44 of file Storable.cc.

44 {
45 throw LSST_EXCEPT(UnsupportedOperationException, "Hashes are not supported.");
46}

◆ isPersistable() [1/2]

virtual bool lsst::afw::table::io::Persistable::isPersistable ( ) const
inlinevirtualnoexceptinherited

Return true if this particular object can be persisted using afw::table::io.

Reimplemented in lsst::afw::cameraGeom::Camera, lsst::afw::cameraGeom::Detector, lsst::afw::cameraGeom::DetectorCollection, lsst::afw::cameraGeom::TransformMap, lsst::afw::detection::Footprint, lsst::afw::detection::GaussianPsf, lsst::afw::geom::polygon::Polygon, lsst::afw::geom::SkyWcs, lsst::afw::geom::SpanSet, lsst::afw::geom::Transform< FromEndpoint, ToEndpoint >, lsst::afw::geom::Transform< afw::geom::Point2Endpoint, afw::geom::GenericEndpoint >, lsst::afw::image::ApCorrMap, lsst::afw::image::CoaddInputs, lsst::afw::image::FilterLabel, lsst::afw::image::PhotoCalib, lsst::afw::image::VisitInfo, lsst::afw::math::ChebyshevBoundedField, lsst::afw::math::GaussianFunction2< ReturnT >, lsst::afw::math::DoubleGaussianFunction2< ReturnT >, lsst::afw::math::PolynomialFunction2< ReturnT >, lsst::afw::math::Chebyshev1Function2< ReturnT >, lsst::afw::math::FixedKernel, lsst::afw::math::AnalyticKernel, lsst::afw::math::DeltaFunctionKernel, lsst::afw::math::LinearCombinationKernel, lsst::afw::math::PixelAreaBoundedField, lsst::afw::math::ProductBoundedField, lsst::afw::math::TransformBoundedField, lsst::afw::math::LanczosWarpingKernel, lsst::afw::math::BilinearWarpingKernel, lsst::afw::math::NearestWarpingKernel, lsst::afw::math::WarpingControl, lsst::afw::typehandling::StorableHelper< Base >, lsst::meas::algorithms::CoaddBoundedField, lsst::meas::algorithms::CoaddPsf, lsst::meas::algorithms::DoubleGaussianPsf, lsst::meas::algorithms::KernelPsf, lsst::meas::algorithms::SingleGaussianPsf, lsst::meas::algorithms::WarpedPsf, lsst::meas::extensions::psfex::PsfexPsf, and lsst::meas::modelfit::Mixture.

Definition at line 102 of file Persistable.h.

102{ return false; }

◆ isPersistable() [2/2]

lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.isPersistable ( self)

Definition at line 147 of file _exposureSummaryStats.py.

147 def isPersistable(self):
148 return True
149

◆ singleClassEquals()

template<class T >
static bool lsst::afw::typehandling::Storable::singleClassEquals ( T const & lhs,
Storable const & rhs )
inlinestaticprotectedinherited

Test if a Storable is of a particular class and equal to another object.

This method template simplifies implementations of equals that delegate to operator== without supporting cross-class comparisons.

Template Parameters
TThe class expected of the two objects to be compared.
Parameters
lhs,rhsThe objects to compare. Note that rhs need not be a T, while lhs must be.
Returns
true if rhs is a T and lhs == rhs; false otherwise.
Exception Safety
Provides the same level of exception safety as operator==. Most implementations of operator== do not throw.
Note
This method template calls operator== with both arguments of compile-time type T const&. Its use is not recommended if there would be any ambiguity as to which operator== gets picked by overload resolution.

This method template is typically called from equals as:

bool MyType::equals(Storable const& other) const noexcept {
    return singleClassEquals(*this, other);
}

Definition at line 151 of file Storable.h.

151 {
152 auto typedRhs = dynamic_cast<T const*>(&rhs);
153 if (typedRhs != nullptr) {
154 return lhs == *typedRhs;
155 } else {
156 return false;
157 }
158 }

◆ toString()

std::string lsst::afw::typehandling::Storable::toString ( ) const
virtualinherited

Create a string representation of this object (optional operation).

Exceptions
UnsupportedOperationExceptionThrown if this object does not have a string representation.
Note
When called on Python classes, this method delegates to __repr__.

Reimplemented in lsst::afw::geom::polygon::Polygon, lsst::afw::geom::SkyWcs, lsst::afw::image::FilterLabel, lsst::afw::image::PhotoCalib, lsst::afw::image::VisitInfo, and lsst::afw::typehandling::StorableHelper< Base >.

Definition at line 40 of file Storable.cc.

40 {
41 throw LSST_EXCEPT(UnsupportedOperationException, "No string representation available.");
42}

◆ update_record()

None lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.update_record ( self,
BaseRecord record )
Write summary-statistic columns into a record.

Parameters
----------
record : `lsst.afw.table.BaseRecord`
    Record to update.  This is expected to frequently be an
    `ExposureRecord` instance (with higher-level code adding other
    columns and objects), but this method can work with any record
    type.

Definition at line 369 of file _exposureSummaryStats.py.

369 def update_record(self, record: BaseRecord) -> None:
370 """Write summary-statistic columns into a record.
371
372 Parameters
373 ----------
374 record : `lsst.afw.table.BaseRecord`
375 Record to update. This is expected to frequently be an
376 `ExposureRecord` instance (with higher-level code adding other
377 columns and objects), but this method can work with any record
378 type.
379 """
380 for field in dataclasses.fields(self):
381 value = getattr(self, field.name)
382 if field.name == "version":
383 continue
384 elif field.type.startswith("list"):
385 record[field.name][:] = value
386 else:
387 record[field.name] = value
388

◆ update_schema()

None lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.update_schema ( cls,
Schema schema )
Update an schema to includes for all summary statistic fields.

Parameters
-------
schema : `lsst.afw.table.Schema`
    Schema to add which fields will be added.

Definition at line 189 of file _exposureSummaryStats.py.

189 def update_schema(cls, schema: Schema) -> None:
190 """Update an schema to includes for all summary statistic fields.
191
192 Parameters
193 -------
194 schema : `lsst.afw.table.Schema`
195 Schema to add which fields will be added.
196 """
197 schema.addField(
198 "psfSigma",
199 type="F",
200 doc="PSF model second-moments determinant radius (center of chip) (pixel)",
201 units="pixel",
202 )
203 schema.addField(
204 "psfArea",
205 type="F",
206 doc="PSF model effective area (center of chip) (pixel**2)",
207 units='pixel**2',
208 )
209 schema.addField(
210 "psfIxx",
211 type="F",
212 doc="PSF model Ixx (center of chip) (pixel**2)",
213 units='pixel**2',
214 )
215 schema.addField(
216 "psfIyy",
217 type="F",
218 doc="PSF model Iyy (center of chip) (pixel**2)",
219 units='pixel**2',
220 )
221 schema.addField(
222 "psfIxy",
223 type="F",
224 doc="PSF model Ixy (center of chip) (pixel**2)",
225 units='pixel**2',
226 )
227 schema.addField(
228 "raCorners",
229 type="ArrayD",
230 size=4,
231 doc="Right Ascension of bounding box corners (degrees)",
232 units="degree",
233 )
234 schema.addField(
235 "decCorners",
236 type="ArrayD",
237 size=4,
238 doc="Declination of bounding box corners (degrees)",
239 units="degree",
240 )
241 schema.addField(
242 "ra",
243 type="D",
244 doc="Right Ascension of bounding box center (degrees)",
245 units="degree",
246 )
247 schema.addField(
248 "dec",
249 type="D",
250 doc="Declination of bounding box center (degrees)",
251 units="degree",
252 )
253 schema.addField(
254 "zenithDistance",
255 type="F",
256 doc="Zenith distance of bounding box center (degrees)",
257 units="degree",
258 )
259 schema.addField(
260 "zeroPoint",
261 type="F",
262 doc="Mean zeropoint in detector (mag)",
263 units="mag",
264 )
265 schema.addField(
266 "skyBg",
267 type="F",
268 doc="Average sky background (ADU)",
269 units="adu",
270 )
271 schema.addField(
272 "skyNoise",
273 type="F",
274 doc="Average sky noise (ADU)",
275 units="adu",
276 )
277 schema.addField(
278 "meanVar",
279 type="F",
280 doc="Mean variance of the weight plane (ADU**2)",
281 units="adu**2"
282 )
283 schema.addField(
284 "astromOffsetMean",
285 type="F",
286 doc="Mean offset of astrometric calibration matches (arcsec)",
287 units="arcsec",
288 )
289 schema.addField(
290 "astromOffsetStd",
291 type="F",
292 doc="Standard deviation of offsets of astrometric calibration matches (arcsec)",
293 units="arcsec",
294 )
295 schema.addField("nPsfStar", type="I", doc="Number of stars used for PSF model")
296 schema.addField(
297 "psfStarDeltaE1Median",
298 type="F",
299 doc="Median E1 residual (starE1 - psfE1) for psf stars",
300 )
301 schema.addField(
302 "psfStarDeltaE2Median",
303 type="F",
304 doc="Median E2 residual (starE2 - psfE2) for psf stars",
305 )
306 schema.addField(
307 "psfStarDeltaE1Scatter",
308 type="F",
309 doc="Scatter (via MAD) of E1 residual (starE1 - psfE1) for psf stars",
310 )
311 schema.addField(
312 "psfStarDeltaE2Scatter",
313 type="F",
314 doc="Scatter (via MAD) of E2 residual (starE2 - psfE2) for psf stars",
315 )
316 schema.addField(
317 "psfStarDeltaSizeMedian",
318 type="F",
319 doc="Median size residual (starSize - psfSize) for psf stars (pixel)",
320 units="pixel",
321 )
322 schema.addField(
323 "psfStarDeltaSizeScatter",
324 type="F",
325 doc="Scatter (via MAD) of size residual (starSize - psfSize) for psf stars (pixel)",
326 units="pixel",
327 )
328 schema.addField(
329 "psfStarScaledDeltaSizeScatter",
330 type="F",
331 doc="Scatter (via MAD) of size residual scaled by median size squared",
332 )
333 schema.addField(
334 "psfTraceRadiusDelta",
335 type="F",
336 doc="Delta (max - min) of the model psf trace radius values evaluated on a grid of "
337 "unmasked pixels (pixel).",
338 units="pixel",
339 )
340 schema.addField(
341 "maxDistToNearestPsf",
342 type="F",
343 doc="Maximum distance of an unmasked pixel to its nearest model psf star (pixel).",
344 units="pixel",
345 )
346 schema.addField(
347 "effTime",
348 type="F",
349 doc="Effective exposure time calculated from psfSigma, skyBg, and "
350 "zeroPoint (seconds).",
351 units="second",
352 )
353 schema.addField(
354 "effTimePsfSigmaScale",
355 type="F",
356 doc="PSF scaling of the effective exposure time."
357 )
358 schema.addField(
359 "effTimeSkyBgScale",
360 type="F",
361 doc="Sky background scaling of the effective exposure time."
362 )
363 schema.addField(
364 "effTimeZeroPointScale",
365 type="F",
366 doc="Zeropoint scaling of the effective exposure time."
367 )
368

◆ write()

void lsst::afw::table::io::Persistable::write ( OutputArchiveHandle & handle) const
protectedvirtualinherited

Write the object to one or more catalogs.

The handle object passed to this function provides an interface for adding new catalogs and adding nested objects to the same archive (while checking for duplicates). See OutputArchiveHandle for more information.

Reimplemented in lsst::afw::math::GaussianFunction2< ReturnT >, lsst::afw::math::DoubleGaussianFunction2< ReturnT >, lsst::afw::math::PolynomialFunction2< ReturnT >, lsst::afw::math::Chebyshev1Function2< ReturnT >, lsst::meas::extensions::psfex::PsfexPsf, lsst::afw::cameraGeom::Camera, lsst::afw::cameraGeom::Detector, lsst::afw::cameraGeom::DetectorCollection, lsst::afw::cameraGeom::TransformMap, lsst::afw::detection::Footprint, lsst::afw::detection::GaussianPsf, lsst::afw::detection::HeavyFootprint< ImagePixelT, MaskPixelT, VariancePixelT >, lsst::afw::geom::polygon::Polygon, lsst::afw::geom::SkyWcs, lsst::afw::geom::SpanSet, lsst::afw::geom::Transform< FromEndpoint, ToEndpoint >, lsst::afw::geom::Transform< afw::geom::Point2Endpoint, afw::geom::GenericEndpoint >, lsst::afw::image::ApCorrMap, lsst::afw::image::CoaddInputs, lsst::afw::image::PhotoCalib, lsst::afw::image::VisitInfo, lsst::afw::math::ChebyshevBoundedField, lsst::afw::math::FixedKernel, lsst::afw::math::AnalyticKernel, lsst::afw::math::DeltaFunctionKernel, lsst::afw::math::LinearCombinationKernel, lsst::afw::math::PixelAreaBoundedField, lsst::afw::math::ProductBoundedField, lsst::afw::math::TransformBoundedField, lsst::afw::math::LanczosWarpingKernel, lsst::afw::math::BilinearWarpingKernel, lsst::afw::math::NearestWarpingKernel, lsst::afw::math::WarpingControl, lsst::meas::algorithms::CoaddBoundedField, lsst::meas::algorithms::CoaddPsf, lsst::meas::algorithms::DoubleGaussianPsf, lsst::meas::algorithms::KernelPsf, lsst::meas::algorithms::SingleGaussianPsf, lsst::meas::algorithms::WarpedPsf, lsst::meas::modelfit::Mixture, lsst::afw::image::FilterLabel, and lsst::afw::typehandling::StorableHelper< Base >.

Definition at line 38 of file Persistable.cc.

38 {
39 assert(!isPersistable());
40 throw LSST_EXCEPT(pex::exceptions::LogicError,
41 "afw::table-based persistence is not supported for this object.");
42}
virtual bool isPersistable() const noexcept
Return true if this particular object can be persisted using afw::table::io.

◆ writeFits() [1/3]

void lsst::afw::table::io::Persistable::writeFits ( fits::Fits & fitsfile) const
inherited

Write the object to an already-open FITS object.

Parameters
[in]fitsfileOpen FITS object to write to.

Definition at line 18 of file Persistable.cc.

18 {
19 OutputArchive archive;
20 archive.put(this);
21 archive.writeFits(fitsfile);
22}

◆ writeFits() [2/3]

void lsst::afw::table::io::Persistable::writeFits ( fits::MemFileManager & manager,
std::string const & mode = "w" ) const
inherited

Write the object to a FITS image in memory.

Parameters
[in]managerName of the file to write to.
[in]modeIf "w", any existing file with the given name will be overwritten. If "a", new HDUs will be appended to an existing file.

Definition at line 29 of file Persistable.cc.

29 {
30 fits::Fits fitsfile(manager, mode, fits::Fits::AUTO_CLOSE | fits::Fits::AUTO_CHECK);
31 writeFits(fitsfile);
32}
void writeFits(std::string const &fileName, std::string const &mode="w") const
Write the object to a regular FITS file.

◆ writeFits() [3/3]

void lsst::afw::table::io::Persistable::writeFits ( std::string const & fileName,
std::string const & mode = "w" ) const
inherited

Write the object to a regular FITS file.

Parameters
[in]fileNameName of the file to write to.
[in]modeIf "w", any existing file with the given name will be overwritten. If "a", new HDUs will be appended to an existing file.

Definition at line 24 of file Persistable.cc.

24 {
25 fits::Fits fitsfile(fileName, mode, fits::Fits::AUTO_CLOSE | fits::Fits::AUTO_CHECK);
26 writeFits(fitsfile);
27}

Friends And Related Symbol Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream & os,
Storable const & storable )
related

Output operator for Storable.

Parameters
osthe desired output stream
storablethe object to print
Returns
a reference to os
Exceptions
UnsupportedOperationExceptionThrown if storable does not have an implementation of Storable::toString.

Definition at line 174 of file Storable.h.

174 {
175 return os << storable.toString();
176}

Member Data Documentation

◆ _factory

lsst.afw.image._exposureSummaryStats.ExposureSummaryStats._factory = StorableHelperFactory(__name__, _persistence_name)
staticprotected

Definition at line 44 of file _exposureSummaryStats.py.

◆ _persistence_name

str lsst.afw.image._exposureSummaryStats.ExposureSummaryStats._persistence_name = 'ExposureSummaryStats'
staticprotected

Definition at line 42 of file _exposureSummaryStats.py.

◆ astromOffsetMean

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.astromOffsetMean = float('nan')
static

Definition at line 90 of file _exposureSummaryStats.py.

◆ astromOffsetStd

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.astromOffsetStd = float('nan')
static

Definition at line 93 of file _exposureSummaryStats.py.

◆ dec

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.dec = float('nan')
static

Definition at line 66 of file _exposureSummaryStats.py.

◆ decCorners

list lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.decCorners = dataclasses.field(default_factory=_default_corners)
static

Definition at line 87 of file _exposureSummaryStats.py.

◆ effTime

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.effTime = float('nan')
static

Definition at line 130 of file _exposureSummaryStats.py.

◆ effTimePsfSigmaScale

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.effTimePsfSigmaScale = float('nan')
static

Definition at line 135 of file _exposureSummaryStats.py.

◆ effTimeSkyBgScale

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.effTimeSkyBgScale = float('nan')
static

Definition at line 138 of file _exposureSummaryStats.py.

◆ effTimeZeroPointScale

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.effTimeZeroPointScale = float('nan')
static

Definition at line 141 of file _exposureSummaryStats.py.

◆ maxDistToNearestPsf

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.maxDistToNearestPsf = float('nan')
static

Definition at line 125 of file _exposureSummaryStats.py.

◆ meanVar

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.meanVar = float('nan')
static

Definition at line 81 of file _exposureSummaryStats.py.

◆ nPsfStar

int lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.nPsfStar = 0
static

Definition at line 96 of file _exposureSummaryStats.py.

◆ psfArea

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.psfArea = float('nan')
static

Definition at line 51 of file _exposureSummaryStats.py.

◆ psfIxx

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.psfIxx = float('nan')
static

Definition at line 54 of file _exposureSummaryStats.py.

◆ psfIxy

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.psfIxy = float('nan')
static

Definition at line 60 of file _exposureSummaryStats.py.

◆ psfIyy

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.psfIyy = float('nan')
static

Definition at line 57 of file _exposureSummaryStats.py.

◆ psfSigma

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.psfSigma = float('nan')
static

Definition at line 48 of file _exposureSummaryStats.py.

◆ psfStarDeltaE1Median

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.psfStarDeltaE1Median = float('nan')
static

Definition at line 99 of file _exposureSummaryStats.py.

◆ psfStarDeltaE1Scatter

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.psfStarDeltaE1Scatter = float('nan')
static

Definition at line 105 of file _exposureSummaryStats.py.

◆ psfStarDeltaE2Median

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.psfStarDeltaE2Median = float('nan')
static

Definition at line 102 of file _exposureSummaryStats.py.

◆ psfStarDeltaE2Scatter

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.psfStarDeltaE2Scatter = float('nan')
static

Definition at line 108 of file _exposureSummaryStats.py.

◆ psfStarDeltaSizeMedian

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.psfStarDeltaSizeMedian = float('nan')
static

Definition at line 111 of file _exposureSummaryStats.py.

◆ psfStarDeltaSizeScatter

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.psfStarDeltaSizeScatter = float('nan')
static

Definition at line 114 of file _exposureSummaryStats.py.

◆ psfStarScaledDeltaSizeScatter

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.psfStarScaledDeltaSizeScatter = float('nan')
static

Definition at line 117 of file _exposureSummaryStats.py.

◆ psfTraceRadiusDelta

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.psfTraceRadiusDelta = float('nan')
static

Definition at line 120 of file _exposureSummaryStats.py.

◆ ra

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.ra = float('nan')
static

Definition at line 63 of file _exposureSummaryStats.py.

◆ raCorners

list lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.raCorners = dataclasses.field(default_factory=_default_corners)
static

Definition at line 84 of file _exposureSummaryStats.py.

◆ skyBg

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.skyBg = float('nan')
static

Definition at line 75 of file _exposureSummaryStats.py.

◆ skyNoise

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.skyNoise = float('nan')
static

Definition at line 78 of file _exposureSummaryStats.py.

◆ version

int lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.version = 0
static

Definition at line 46 of file _exposureSummaryStats.py.

◆ zenithDistance

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.zenithDistance = float('nan')
static

Definition at line 69 of file _exposureSummaryStats.py.

◆ zeroPoint

float lsst.afw.image._exposureSummaryStats.ExposureSummaryStats.zeroPoint = float('nan')
static

Definition at line 72 of file _exposureSummaryStats.py.


The documentation for this class was generated from the following file: