lsst.afw  14.0-23-g38c323faa+1
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | 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 std::enable_shared_from_this< BaseTable > lsst::daf::base::Citizen

Public Types

typedef AmpInfoRecord Record
 
typedef ColumnViewT< AmpInfoRecord > ColumnView
 
typedef CatalogT< Record > Catalog
 
typedef CatalogT< Record const > ConstCatalog
 
typedef unsigned long memId
 
typedef memId(* memNewCallback) (const memId cid)
 
typedef memId(* memCallback) (const Citizen *ptr)
 

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...
 
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...
 
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...
 
T shared_from_this (T... args)
 
std::string repr () const
 
void markPersistent (void)
 
memId getId () const
 

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 bool hasBeenCorrupted ()
 
static memId getNextMemId ()
 
static int init ()
 
static int census (int, memId startingMemId=0)
 
static void census (std::ostream &stream, memId startingMemId=0)
 
static const std::vector< const Citizen *> * census ()
 
static int census (int, memId startingMemId=0)
 
static void census (std::ostream &stream, memId startingMemId=0)
 
static const std::vector< const Citizen *> * census ()
 
static memId setNewCallbackId (memId id)
 
static memId setNewCallbackId (memId id)
 
static memId setDeleteCallbackId (memId id)
 
static memId setDeleteCallbackId (memId id)
 
static memNewCallback setNewCallback (memNewCallback func)
 
static memCallback setDeleteCallback (memCallback func)
 
static memCallback setCorruptionCallback (memCallback func)
 
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...
 

Public Attributes

 magicSentinel
 

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 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...
 
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)
 

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

◆ Catalog

Definition at line 172 of file AmpInfo.h.

◆ ColumnView

Definition at line 171 of file AmpInfo.h.

◆ ConstCatalog

Definition at line 173 of file AmpInfo.h.

◆ Record

Definition at line 170 of file AmpInfo.h.

Constructor & Destructor Documentation

◆ AmpInfoTable() [1/2]

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

◆ AmpInfoTable() [2/2]

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

Member Function Documentation

◆ _clone()

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

Clone implementation with noncovariant return types.

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

◆ _makeRecord()

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

Default-construct an associated record (protected implementation).

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

◆ checkSchema()

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.

◆ clone()

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.

◆ copyRecord() [1/2]

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.

◆ copyRecord() [2/2]

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.

◆ getBBoxExtentKey()

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.

◆ getBBoxMinKey()

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.

◆ getBufferSize()

std::size_t lsst::afw::table::BaseTable::getBufferSize ( ) const
inherited

Return the number of additional records space has been already been allocated for.

Unlike std::vector::capacity, this does not factor in existing records in any way.

◆ getGainKey()

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.

◆ getHasRawInfoKey()

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.

◆ getLinearityCoeffsKey()

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.

◆ getLinearityTypeKey()

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.

◆ getMetadata()

std::shared_ptr<daf::base::PropertyList> lsst::afw::table::BaseTable::getMetadata ( ) const
inlineinherited

Return the flexible metadata associated with the table. May be null.

Definition at line 62 of file BaseTable.h.

◆ getNameKey()

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.

◆ getRawBBoxExtentKey()

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.

◆ getRawBBoxMinKey()

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.

◆ getRawDataBBoxExtentKey()

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.

◆ getRawDataBBoxMinKey()

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.

◆ getRawFlipXKey()

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.

◆ getRawFlipYKey()

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.

◆ getRawHorizontalOverscanBBoxExtentKey()

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.

◆ getRawHorizontalOverscanBBoxMinKey()

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.

◆ getRawPrescanBBoxExtentKey()

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.

◆ getRawPrescanBBoxMinKey()

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.

◆ getRawVerticalOverscanBBoxExtentKey()

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.

◆ getRawVerticalOverscanBBoxMinKey()

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.

◆ getRawXYOffsetKey()

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.

◆ getReadNoiseKey()

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.

◆ getReadoutCornerKey()

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.

◆ getSaturationKey()

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.

◆ getSchema()

Schema lsst::afw::table::BaseTable::getSchema ( ) const
inlineinherited

Return the table's schema.

Definition at line 120 of file BaseTable.h.

◆ getSelf() [1/2]

template<typename Derived >
std::shared_ptr<Derived> lsst::afw::table::BaseTable::getSelf ( )
inlineprotectedinherited

Convenience function for static-casting shared_from_this for use by derived classes.

Definition at line 162 of file BaseTable.h.

◆ getSelf() [2/2]

template<typename Derived >
std::shared_ptr<Derived const> lsst::afw::table::BaseTable::getSelf ( ) const
inlineprotectedinherited

Convenience function for static-casting shared_from_this for use by derived classes.

Definition at line 168 of file BaseTable.h.

◆ getSuspectLevelKey()

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.

◆ handleAliasChange()

virtual void lsst::afw::table::BaseTable::handleAliasChange ( std::string const &  alias)
inlineprotectedvirtualinherited

Reimplemented in lsst::afw::table::SourceTable.

Definition at line 172 of file BaseTable.h.

◆ make()

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.

◆ makeMinimalSchema()

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.

◆ makeRecord()

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.

◆ popMetadata()

std::shared_ptr<daf::base::PropertyList> lsst::afw::table::BaseTable::popMetadata ( )
inlineinherited

Return the metadata and set the internal metadata to a null pointer.

Definition at line 68 of file BaseTable.h.

◆ preallocate()

void lsst::afw::table::BaseTable::preallocate ( std::size_t  nRecords)
inherited

Allocate contiguous space for new records in advance.

If a contiguous memory block for at least n additional records has already been allocated, this is a no-op. If not, a new block will be allocated, and any remaining space on the old block will go to waste; this ensures the new records will be allocated contiguously. Note that "wasted" memory is not leaked; it will be deallocated along with any records created from that block when those records go out of scope.

Note that unlike std::vector::reserve, this does not factor in existing records in any way; nRecords refers to a number of new records to reserve space for.

◆ setMetadata()

void lsst::afw::table::BaseTable::setMetadata ( std::shared_ptr< daf::base::PropertyList > const &  metadata)
inlineinherited

Set the flexible metadata associated with the table. May be null.

Definition at line 65 of file BaseTable.h.

Friends And Related Function Documentation

◆ io::FitsWriter

friend class io::FitsWriter
friend

Definition at line 307 of file AmpInfo.h.

Member Data Documentation

◆ MAX_LINEARITY_COEFFS

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

Definition at line 175 of file AmpInfo.h.

◆ MAX_LINEARITY_TYPE_LENGTH

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

Definition at line 176 of file AmpInfo.h.

◆ MAX_NAME_LENGTH

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

Definition at line 174 of file AmpInfo.h.

◆ nRecordsPerBlock

int lsst::afw::table::BaseTable::nRecordsPerBlock
staticinherited

Number of records in each memory block.

Definition at line 59 of file BaseTable.h.


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