LSSTApplications
17.0+11,17.0+34,17.0+56,17.0+57,17.0+59,17.0+7,17.0-1-g377950a+33,17.0.1-1-g114240f+2,17.0.1-1-g4d4fbc4+28,17.0.1-1-g55520dc+49,17.0.1-1-g5f4ed7e+52,17.0.1-1-g6dd7d69+17,17.0.1-1-g8de6c91+11,17.0.1-1-gb9095d2+7,17.0.1-1-ge9fec5e+5,17.0.1-1-gf4e0155+55,17.0.1-1-gfc65f5f+50,17.0.1-1-gfc6fb1f+20,17.0.1-10-g87f9f3f+1,17.0.1-11-ge9de802+16,17.0.1-16-ga14f7d5c+4,17.0.1-17-gc79d625+1,17.0.1-17-gdae4c4a+8,17.0.1-2-g26618f5+29,17.0.1-2-g54f2ebc+9,17.0.1-2-gf403422+1,17.0.1-20-g2ca2f74+6,17.0.1-23-gf3eadeb7+1,17.0.1-3-g7e86b59+39,17.0.1-3-gb5ca14a,17.0.1-3-gd08d533+40,17.0.1-30-g596af8797,17.0.1-4-g59d126d+4,17.0.1-4-gc69c472+5,17.0.1-6-g5afd9b9+4,17.0.1-7-g35889ee+1,17.0.1-7-gc7c8782+18,17.0.1-9-gc4bbfb2+3,w.2019.22
LSSTDataManagementBasePackage
|
Record class that contains measurements made on a single exposure. More...
#include <Source.h>
Public Types | |
typedef SourceTable | Table |
typedef SourceColumnViewT< SourceRecord > | ColumnView |
typedef SortedCatalogT< SourceRecord > | Catalog |
typedef SortedCatalogT< SourceRecord const > | ConstCatalog |
Public Member Functions | |
SourceRecord (ConstructionToken const &token, detail::RecordData &&data) | |
Constructor used by SourceTable. More... | |
std::shared_ptr< Footprint > | getFootprint () const |
void | setFootprint (std::shared_ptr< Footprint > const &footprint) |
std::shared_ptr< SourceTable const > | getTable () const |
FluxSlotDefinition::MeasValue | getPsfInstFlux () const |
Get the value of the PsfFlux slot measurement. More... | |
FluxSlotDefinition::ErrValue | getPsfInstFluxErr () const |
Get the uncertainty on the PsfFlux slot measurement. More... | |
bool | getPsfFluxFlag () const |
Return true if the measurement in the PsfFlux slot failed. More... | |
FluxSlotDefinition::MeasValue | getModelInstFlux () const |
Get the value of the ModelFlux slot measurement. More... | |
FluxSlotDefinition::ErrValue | getModelInstFluxErr () const |
Get the uncertainty on the ModelFlux slot measurement. More... | |
bool | getModelFluxFlag () const |
Return true if the measurement in the ModelFlux slot failed. More... | |
FluxSlotDefinition::MeasValue | getApInstFlux () const |
Get the value of the ApFlux slot measurement. More... | |
FluxSlotDefinition::ErrValue | getApInstFluxErr () const |
Get the uncertainty on the ApFlux slot measurement. More... | |
bool | getApFluxFlag () const |
Return true if the measurement in the ApFlux slot failed. More... | |
FluxSlotDefinition::MeasValue | getGaussianInstFlux () const |
Get the value of the GaussianFlux slot measurement. More... | |
FluxSlotDefinition::ErrValue | getGaussianInstFluxErr () const |
Get the uncertainty on the GaussianFlux slot measurement. More... | |
bool | getGaussianFluxFlag () const |
Return true if the measurement in the GaussianFlux slot failed. More... | |
FluxSlotDefinition::MeasValue | getCalibInstFlux () const |
Get the value of the CalibFlux slot measurement. More... | |
FluxSlotDefinition::ErrValue | getCalibInstFluxErr () const |
Get the uncertainty on the CalibFlux slot measurement. More... | |
bool | getCalibFluxFlag () const |
Return true if the measurement in the CalibFlux slot failed. More... | |
CentroidSlotDefinition::MeasValue | getCentroid () const |
Get the value of the Centroid slot measurement. More... | |
CentroidSlotDefinition::ErrValue | getCentroidErr () const |
Get the uncertainty on the Centroid slot measurement. More... | |
bool | getCentroidFlag () const |
Return true if the measurement in the Centroid slot failed. More... | |
ShapeSlotDefinition::MeasValue | getShape () const |
Get the value of the Shape slot measurement. More... | |
ShapeSlotDefinition::ErrValue | getShapeErr () const |
Get the uncertainty on the Shape slot measurement. More... | |
bool | getShapeFlag () const |
Return true if the measurement in the Shape slot failed. More... | |
double | getX () const |
Return the centroid slot x coordinate. More... | |
double | getY () const |
Return the centroid slot y coordinate. More... | |
double | getIxx () const |
Return the shape slot Ixx value. More... | |
double | getIyy () const |
Return the shape slot Iyy value. More... | |
double | getIxy () const |
Return the shape slot Ixy value. More... | |
void | updateCoord (geom::SkyWcs const &wcs) |
Update the coord field using the given Wcs and the field in the centroid slot. More... | |
void | updateCoord (geom::SkyWcs const &wcs, PointKey< double > const &key) |
Update the coord field using the given Wcs and the image center from the given key. More... | |
SourceRecord (const SourceRecord &)=delete | |
SourceRecord & | operator= (const SourceRecord &)=delete |
SourceRecord (SourceRecord &&)=delete | |
SourceRecord & | operator= (SourceRecord &&)=delete |
~SourceRecord () | |
Schema | getSchema () const |
Return the Schema that holds this record's fields and keys. More... | |
template<typename T > | |
Field< T >::Element * | getElement (Key< T > const &key) |
Return a pointer to the underlying elements of a field (non-const). More... | |
template<typename T > | |
Field< T >::Element const * | getElement (Key< T > const &key) const |
Return a pointer to the underlying elements of a field (const). More... | |
template<typename T > | |
Field< T >::Reference | operator[] (Key< T > const &key) |
Return a reference (or reference-like type) to the field's value. More... | |
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. More... | |
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. More... | |
template<typename T > | |
T | get (OutputFunctorKey< T > const &key) const |
Compute a calculated or aggregate field. More... | |
template<typename T , typename U > | |
void | set (Key< T > const &key, U const &value) |
Set value of a field for the given key. More... | |
template<typename T , typename U > | |
void | set (InputFunctorKey< T > const &key, U const &value) |
Set a calculated or aggregate field. More... | |
void | assign (BaseRecord const &other) |
Copy all field values from other to this, requiring that they have equal schemas. More... | |
void | assign (BaseRecord const &other, SchemaMapper const &mapper) |
Copy field values from other to this, using a mapper. More... | |
ndarray::Manager::Ptr | getManager () const |
RecordId | getParent () const |
Convenience accessors for the keys in the minimal source schema. More... | |
void | setParent (RecordId id) |
Convenience accessors for the keys in the minimal source schema. More... | |
RecordId | getId () const |
Convenience accessors for the keys in the minimal reference schema. More... | |
void | setId (RecordId id) |
Convenience accessors for the keys in the minimal reference schema. More... | |
lsst::geom::SpherePoint | getCoord () const |
Convenience accessors for the keys in the minimal reference schema. More... | |
void | setCoord (lsst::geom::SpherePoint const &coord) |
Convenience accessors for the keys in the minimal reference schema. More... | |
lsst::geom::Angle | getRa () const |
Convenience accessors for the keys in the minimal reference schema. More... | |
void | setRa (lsst::geom::Angle ra) |
Convenience accessors for the keys in the minimal reference schema. More... | |
lsst::geom::Angle | getDec () const |
Convenience accessors for the keys in the minimal reference schema. More... | |
void | setDec (lsst::geom::Angle dec) |
Convenience accessors for the keys in the minimal reference schema. More... | |
Protected Member Functions | |
virtual void | _assign (BaseRecord const &other) |
Called by assign() after transferring fields to allow subclass data members to be copied. More... | |
virtual void | _stream (std::ostream &os) const |
Called by operator<<. More... | |
Friends | |
class | SourceTable |
Record class that contains measurements made on a single exposure.
Sources provide four additions to SimpleRecord / SimpleRecord:
|
inline |
Constructor used by SourceTable.
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 98 of file Source.h.
|
delete |
|
delete |
|
default |
|
protectedvirtual |
Called by assign() after transferring fields to allow subclass data members to be copied.
Reimplemented from lsst::afw::table::BaseRecord.
Definition at line 374 of file Source.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 153 of file BaseRecord.cc.
|
inherited |
Copy all field values from other to this, requiring that they have equal schemas.
Definition at line 123 of file BaseRecord.cc.
|
inherited |
Copy field values from other to this, using a mapper.
Definition at line 131 of file BaseRecord.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 |
Return true if the measurement in the ApFlux slot failed.
Definition at line 628 of file Source.h.
|
inline |
Get the value of the ApFlux slot measurement.
Definition at line 620 of file Source.h.
|
inline |
Get the uncertainty on the ApFlux slot measurement.
Definition at line 624 of file Source.h.
|
inline |
Return true if the measurement in the CalibFlux slot failed.
Definition at line 652 of file Source.h.
|
inline |
Get the value of the CalibFlux slot measurement.
Definition at line 644 of file Source.h.
|
inline |
Get the uncertainty on the CalibFlux slot measurement.
Definition at line 648 of file Source.h.
|
inline |
Get the value of the Centroid slot measurement.
Definition at line 656 of file Source.h.
|
inline |
Get the uncertainty on the Centroid slot measurement.
Definition at line 660 of file Source.h.
|
inline |
Return true if the measurement in the Centroid slot failed.
Definition at line 664 of file Source.h.
|
inlineinherited |
Convenience accessors for the keys in the minimal reference schema.
Definition at line 231 of file Simple.h.
|
inlineinherited |
Convenience accessors for the keys in the minimal reference schema.
Definition at line 239 of file Simple.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 |
|
inline |
Return true if the measurement in the GaussianFlux slot failed.
Definition at line 640 of file Source.h.
|
inline |
Get the value of the GaussianFlux slot measurement.
Definition at line 632 of file Source.h.
|
inline |
Get the uncertainty on the GaussianFlux slot measurement.
Definition at line 636 of file Source.h.
|
inlineinherited |
Convenience accessors for the keys in the minimal reference schema.
Definition at line 228 of file Simple.h.
|
inline |
Return the shape slot Ixx value.
Definition at line 682 of file Source.h.
|
inline |
Return the shape slot Ixy value.
Definition at line 684 of file Source.h.
|
inline |
Return the shape slot Iyy value.
Definition at line 683 of file Source.h.
|
inlineinherited |
Definition at line 200 of file BaseRecord.h.
|
inline |
Return true if the measurement in the ModelFlux slot failed.
Definition at line 616 of file Source.h.
|
inline |
Get the value of the ModelFlux slot measurement.
Definition at line 608 of file Source.h.
|
inline |
Get the uncertainty on the ModelFlux slot measurement.
Definition at line 612 of file Source.h.
|
inline |
Convenience accessors for the keys in the minimal source schema.
Definition at line 678 of file Source.h.
|
inline |
Return true if the measurement in the PsfFlux slot failed.
Definition at line 604 of file Source.h.
|
inline |
Get the value of the PsfFlux slot measurement.
Definition at line 596 of file Source.h.
|
inline |
Get the uncertainty on the PsfFlux slot measurement.
Definition at line 600 of file Source.h.
|
inlineinherited |
Convenience accessors for the keys in the minimal reference schema.
Definition at line 236 of file Simple.h.
|
inlineinherited |
Return the Schema that holds this record's fields and keys.
Definition at line 80 of file BaseRecord.h.
|
inline |
Get the value of the Shape slot measurement.
Definition at line 668 of file Source.h.
|
inline |
Get the uncertainty on the Shape slot measurement.
Definition at line 672 of file Source.h.
|
inline |
Return true if the measurement in the Shape slot failed.
Definition at line 676 of file Source.h.
|
inline |
Definition at line 106 of file Source.h.
|
inline |
Return the centroid slot x coordinate.
Definition at line 680 of file Source.h.
|
inline |
Return the centroid slot y coordinate.
Definition at line 681 of file Source.h.
|
delete |
|
delete |
|
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 |
Definition at line 190 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.
|
inlineinherited |
Set a calculated or aggregate field.
Definition at line 180 of file BaseRecord.h.
|
inlineinherited |
Convenience accessors for the keys in the minimal reference schema.
Definition at line 232 of file Simple.h.
|
inlineinherited |
Convenience accessors for the keys in the minimal reference schema.
Definition at line 240 of file Simple.h.
|
inline |
|
inlineinherited |
Convenience accessors for the keys in the minimal reference schema.
Definition at line 229 of file Simple.h.
|
inline |
Convenience accessors for the keys in the minimal source schema.
Definition at line 679 of file Source.h.
|
inlineinherited |
Convenience accessors for the keys in the minimal reference schema.
Definition at line 237 of file Simple.h.
void lsst::afw::table::SourceRecord::updateCoord | ( | geom::SkyWcs const & | wcs | ) |
Update the coord field using the given Wcs and the field in the centroid slot.
Definition at line 368 of file Source.cc.
void lsst::afw::table::SourceRecord::updateCoord | ( | geom::SkyWcs const & | wcs, |
PointKey< double > const & | key | ||
) |
Update the coord field using the given Wcs and the image center from the given key.
Definition at line 370 of file Source.cc.
|
friend |