lsst.afw  13.0-91-g2a3e2ee
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Member Functions | Friends | List of all members
lsst::afw::table::SourceRecord Class Reference

Record class that contains measurements made on a single exposure. More...

#include <Source.h>

Inheritance diagram for lsst::afw::table::SourceRecord:
lsst::afw::table::SimpleRecord lsst::afw::table::BaseRecord

Public Types

typedef SourceTable Table
 
typedef SourceColumnViewT
< SourceRecord > 
ColumnView
 
typedef SortedCatalogT
< SourceRecord > 
Catalog
 
typedef SortedCatalogT
< SourceRecord const > 
ConstCatalog
 
- Public Types inherited from lsst::afw::table::SimpleRecord
typedef SimpleTable Table
 
typedef ColumnViewT< SimpleRecord > ColumnView
 
typedef SortedCatalogT
< SimpleRecord > 
Catalog
 
typedef SortedCatalogT
< SimpleRecord const > 
ConstCatalog
 
- Public Types inherited from lsst::afw::table::BaseRecord
typedef BaseTable Table
 The associated table class. More...
 
typedef BaseColumnView ColumnView
 The associated ColumnView class. More...
 
typedef CatalogT< BaseRecord > Catalog
 Template of CatalogT used to hold records of this type. More...
 
typedef CatalogT< BaseRecord
const > 
ConstCatalog
 Template of CatalogT used to hold const records of this type. More...
 

Public Member Functions

std::shared_ptr< Footprint > getFootprint () const
 
void setFootprint (std::shared_ptr< Footprint > const &footprint)
 
std::shared_ptr< SourceTable
const > 
getTable () const
 
FluxSlotDefinition::MeasValue getPsfFlux () const
 Get the value of the PsfFlux slot measurement. More...
 
FluxSlotDefinition::ErrValue getPsfFluxErr () 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 getModelFlux () const
 Get the value of the ModelFlux slot measurement. More...
 
FluxSlotDefinition::ErrValue getModelFluxErr () 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 getApFlux () const
 Get the value of the ApFlux slot measurement. More...
 
FluxSlotDefinition::ErrValue getApFluxErr () 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 getInstFlux () const
 Get the value of the InstFlux slot measurement. More...
 
FluxSlotDefinition::ErrValue getInstFluxErr () const
 Get the uncertainty on the InstFlux slot measurement. More...
 
bool getInstFluxFlag () const
 Return true if the measurement in the InstFlux slot failed. More...
 
FluxSlotDefinition::MeasValue getCalibFlux () const
 Get the value of the CalibFlux slot measurement. More...
 
FluxSlotDefinition::ErrValue getCalibFluxErr () 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 (image::Wcs const &wcs)
 Update the coord field using the given Wcs and the field in the centroid slot. More...
 
void updateCoord (image::Wcs const &wcs, PointKey< double > const &key)
 Update the coord field using the given Wcs and the image center from the given key. More...
 
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...
 
- Public Member Functions inherited from lsst::afw::table::SimpleRecord
std::shared_ptr< SimpleTable
const > 
getTable () const
 
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...
 
IcrsCoord getCoord () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setCoord (IcrsCoord const &coord)
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setCoord (Coord const &coord)
 Convenience accessors for the keys in the minimal reference schema. More...
 
Angle getRa () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setRa (Angle ra)
 Convenience accessors for the keys in the minimal reference schema. More...
 
Angle getDec () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setDec (Angle dec)
 Convenience accessors for the keys in the minimal reference schema. More...
 
- Public Member Functions inherited from lsst::afw::table::BaseRecord
 BaseRecord (const BaseRecord &)=delete
 
BaseRecord & operator= (const BaseRecord &)=delete
 
 BaseRecord (BaseRecord &&)=delete
 
BaseRecord & operator= (BaseRecord &&)=delete
 
Schema getSchema () const
 Return the Schema that holds this record's fields and keys. More...
 
std::shared_ptr< BaseTable const > getTable () const
 Return the table this record is associated with. 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 T >
Field< T >::Value get (Key< T > const &key) const
 Return the value of a field for the given key. 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 >
