lsst.afw  13.0-92-g8ecf155+1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Friends | List of all members
lsst::afw::table::AmpInfoTable Class Reference

Table of amplifier information (AmpInfoRecord records) More...

#include <AmpInfo.h>

Inheritance diagram for lsst::afw::table::AmpInfoTable:
lsst::afw::table::BaseTable

Public Types

typedef AmpInfoRecord Record
 
typedef ColumnViewT
< AmpInfoRecord > 
ColumnView
 
typedef CatalogT< Record > Catalog
 
typedef CatalogT< Record const > ConstCatalog
 
- Public Types inherited from lsst::afw::table::BaseTable
typedef BaseRecord Record
 The associated record class. More...
 
typedef BaseColumnView ColumnView
 The associated ColumnView class. More...
 
typedef CatalogT< Record > Catalog
 Template of CatalogT used to hold records of the associated type. More...
 
typedef CatalogT< Record const > ConstCatalog
 Template of CatalogT used to hold const records of the associated type. More...
 

Public Member Functions

std::shared_ptr< AmpInfoTable > clone () const
 Return a polymorphic deep copy of the table. More...
 
std::shared_ptr< AmpInfoRecord > makeRecord ()
 Default-construct an associated record. More...
 
std::shared_ptr< AmpInfoRecord > copyRecord (BaseRecord const &other)
 Deep-copy a record, requiring that it have the same schema as this table. More...
 
std::shared_ptr< AmpInfoRecord > copyRecord (BaseRecord const &other, SchemaMapper const &mapper)
 Deep-copy a record, requiring that it have the same schema as this table. More...
 
- Public Member Functions inherited from lsst::afw::table::BaseTable
std::shared_ptr
< daf::base::PropertyList > 
getMetadata () const
 Return the flexible metadata associated with the table. May be null. More...
 
void setMetadata (std::shared_ptr< daf::base::PropertyList > const &metadata)
 Set the flexible metadata associated with the table. May be null. More...
 
std::shared_ptr
< daf::base::PropertyList > 
popMetadata ()
 Return the metadata and set the internal metadata to a null pointer. More...
 
std::shared_ptr< BaseTable > clone () const
 Return a polymorphic deep copy of the table. More...
 
std::shared_ptr< BaseRecord > makeRecord ()
 Default-construct an associated record. More...
 
std::shared_ptr< BaseRecord > copyRecord (BaseRecord const &input)
 Deep-copy a record, requiring that it have the same schema as this table. More...
 
std::shared_ptr< BaseRecord > copyRecord (BaseRecord const &input, SchemaMapper const &mapper)
 Deep-copy a record, using a mapper to relate two schemas. More...
 
Schema getSchema () const
 Return the table's schema. More...
 
void preallocate (std::size_t nRecords)
 Allocate contiguous space for new records in advance. More...
 
std::size_t getBufferSize () const
 Return the number of additional records space has been already been allocated for. More...
 
virtual ~BaseTable ()
 

Static Public Member Functions

static std::shared_ptr
< AmpInfoTable > 
make (Schema const &schema)
 Construct a new table. More...
 
static Schema makeMinimalSchema ()
 Return a minimal schema for AmpInfo tables and records. More...
 
static bool checkSchema (Schema const &other)
 Return true if the given schema is a valid AmpInfoTable schema. More...
 
static Key< std::string > getNameKey ()
 Get keys for standard fields shared by all references. More...
 
static PointKey< int > getBBoxMinKey ()
 Get keys for standard fields shared by all references. More...
 
static PointKey< int > getBBoxExtentKey ()
 Get keys for standard fields shared by all references. More...
 
static Key< double > getGainKey ()
 Get keys for standard fields shared by all references. More...
 
static Key< double > getReadNoiseKey ()
 Get keys for standard fields shared by all references. More...
 
static Key< double > getSaturationKey ()
 Get keys for standard fields shared by all references. More...
 
static Key< double > getSuspectLevelKey ()
 Get keys for standard fields shared by all references. More...
 
static Key< int > getReadoutCornerKey ()
 Get keys for standard fields shared by all references. More...
 
static Key< Array< double > > getLinearityCoeffsKey ()
 Get keys for standard fields shared by all references. More...
 
static Key< std::string > getLinearityTypeKey ()
 Get keys for standard fields shared by all references. More...
 
static Key< Flag > getHasRawInfoKey ()
 Get keys for standard fields shared by all references. More...
 
static PointKey< int > getRawBBoxMinKey ()
 Get keys for standard fields shared by all references. More...
 
static PointKey< int > getRawBBoxExtentKey ()
 Get keys for standard fields shared by all references. More...
 
