LSST Applications g063fba187b+fee0456c91,g0f08755f38+ea96e5a5a3,g1653933729+a8ce1bb630,g168dd56ebc+a8ce1bb630,g1a2382251a+90257ff92a,g20f6ffc8e0+ea96e5a5a3,g217e2c1bcf+937a289c59,g28da252d5a+daa7da44eb,g2bbee38e9b+253935c60e,g2bc492864f+253935c60e,g3156d2b45e+6e55a43351,g32e5bea42b+31359a2a7a,g347aa1857d+253935c60e,g35bb328faa+a8ce1bb630,g3a166c0a6a+253935c60e,g3b1af351f3+a8ce1bb630,g3e281a1b8c+c5dd892a6c,g414038480c+416496e02f,g41af890bb2+afe91b1188,g599934f4f4+0db33f7991,g7af13505b9+e36de7bce6,g80478fca09+da231ba887,g82479be7b0+a4516e59e3,g858d7b2824+ea96e5a5a3,g89c8672015+f4add4ffd5,g9125e01d80+a8ce1bb630,ga5288a1d22+bc6ab8dfbd,gb58c049af0+d64f4d3760,gc28159a63d+253935c60e,gcab2d0539d+3f2b72788c,gcf0d15dbbd+4ea9c45075,gda6a2b7d83+4ea9c45075,gdaeeff99f8+1711a396fd,ge79ae78c31+253935c60e,gef2f8181fd+3031e3cf99,gf0baf85859+c1f95f4921,gfa517265be+ea96e5a5a3,gfa999e8aa5+17cd334064,w.2024.50
LSST Data Management Base Package
|
Record class used to store exposure metadata. More...
#include <Exposure.h>
Public Types | |
using | Table = ExposureTable |
using | ColumnView = ColumnViewT<ExposureRecord> |
using | Catalog = ExposureCatalogT<ExposureRecord> |
using | ConstCatalog = ExposureCatalogT<const ExposureRecord> |
Public Member Functions | |
ExposureRecord (ConstructionToken const &token, detail::RecordData &&data) | |
Constructor used by ExposureTable. | |
std::shared_ptr< ExposureTable const > | getTable () const |
RecordId | getId () const |
void | setId (RecordId id) |
lsst::geom::Box2I | getBBox () const |
void | setBBox (lsst::geom::Box2I const &bbox) |
bool | contains (lsst::geom::SpherePoint const &coord, bool includeValidPolygon=false) const |
Return true if the bounding box contains the given celestial coordinate point, taking into account the Wcs of the ExposureRecord. | |
bool | contains (lsst::geom::Point2D const &point, geom::SkyWcs const &wcs, bool includeValidPolygon=false) const |
Return true if the bounding box contains the given point, taking into account its Wcs (given) and the Wcs of the ExposureRecord. | |
std::shared_ptr< geom::SkyWcs const > | getWcs () const |
Get/Set the the attached Wcs, Psf, PhotoCalib, or ApCorrMap. No copies are made. | |
void | setWcs (std::shared_ptr< geom::SkyWcs const > wcs) |
std::shared_ptr< detection::Psf const > | getPsf () const |
void | setPsf (std::shared_ptr< detection::Psf const > psf) |
std::shared_ptr< image::PhotoCalib const > | getPhotoCalib () const |
void | setPhotoCalib (std::shared_ptr< image::PhotoCalib const > photoCalib) |
std::shared_ptr< image::ApCorrMap const > | getApCorrMap () const |
void | setApCorrMap (std::shared_ptr< image::ApCorrMap const > apCorrMap) |
std::shared_ptr< geom::polygon::Polygon const > | getValidPolygon () const |
void | setValidPolygon (std::shared_ptr< geom::polygon::Polygon const > polygon) |
std::shared_ptr< image::VisitInfo const > | getVisitInfo () const |
void | setVisitInfo (std::shared_ptr< image::VisitInfo const > visitInfo) |
std::shared_ptr< image::TransmissionCurve const > | getTransmissionCurve () const |
void | setTransmissionCurve (std::shared_ptr< image::TransmissionCurve const > transmissionCurve) |
std::shared_ptr< cameraGeom::Detector const > | getDetector () const |
void | setDetector (std::shared_ptr< cameraGeom::Detector const > detector) |
ExposureRecord (ExposureRecord const &)=delete | |
ExposureRecord (ExposureRecord &&)=delete | |
ExposureRecord & | operator= (ExposureRecord const &)=delete |
ExposureRecord & | operator= (ExposureRecord &&)=delete |
~ExposureRecord () override | |
Schema | getSchema () const |
Return the Schema that holds this record's fields and keys. | |
template<typename T > | |
Field< T >::Element * | getElement (Key< T > const &key) |
Return a pointer to the underlying elements of a field (non-const). | |
template<typename T > | |
Field< T >::Element const * | getElement (Key< T > const &key) const |
Return a pointer to the underlying elements of a field (const). | |
template<typename T > | |
Field< T >::Reference | operator[] (Key< T > const &key) |
Return a reference (or reference-like type) to the field's value. | |
template<typename T > | |
Field< T >::ConstReference | operator[] (Key< T > const &key) const |
Return a const reference (or const-reference-like type) to the field's value. | |
template<typename Ref > | |
Ref | operator[] (ReferenceFunctorKey< Ref > const &key) |
template<typename ConstRef > | |
ConstRef | operator[] (ConstReferenceFunctorKey< ConstRef > const &key) const |
template<typename T > | |
Field< T >::Value | get (Key< T > const &key) const |
Return the value of a field for the given key. | |
template<typename T > | |
T | get (OutputFunctorKey< T > const &key) const |
Compute a calculated or aggregate field. | |
template<typename T , typename U > | |
void | set (Key< T > const &key, U const &value) |
Set value of a field for the given key. | |
template<typename T , typename U > | |
void | set (InputFunctorKey< T > const &key, U const &value) |
Set a calculated or aggregate field. | |
void | assign (BaseRecord const &other) |
Copy all field values from other to this, requiring that they have equal schemas. | |
void | assign (BaseRecord const &other, SchemaMapper const &mapper) |
Copy field values from other to this, using a mapper. | |
ndarray::Manager::Ptr | getManager () const |
Protected Member Functions | |
void | _assign (BaseRecord const &other) override |
Called by assign() after transferring fields to allow subclass data members to be copied. | |
virtual void | _stream (std::ostream &os) const |
Called by operator<<. | |
Friends | |
class | ExposureTable |
Record class used to store exposure metadata.
Definition at line 79 of file Exposure.h.
Definition at line 83 of file Exposure.h.
Definition at line 82 of file Exposure.h.
Definition at line 84 of file Exposure.h.
Definition at line 81 of file Exposure.h.
|
inline |
Constructor used by ExposureTable.
While formally public, this constructor is conceptually and effectively protected, due to the (protected) ConstructionToken argument.
This is to allow make_shared to be used, as that cannot be used on a truly protected or private constructor.
Definition at line 95 of file Exposure.h.
|
delete |
|
delete |
|
overridedefault |
|
overrideprotectedvirtual |
Called by assign() after transferring fields to allow subclass data members to be copied.
Reimplemented from lsst::afw::table::BaseRecord.
Definition at line 379 of file Exposure.cc.
|
protectedvirtualinherited |
Called by operator<<.
Overrides should call the base class implementation and append additional fields on new lines, with the syntax "%(name)s: %(value)s".
Definition at line 152 of file BaseRecord.cc.
|
inherited |
Copy all field values from other to this, requiring that they have equal schemas.
Definition at line 122 of file BaseRecord.cc.
|
inherited |
Copy field values from other to this, using a mapper.
Definition at line 130 of file BaseRecord.cc.
bool lsst::afw::table::ExposureRecord::contains | ( | lsst::geom::Point2D const & | point, |
geom::SkyWcs const & | wcs, | ||
bool | includeValidPolygon = false ) const |
Return true if the bounding box contains the given point, taking into account its Wcs (given) and the Wcs of the ExposureRecord.
If includeValidPolygon is true it will also check that the point is within the validPolygon of this ExposureRecord if present if it has one; otherwise, this argument is ignored.
pex::exceptions::LogicError | if the ExposureRecord has no Wcs. |
Definition at line 372 of file Exposure.cc.
bool lsst::afw::table::ExposureRecord::contains | ( | lsst::geom::SpherePoint const & | coord, |
bool | includeValidPolygon = false ) const |
Return true if the bounding box contains the given celestial coordinate point, taking into account the Wcs of the ExposureRecord.
If includeValidPolygon is true it will also check that the point is within the validPolygon of this ExpoureRecord if it has one; otherwise, this argument is ignored.
pex::exceptions::LogicError | if the ExposureRecord has no Wcs. |
Definition at line 349 of file Exposure.cc.
|
inlineinherited |
Return the value of a field for the given key.
No checking is done to ensure the Key belongs to the correct schema.
Definition at line 151 of file BaseRecord.h.
|
inlineinherited |
Compute a calculated or aggregate field.
Definition at line 172 of file BaseRecord.h.
|
inline |
Definition at line 145 of file Exposure.h.
lsst::geom::Box2I lsst::afw::table::ExposureRecord::getBBox | ( | ) | const |
Definition at line 343 of file Exposure.cc.
|
inline |
Definition at line 161 of file Exposure.h.
|
inlineinherited |
Return a pointer to the underlying elements of a field (non-const).
This low-level access is intended mostly for use with serialization; users should generally prefer the safer get(), set() and operator[] member functions.
Definition at line 93 of file BaseRecord.h.
|
inlineinherited |
Return a pointer to the underlying elements of a field (const).
This low-level access is intended mostly for use with serialization; users should generally prefer the safer get(), set() and operator[] member functions.
Definition at line 111 of file BaseRecord.h.
|
inline |
Definition at line 491 of file Exposure.h.
|
inlineinherited |
Definition at line 200 of file BaseRecord.h.
|
inline |
Definition at line 142 of file Exposure.h.
|
inline |
Definition at line 139 of file Exposure.h.
|
inlineinherited |
Return the Schema that holds this record's fields and keys.
Definition at line 80 of file BaseRecord.h.
|
inline |
Definition at line 99 of file Exposure.h.
|
inline |
Definition at line 154 of file Exposure.h.
|
inline |
Definition at line 148 of file Exposure.h.
|
inline |
Definition at line 151 of file Exposure.h.
|
inline |
Get/Set the the attached Wcs, Psf, PhotoCalib, or ApCorrMap. No copies are made.
Definition at line 136 of file Exposure.h.
|
delete |
|
delete |
|
inlineinherited |
Definition at line 190 of file BaseRecord.h.
|
inlineinherited |
Return a reference (or reference-like type) to the field's value.
Some field types (Point, Moments, Flag, Covariance, and SpherePoint) do not support reference access.
No checking is done to ensure the Key belongs to the correct schema.
Definition at line 129 of file BaseRecord.h.
|
inlineinherited |
Return a const reference (or const-reference-like type) to the field's value.
Some field types (Point, Moments, Flag, Covariance, and SpherePoint) do not support reference access.
No checking is done to ensure the Key belongs to the correct schema.
Definition at line 141 of file BaseRecord.h.
|
inlineinherited |
Definition at line 185 of file BaseRecord.h.
|
inlineinherited |
Set a calculated or aggregate field.
Definition at line 180 of file BaseRecord.h.
|
inlineinherited |
Set value of a field for the given key.
This method has an additional template parameter because some fields accept and convert different types to the stored field type.
No checking is done to ensure the Key belongs to the correct schema.
Definition at line 164 of file BaseRecord.h.
|
inline |
Definition at line 146 of file Exposure.h.
void lsst::afw::table::ExposureRecord::setBBox | ( | lsst::geom::Box2I const & | bbox | ) |
Definition at line 347 of file Exposure.cc.
|
inline |
Definition at line 162 of file Exposure.h.
Definition at line 492 of file Exposure.h.
|
inline |
Definition at line 143 of file Exposure.h.
|
inline |
Definition at line 140 of file Exposure.h.
|
inline |
Definition at line 157 of file Exposure.h.
|
inline |
Definition at line 149 of file Exposure.h.
|
inline |
Definition at line 152 of file Exposure.h.
|
inline |
Definition at line 137 of file Exposure.h.
|
friend |
Definition at line 178 of file Exposure.h.