T get (OutputFunctorKey< T > const &key) const
 Compute a calculated or aggregate field. More...
 
template<typename T , typename U >
void set (InputFunctorKey< T > const &key, U const &value)
 Set a calculated or aggregate field. More...
 
template<typename Ref >
Ref operator[] (ReferenceFunctorKey< Ref > const &key)
 
template<typename ConstRef >
ConstRef operator[] (ConstReferenceFunctorKey< ConstRef > const &key) const
 
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
 
virtual ~BaseRecord ()
 

Protected Member Functions

 SourceRecord (std::shared_ptr< SourceTable > const &table)
 
virtual void _assign (BaseRecord const &other)
 Called by assign() after transferring fields to allow subclass data members to be copied. More...
 
- Protected Member Functions inherited from lsst::afw::table::SimpleRecord
 SimpleRecord (std::shared_ptr< SimpleTable > const &table)
 
- Protected Member Functions inherited from lsst::afw::table::BaseRecord
 BaseRecord (std::shared_ptr< BaseTable > const &table)
 Construct a record with uninitialized data. More...
 

Friends

class SourceTable
 

Detailed Description

Record class that contains measurements made on a single exposure.

Sources provide four additions to SimpleRecord / SimpleRecord:

Definition at line 80 of file Source.h.

Member Typedef Documentation

Definition at line 85 of file Source.h.

Definition at line 84 of file Source.h.

Definition at line 86 of file Source.h.

Definition at line 83 of file Source.h.

Constructor & Destructor Documentation

lsst::afw::table::SourceRecord::SourceRecord ( std::shared_ptr< SourceTable > const &  table)
explicitprotected

Member Function Documentation

virtual void lsst::afw::table::SourceRecord::_assign ( BaseRecord const &  other)
protectedvirtual

Called by assign() after transferring fields to allow subclass data members to be copied.

Reimplemented from lsst::afw::table::BaseRecord.

FluxSlotDefinition::MeasValue lsst::afw::table::SourceRecord::getApFlux ( ) const
inline

Get the value of the ApFlux slot measurement.

Definition at line 864 of file Source.h.

FluxSlotDefinition::ErrValue lsst::afw::table::SourceRecord::getApFluxErr ( ) const
inline

Get the uncertainty on the ApFlux slot measurement.

Definition at line 868 of file Source.h.

bool lsst::afw::table::SourceRecord::getApFluxFlag ( ) const
inline

Return true if the measurement in the ApFlux slot failed.

Definition at line 872 of file Source.h.

FluxSlotDefinition::MeasValue lsst::afw::table::SourceRecord::getCalibFlux ( ) const
inline

Get the value of the CalibFlux slot measurement.

Definition at line 888 of file Source.h.

FluxSlotDefinition::ErrValue lsst::afw::table::SourceRecord::getCalibFluxErr ( ) const
inline

Get the uncertainty on the CalibFlux slot measurement.

Definition at line 892 of file Source.h.

bool lsst::afw::table::SourceRecord::getCalibFluxFlag ( ) const
inline

Return true if the measurement in the CalibFlux slot failed.

Definition at line 896 of file Source.h.

CentroidSlotDefinition::MeasValue lsst::afw::table::SourceRecord::getCentroid ( ) const
inline

Get the value of the Centroid slot measurement.

Definition at line 900 of file Source.h.

CentroidSlotDefinition::ErrValue lsst::afw::table::SourceRecord::getCentroidErr ( ) const
inline

Get the uncertainty on the Centroid slot measurement.

Definition at line 904 of file Source.h.

bool lsst::afw::table::SourceRecord::getCentroidFlag ( ) const
inline

Return true if the measurement in the Centroid slot failed.

Definition at line 908 of file Source.h.

std::shared_ptr<Footprint> lsst::afw::table::SourceRecord::getFootprint ( ) const
inline

Definition at line 88 of file Source.h.

FluxSlotDefinition::MeasValue lsst::afw::table::SourceRecord::getInstFlux ( ) const
inline

Get the value of the InstFlux slot measurement.

Definition at line 876 of file Source.h.