static PointKey< int > getRawDataBBoxMinKey ()
 Get keys for standard fields shared by all references. More...
 
static PointKey< int > getRawDataBBoxExtentKey ()
 Get keys for standard fields shared by all references. More...
 
static Key< Flag > getRawFlipXKey ()
 Get keys for standard fields shared by all references. More...
 
static Key< Flag > getRawFlipYKey ()
 Get keys for standard fields shared by all references. More...
 
static PointKey< int > getRawXYOffsetKey ()
 Get keys for standard fields shared by all references. More...
 
static PointKey< int > getRawHorizontalOverscanBBoxMinKey ()
 Get keys for standard fields shared by all references. More...
 
static PointKey< int > getRawHorizontalOverscanBBoxExtentKey ()
 Get keys for standard fields shared by all references. More...
 
static PointKey< int > getRawVerticalOverscanBBoxMinKey ()
 Get keys for standard fields shared by all references. More...
 
static PointKey< int > getRawVerticalOverscanBBoxExtentKey ()
 Get keys for standard fields shared by all references. More...
 
static PointKey< int > getRawPrescanBBoxMinKey ()
 Get keys for standard fields shared by all references. More...
 
static PointKey< int > getRawPrescanBBoxExtentKey ()
 Get keys for standard fields shared by all references. More...
 
- Static Public Member Functions inherited from lsst::afw::table::BaseTable
static std::shared_ptr< BaseTable > make (Schema const &schema)
 Construct a new table. More...
 

Static Public Attributes

static int const MAX_NAME_LENGTH = 64
 
static int const MAX_LINEARITY_COEFFS = 4
 
static int const MAX_LINEARITY_TYPE_LENGTH = 64
 
- Static Public Attributes inherited from lsst::afw::table::BaseTable
static int nRecordsPerBlock
 Number of records in each memory block. More...
 

Protected Member Functions

 AmpInfoTable (Schema const &schema)
 
 AmpInfoTable (AmpInfoTable const &other)
 
std::shared_ptr< BaseTable > _clone () const override
 Clone implementation with noncovariant return types. More...
 
std::shared_ptr< BaseRecord > _makeRecord () override
 Default-construct an associated record (protected implementation). More...
 
- Protected Member Functions inherited from lsst::afw::table::BaseTable
template<typename Derived >
std::shared_ptr< Derived > getSelf ()
 Convenience function for static-casting shared_from_this for use by derived classes. More...
 
template<typename Derived >
std::shared_ptr< Derived const > getSelf () const
 Convenience function for static-casting shared_from_this for use by derived classes. More...
 
virtual void handleAliasChange (std::string const &alias)
 
 BaseTable (Schema const &schema)
 Construct from a schema. More...
 
 BaseTable (BaseTable const &other)
 Copy construct. More...
 

Friends

class io::FitsWriter
 

Detailed Description

Table of amplifier information (AmpInfoRecord records)

Here is a pictorial example showing the meaning of flipX and flipY:

    CCD with 4 amps        Desired assembled output      Use these parameters

    --x         x--            y
   |  amp1    amp2 |           |                               flipX       flipY
   y               y           |                       amp1    False       True
                               | CCD image             amp2    True        True
   y               y           |                       amp3    False       False
   |  amp3    amp4 |           |                       amp4    True        False
    --x         x--             ----------- x
Note
  • All bounding boxes are parent boxes with respect to the raw image.
  • The overscan and underscan bounding boxes are regions containing USABLE data, NOT the entire underscan and overscan region. These bounding boxes should exclude areas with weird electronic artifacts. Each bounding box can be empty (0 extent) if the corresponding region is not used for data processing.
  • xyOffset is not used for instrument signature removal (ISR); it is intended for use by display utilities. It supports construction of a raw CCD image in the case that raw data is provided as individual amplifier images (which is uncommon):
    • Use 0,0 for cameras that supply raw data as a raw CCD image (most cameras)
    • Use nonzero for cameras that supply raw data as separate amplifier images with xy0=0,0 (LSST)
  • This design assumes assembled X is always +/- raw X, which we require for CCDs (so that bleed trails are always along the Y axis). If you must swap X/Y then add a doTranspose flag.

Definition at line 168 of file AmpInfo.h.

Member Typedef Documentation

Definition at line 172 of file AmpInfo.h.

Definition at line 171 of file AmpInfo.h.

Definition at line 173 of file AmpInfo.h.

Definition at line 170 of file AmpInfo.h.

Constructor & Destructor Documentation

lsst::afw::table::AmpInfoTable::AmpInfoTable ( Schema const &  schema)
explicitprotected
lsst::afw::table::AmpInfoTable::AmpInfoTable ( AmpInfoTable const &  other)
explicitprotected

Member Function Documentation

std::shared_ptr<BaseTable> lsst::afw::table::AmpInfoTable::_clone ( ) const
overrideprotectedvirtual

Clone implementation with noncovariant return types.

Reimplemented from lsst::afw::table::BaseTable.

std::shared_ptr<BaseRecord> lsst::afw::table::AmpInfoTable::_makeRecord ( )
overrideprotectedvirtual

Default-construct an associated record (protected implementation).

Reimplemented from lsst::afw::table::BaseTable.

static bool lsst::afw::table::AmpInfoTable::checkSchema ( Schema const &  other)
inlinestatic

Return true if the given schema is a valid AmpInfoTable schema.

This will always be true if the given schema was originally constructed using makeMinimalSchema(), and will rarely be true otherwise.

Definition at line 204 of file AmpInfo.h.

std::shared_ptr<AmpInfoTable> lsst::afw::table::AmpInfoTable::clone ( void  ) const
inline

Return a polymorphic deep copy of the table.

Derived classes should reimplement by static-casting the output of _clone to a pointer-to-derived to simulate covariant return types.

Cloning a table does not clone its associated records; the new table produced by clone() does not have any associated records.

Definition at line 247 of file AmpInfo.h.

std::shared_ptr<AmpInfoRecord> lsst::afw::table::AmpInfoTable::copyRecord ( BaseRecord const &  other)
inline

Deep-copy a record, requiring that it have the same schema as this table.

Regardless of the type or associated table of the input record, the type of the output record will be the type associated with this table and the record instance will be associated with this table.

Allowing derived-class records to be constructed from base-class records could be considered a form of type-slicing, but because we already demand that all records be constructable from nothing but a table, this isn't anything new.

Derived classes should reimplement by static-casting the output of BaseTable::copyRecord to the appropriate BaseRecord subclass.

This is implemented using makeRecord and calling record.assign on the results; override those to change the behavior.

Definition at line 255 of file AmpInfo.h.

std::shared_ptr<AmpInfoRecord> lsst::afw::table::AmpInfoTable::copyRecord ( BaseRecord const &  other,
SchemaMapper const &  mapper 
)
inline

Deep-copy a record, requiring that it have the same schema as this table.

Regardless of the type or associated table of the input record, the type of the output record will be the type associated with this table and the record instance will be associated with this table.

Allowing derived-class records to be constructed from base-class records could be considered a form of type-slicing, but because we already demand that all records be constructable from nothing but a table, this isn't anything new.

Derived classes should reimplement by static-casting the output of BaseTable::copyRecord to the appropriate BaseRecord subclass.

This is implemented using makeRecord and calling record.assign on the results; override those to change the behavior.

Definition at line 260 of file AmpInfo.h.

static PointKey<int> lsst::afw::table::AmpInfoTable::getBBoxExtentKey ( )
inlinestatic

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on AmpInfoRecord.

Definition at line 214 of file AmpInfo.h.

static PointKey<int> lsst::afw::table::AmpInfoTable::getBBoxMinKey ( )
inlinestatic

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on AmpInfoRecord.

Definition at line 213 of file AmpInfo.h.

static Key<double> lsst::afw::table::AmpInfoTable::getGainKey ( )
inlinestatic

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on AmpInfoRecord.

Definition at line 215 of file AmpInfo.h.

static Key<Flag> lsst::afw::table::AmpInfoTable::getHasRawInfoKey ( )
inlinestatic

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on AmpInfoRecord.

Definition at line 222 of file AmpInfo.h.

static Key<Array<double> > lsst::afw::table::AmpInfoTable::getLinearityCoeffsKey ( )
inlinestatic

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on AmpInfoRecord.

Definition at line 220 of file AmpInfo.h.

static Key<std::string> lsst::afw::table::AmpInfoTable::getLinearityTypeKey ( )
inlinestatic

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on AmpInfoRecord.

Definition at line 221 of file AmpInfo.h.

static Key<std::string> lsst::afw::table::AmpInfoTable::getNameKey ( )
inlinestatic

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on AmpInfoRecord.

Definition at line 212 of file AmpInfo.h.

static PointKey<int> lsst::afw::table::AmpInfoTable::getRawBBoxExtentKey ( )
inlinestatic

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on AmpInfoRecord.

Definition at line 224 of file AmpInfo.h.

static PointKey<int> lsst::afw::table::AmpInfoTable::getRawBBoxMinKey ( )
inlinestatic

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on AmpInfoRecord.

Definition at line 223 of file AmpInfo.h.