FluxSlotDefinition::ErrValue lsst::afw::table::SourceRecord::getInstFluxErr ( ) const
inline

Get the uncertainty on the InstFlux slot measurement.

Definition at line 880 of file Source.h.

bool lsst::afw::table::SourceRecord::getInstFluxFlag ( ) const
inline

Return true if the measurement in the InstFlux slot failed.

Definition at line 884 of file Source.h.

double lsst::afw::table::SourceRecord::getIxx ( ) const
inline

Return the shape slot Ixx value.

Definition at line 933 of file Source.h.

double lsst::afw::table::SourceRecord::getIxy ( ) const
inline

Return the shape slot Ixy value.

Definition at line 939 of file Source.h.

double lsst::afw::table::SourceRecord::getIyy ( ) const
inline

Return the shape slot Iyy value.

Definition at line 936 of file Source.h.

FluxSlotDefinition::MeasValue lsst::afw::table::SourceRecord::getModelFlux ( ) const
inline

Get the value of the ModelFlux slot measurement.

Definition at line 852 of file Source.h.

FluxSlotDefinition::ErrValue lsst::afw::table::SourceRecord::getModelFluxErr ( ) const
inline

Get the uncertainty on the ModelFlux slot measurement.

Definition at line 856 of file Source.h.

bool lsst::afw::table::SourceRecord::getModelFluxFlag ( ) const
inline

Return true if the measurement in the ModelFlux slot failed.

Definition at line 860 of file Source.h.

RecordId lsst::afw::table::SourceRecord::getParent ( ) const
inline

Convenience accessors for the keys in the minimal source schema.

Definition at line 925 of file Source.h.

FluxSlotDefinition::MeasValue lsst::afw::table::SourceRecord::getPsfFlux ( ) const
inline

Get the value of the PsfFlux slot measurement.

Definition at line 840 of file Source.h.

FluxSlotDefinition::ErrValue lsst::afw::table::SourceRecord::getPsfFluxErr ( ) const
inline

Get the uncertainty on the PsfFlux slot measurement.

Definition at line 844 of file Source.h.

bool lsst::afw::table::SourceRecord::getPsfFluxFlag ( ) const
inline

Return true if the measurement in the PsfFlux slot failed.

Definition at line 848 of file Source.h.

ShapeSlotDefinition::MeasValue lsst::afw::table::SourceRecord::getShape ( ) const
inline

Get the value of the Shape slot measurement.

Definition at line 912 of file Source.h.

ShapeSlotDefinition::ErrValue lsst::afw::table::SourceRecord::getShapeErr ( ) const
inline

Get the uncertainty on the Shape slot measurement.

Definition at line 916 of file Source.h.

bool lsst::afw::table::SourceRecord::getShapeFlag ( ) const
inline

Return true if the measurement in the Shape slot failed.

Definition at line 920 of file Source.h.

std::shared_ptr<SourceTable const> lsst::afw::table::SourceRecord::getTable ( ) const
inline

Definition at line 92 of file Source.h.

double lsst::afw::table::SourceRecord::getX ( ) const
inline

Return the centroid slot x coordinate.

Definition at line 927 of file Source.h.

double lsst::afw::table::SourceRecord::getY ( ) const
inline

Return the centroid slot y coordinate.

Definition at line 930 of file Source.h.

void lsst::afw::table::SourceRecord::setFootprint ( std::shared_ptr< Footprint > const &  footprint)
inline

Definition at line 90 of file Source.h.

void lsst::afw::table::SourceRecord::setParent ( RecordId  id)
inline

Convenience accessors for the keys in the minimal source schema.

Definition at line 926 of file Source.h.

void lsst::afw::table::SourceRecord::updateCoord ( image::Wcs const &  wcs)

Update the coord field using the given Wcs and the field in the centroid slot.

void lsst::afw::table::SourceRecord::updateCoord ( image::Wcs const &  wcs,
PointKey< double > const &  key 
)

Update the coord field using the given Wcs and the image center from the given key.

Friends And Related Function Documentation

friend class SourceTable
friend

Definition at line 195 of file Source.h.


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