static PointKey<int> lsst::afw::table::AmpInfoTable::getRawDataBBoxExtentKey ( )
inlinestatic

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on AmpInfoRecord.

Definition at line 226 of file AmpInfo.h.

static PointKey<int> lsst::afw::table::AmpInfoTable::getRawDataBBoxMinKey ( )
inlinestatic

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on AmpInfoRecord.

Definition at line 225 of file AmpInfo.h.

static Key<Flag> lsst::afw::table::AmpInfoTable::getRawFlipXKey ( )
inlinestatic

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on AmpInfoRecord.

Definition at line 227 of file AmpInfo.h.

static Key<Flag> lsst::afw::table::AmpInfoTable::getRawFlipYKey ( )
inlinestatic

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on AmpInfoRecord.

Definition at line 228 of file AmpInfo.h.

static PointKey<int> lsst::afw::table::AmpInfoTable::getRawHorizontalOverscanBBoxExtentKey ( )
inlinestatic

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on AmpInfoRecord.

Definition at line 233 of file AmpInfo.h.

static PointKey<int> lsst::afw::table::AmpInfoTable::getRawHorizontalOverscanBBoxMinKey ( )
inlinestatic

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on AmpInfoRecord.

Definition at line 230 of file AmpInfo.h.

static PointKey<int> lsst::afw::table::AmpInfoTable::getRawPrescanBBoxExtentKey ( )
inlinestatic

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on AmpInfoRecord.

Definition at line 243 of file AmpInfo.h.

static PointKey<int> lsst::afw::table::AmpInfoTable::getRawPrescanBBoxMinKey ( )
inlinestatic

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on AmpInfoRecord.

Definition at line 242 of file AmpInfo.h.

static PointKey<int> lsst::afw::table::AmpInfoTable::getRawVerticalOverscanBBoxExtentKey ( )
inlinestatic

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on AmpInfoRecord.

Definition at line 239 of file AmpInfo.h.

static PointKey<int> lsst::afw::table::AmpInfoTable::getRawVerticalOverscanBBoxMinKey ( )
inlinestatic

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on AmpInfoRecord.

Definition at line 236 of file AmpInfo.h.

static PointKey<int> lsst::afw::table::AmpInfoTable::getRawXYOffsetKey ( )
inlinestatic

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on AmpInfoRecord.

Definition at line 229 of file AmpInfo.h.

static Key<double> lsst::afw::table::AmpInfoTable::getReadNoiseKey ( )
inlinestatic

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on AmpInfoRecord.

Definition at line 216 of file AmpInfo.h.

static Key<int> lsst::afw::table::AmpInfoTable::getReadoutCornerKey ( )
inlinestatic

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on AmpInfoRecord.

Definition at line 219 of file AmpInfo.h.

static Key<double> lsst::afw::table::AmpInfoTable::getSaturationKey ( )
inlinestatic

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on AmpInfoRecord.

Definition at line 217 of file AmpInfo.h.

static Key<double> lsst::afw::table::AmpInfoTable::getSuspectLevelKey ( )
inlinestatic

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on AmpInfoRecord.

Definition at line 218 of file AmpInfo.h.

static std::shared_ptr<AmpInfoTable> lsst::afw::table::AmpInfoTable::make ( Schema const &  schema)
static

Construct a new table.

Parameters
[in]schemaSchema that defines the fields, offsets, and record size for the table.
static Schema lsst::afw::table::AmpInfoTable::makeMinimalSchema ( )
inlinestatic

Return a minimal schema for AmpInfo tables and records.

The returned schema can and generally should be modified further, but many operations on AmpInfoRecords will assume that at least the fields provided by this routine are present.

Definition at line 192 of file AmpInfo.h.

std::shared_ptr<AmpInfoRecord> lsst::afw::table::AmpInfoTable::makeRecord ( )
inline

Default-construct an associated record.

Derived classes should reimplement by static-casting the output of _makeRecord to the appropriate BaseRecord subclass to simulate covariant return types.

Definition at line 250 of file AmpInfo.h.

Friends And Related Function Documentation

friend class io::FitsWriter
friend

Definition at line 307 of file AmpInfo.h.

Member Data Documentation

int const lsst::afw::table::AmpInfoTable::MAX_LINEARITY_COEFFS = 4
static

Definition at line 175 of file AmpInfo.h.

int const lsst::afw::table::AmpInfoTable::MAX_LINEARITY_TYPE_LENGTH = 64
static

Definition at line 176 of file AmpInfo.h.

int const lsst::afw::table::AmpInfoTable::MAX_NAME_LENGTH = 64
static

Definition at line 174 of file AmpInfo.h.


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