lsst.afw  15.0-17-g0b88e3da8
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Friends | List of all members
lsst::afw::table::AmpInfoRecord Class Reference

Geometry and electronic information about raw amplifier images. More...

#include <AmpInfo.h>

Inheritance diagram for lsst::afw::table::AmpInfoRecord:
lsst::afw::table::BaseRecord lsst::daf::base::Citizen

Public Types

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

Public Member Functions

 AmpInfoRecord (AmpInfoRecord const &)=delete
 
 AmpInfoRecord (AmpInfoRecord &&)=delete
 
AmpInfoRecord & operator= (AmpInfoRecord const &)=delete
 
AmpInfoRecord & operator= (AmpInfoRecord &&)=delete
 
 ~AmpInfoRecord ()
 
std::shared_ptr< AmpInfoTable const > getTable () const
 
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
 
std::string repr () const
 
void markPersistent (void)
 
memId getId () const
 
std::string getName () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setName (std::string const &name)
 name of amplifier location in camera More...
 
geom::Box2I getBBox () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setBBox (geom::Box2I const &bbox)
 bounding box of amplifier pixels in assembled image More...
 
double getGain () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setGain (double gain)
 amplifier gain in e-/ADU More...
 
double getReadNoise () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setReadNoise (double readNoise)
 amplifier read noise, in e- More...
 
double getSaturation () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setSaturation (double saturation)
 level in ADU above which pixels are considered saturated; More...
 
double getSuspectLevel () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setSuspectLevel (double suspectLevel)
 level in ADU above which pixels are considered suspicious, More...
 
ReadoutCorner getReadoutCorner () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setReadoutCorner (ReadoutCorner val)
 set readout corner More...
 
std::vector< double > getLinearityCoeffs () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setLinearityCoeffs (std::vector< double > const &coeffs)
 vector of linearity coefficients More...
 
std::string getLinearityType () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setLinearityType (std::string const &type)
 name of linearity parameterization More...
 
bool getHasRawInfo () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setHasRawInfo (bool hasRawInfo)
 does this table have raw amplifier information? More...
 
geom::Box2I getRawBBox () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setRawBBox (geom::Box2I const &bbox)
 bounding box of all amplifier pixels on raw image More...
 
geom::Box2I getRawDataBBox () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setRawDataBBox (geom::Box2I const &bbox)
 bounding box of amplifier image pixels on raw image More...
 
bool getRawFlipX () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setRawFlipX (bool rawFlipX)
 flip row order to make assembled image? More...
 
bool getRawFlipY () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setRawFlipY (bool rawFlipY)
 flip column order to make an assembled image? More...
 
geom::Extent2I getRawXYOffset () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setRawXYOffset (geom::Extent2I const &xy)
 offset for assembling a raw CCD image: desired xy0 - raw xy0 More...
 
geom::Box2I getRawHorizontalOverscanBBox () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setRawHorizontalOverscanBBox (geom::Box2I const &bbox)
 bounding box of usable horizontal overscan pixels More...
 
geom::Box2I getRawVerticalOverscanBBox () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setRawVerticalOverscanBBox (geom::Box2I const &bbox)
 bounding box of usable vertical overscan pixels More...
 
geom::Box2I getRawPrescanBBox () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setRawPrescanBBox (geom::Box2I const &bbox)
 bounding box of usable (horizontal) prescan pixels on raw image More...
 

Static Public Member Functions

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)
 

Public Attributes

 magicSentinel
 

Protected Member Functions

 AmpInfoRecord (std::shared_ptr< AmpInfoTable > const &table)
 
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 AmpInfoTable
 

Detailed Description

Geometry and electronic information about raw amplifier images.

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 79 of file AmpInfo.h.

Member Typedef Documentation

◆ Catalog

Definition at line 83 of file AmpInfo.h.

◆ ColumnView

Definition at line 82 of file AmpInfo.h.

◆ ConstCatalog

Definition at line 84 of file AmpInfo.h.

◆ Table

Definition at line 81 of file AmpInfo.h.

Constructor & Destructor Documentation

◆ AmpInfoRecord() [1/3]

lsst::afw::table::AmpInfoRecord::AmpInfoRecord ( AmpInfoRecord const &  )
delete

◆ AmpInfoRecord() [2/3]

lsst::afw::table::AmpInfoRecord::AmpInfoRecord ( AmpInfoRecord &&  )
delete

◆ ~AmpInfoRecord()

lsst::afw::table::AmpInfoRecord::~AmpInfoRecord ( )
default

◆ AmpInfoRecord() [3/3]

lsst::afw::table::AmpInfoRecord::AmpInfoRecord ( std::shared_ptr< AmpInfoTable > const &  table)
explicitprotected

Definition at line 71 of file AmpInfo.cc.

Member Function Documentation

◆ _assign()

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

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

Reimplemented in lsst::afw::table::SourceRecord, and lsst::afw::table::ExposureRecord.

Definition at line 183 of file BaseRecord.h.

◆ _stream()

void lsst::afw::table::BaseRecord::_stream ( std::ostream &  os) const
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 96 of file BaseRecord.cc.

◆ assign() [1/2]

void lsst::afw::table::BaseRecord::assign ( BaseRecord const &  other)
inherited

Copy all field values from other to this, requiring that they have equal schemas.

Definition at line 74 of file BaseRecord.cc.

◆ assign() [2/2]

void lsst::afw::table::BaseRecord::assign ( BaseRecord const &  other,
SchemaMapper const &  mapper 
)
inherited

Copy field values from other to this, using a mapper.

Definition at line 82 of file BaseRecord.cc.

◆ get() [1/2]

template<typename T >
Field<T>::Value lsst::afw::table::BaseRecord::get ( Key< T > const &  key) const
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 125 of file BaseRecord.h.

◆ get() [2/2]

template<typename T >
T lsst::afw::table::BaseRecord::get ( OutputFunctorKey< T > const &  key) const
inlineinherited

Compute a calculated or aggregate field.

Definition at line 146 of file BaseRecord.h.

◆ getBBox()

geom::Box2I lsst::afw::table::AmpInfoRecord::getBBox ( ) const

Convenience accessors for the keys in the minimal reference schema.

Definition at line 179 of file AmpInfo.cc.

◆ getElement() [1/2]

template<typename T >
Field<T>::Element* lsst::afw::table::BaseRecord::getElement ( Key< T > const &  key)
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 67 of file BaseRecord.h.

◆ getElement() [2/2]

template<typename T >
Field<T>::Element const* lsst::afw::table::BaseRecord::getElement ( Key< T > const &  key) const
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 85 of file BaseRecord.h.

◆ getGain()

double lsst::afw::table::AmpInfoRecord::getGain ( ) const

Convenience accessors for the keys in the minimal reference schema.

Definition at line 188 of file AmpInfo.cc.

◆ getHasRawInfo()

bool lsst::afw::table::AmpInfoRecord::getHasRawInfo ( ) const

Convenience accessors for the keys in the minimal reference schema.

Definition at line 223 of file AmpInfo.cc.

◆ getLinearityCoeffs()

std::vector< double > lsst::afw::table::AmpInfoRecord::getLinearityCoeffs ( ) const

Convenience accessors for the keys in the minimal reference schema.

Definition at line 209 of file AmpInfo.cc.

◆ getLinearityType()

std::string lsst::afw::table::AmpInfoRecord::getLinearityType ( ) const

Convenience accessors for the keys in the minimal reference schema.

Definition at line 218 of file AmpInfo.cc.

◆ getManager()

ndarray::Manager::Ptr lsst::afw::table::BaseRecord::getManager ( ) const
inlineinherited

Definition at line 174 of file BaseRecord.h.

◆ getName()

std::string lsst::afw::table::AmpInfoRecord::getName ( ) const

Convenience accessors for the keys in the minimal reference schema.

Definition at line 176 of file AmpInfo.cc.

◆ getRawBBox()

geom::Box2I lsst::afw::table::AmpInfoRecord::getRawBBox ( ) const

Convenience accessors for the keys in the minimal reference schema.

Definition at line 228 of file AmpInfo.cc.

◆ getRawDataBBox()

geom::Box2I lsst::afw::table::AmpInfoRecord::getRawDataBBox ( ) const

Convenience accessors for the keys in the minimal reference schema.

Definition at line 237 of file AmpInfo.cc.

◆ getRawFlipX()

bool lsst::afw::table::AmpInfoRecord::getRawFlipX ( ) const

Convenience accessors for the keys in the minimal reference schema.

Definition at line 246 of file AmpInfo.cc.

◆ getRawFlipY()

bool lsst::afw::table::AmpInfoRecord::getRawFlipY ( ) const

Convenience accessors for the keys in the minimal reference schema.

Definition at line 249 of file AmpInfo.cc.

◆ getRawHorizontalOverscanBBox()

geom::Box2I lsst::afw::table::AmpInfoRecord::getRawHorizontalOverscanBBox ( ) const

Convenience accessors for the keys in the minimal reference schema.

Definition at line 259 of file AmpInfo.cc.

◆ getRawPrescanBBox()

geom::Box2I lsst::afw::table::AmpInfoRecord::getRawPrescanBBox ( ) const

Convenience accessors for the keys in the minimal reference schema.

Definition at line 277 of file AmpInfo.cc.

◆ getRawVerticalOverscanBBox()

geom::Box2I lsst::afw::table::AmpInfoRecord::getRawVerticalOverscanBBox ( ) const

Convenience accessors for the keys in the minimal reference schema.

Definition at line 268 of file AmpInfo.cc.

◆ getRawXYOffset()

geom::Extent2I lsst::afw::table::AmpInfoRecord::getRawXYOffset ( ) const

Convenience accessors for the keys in the minimal reference schema.

Definition at line 252 of file AmpInfo.cc.

◆ getReadNoise()

double lsst::afw::table::AmpInfoRecord::getReadNoise ( ) const

Convenience accessors for the keys in the minimal reference schema.

Definition at line 199 of file AmpInfo.cc.

◆ getReadoutCorner()

ReadoutCorner lsst::afw::table::AmpInfoRecord::getReadoutCorner ( ) const

Convenience accessors for the keys in the minimal reference schema.

Definition at line 202 of file AmpInfo.cc.

◆ getSaturation()

double lsst::afw::table::AmpInfoRecord::getSaturation ( ) const

Convenience accessors for the keys in the minimal reference schema.

Definition at line 191 of file AmpInfo.cc.

◆ getSchema()

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

Return the Schema that holds this record's fields and keys.

Definition at line 54 of file BaseRecord.h.

◆ getSuspectLevel()

double lsst::afw::table::AmpInfoRecord::getSuspectLevel ( ) const

Convenience accessors for the keys in the minimal reference schema.

Definition at line 194 of file AmpInfo.cc.

◆ getTable()

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

Definition at line 92 of file AmpInfo.h.

◆ operator=() [1/2]

AmpInfoRecord& lsst::afw::table::AmpInfoRecord::operator= ( AmpInfoRecord const &  )
delete

◆ operator=() [2/2]

AmpInfoRecord& lsst::afw::table::AmpInfoRecord::operator= ( AmpInfoRecord &&  )
delete

◆ operator[]() [1/4]

template<typename T >
Field<T>::Reference lsst::afw::table::BaseRecord::operator[] ( Key< T > const &  key)
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 103 of file BaseRecord.h.

◆ operator[]() [2/4]

template<typename T >
Field<T>::ConstReference lsst::afw::table::BaseRecord::operator[] ( Key< T > const &  key) const
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 115 of file BaseRecord.h.

◆ operator[]() [3/4]

template<typename Ref >
Ref lsst::afw::table::BaseRecord::operator[] ( ReferenceFunctorKey< Ref > const &  key)
inlineinherited

Definition at line 159 of file BaseRecord.h.

◆ operator[]() [4/4]

template<typename ConstRef >
ConstRef lsst::afw::table::BaseRecord::operator[] ( ConstReferenceFunctorKey< ConstRef > const &  key) const
inlineinherited

Definition at line 164 of file BaseRecord.h.

◆ set() [1/2]

template<typename T , typename U >
void lsst::afw::table::BaseRecord::set ( Key< T > const &  key,
U const &  value 
)
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 138 of file BaseRecord.h.

◆ set() [2/2]

template<typename T , typename U >
void lsst::afw::table::BaseRecord::set ( InputFunctorKey< T > const &  key,
U const &  value 
)
inlineinherited

Set a calculated or aggregate field.

Definition at line 154 of file BaseRecord.h.

◆ setBBox()

void lsst::afw::table::AmpInfoRecord::setBBox ( geom::Box2I const &  bbox)

bounding box of amplifier pixels in assembled image

Definition at line 183 of file AmpInfo.cc.

◆ setGain()

void lsst::afw::table::AmpInfoRecord::setGain ( double  gain)

amplifier gain in e-/ADU

Definition at line 189 of file AmpInfo.cc.

◆ setHasRawInfo()

void lsst::afw::table::AmpInfoRecord::setHasRawInfo ( bool  hasRawInfo)

does this table have raw amplifier information?

Definition at line 224 of file AmpInfo.cc.

◆ setLinearityCoeffs()

void lsst::afw::table::AmpInfoRecord::setLinearityCoeffs ( std::vector< double > const &  coeffs)

vector of linearity coefficients

Definition at line 213 of file AmpInfo.cc.

◆ setLinearityType()

void lsst::afw::table::AmpInfoRecord::setLinearityType ( std::string const &  type)

name of linearity parameterization

Definition at line 219 of file AmpInfo.cc.

◆ setName()

void lsst::afw::table::AmpInfoRecord::setName ( std::string const &  name)

name of amplifier location in camera

Definition at line 177 of file AmpInfo.cc.

◆ setRawBBox()

void lsst::afw::table::AmpInfoRecord::setRawBBox ( geom::Box2I const &  bbox)

bounding box of all amplifier pixels on raw image

Definition at line 232 of file AmpInfo.cc.

◆ setRawDataBBox()

void lsst::afw::table::AmpInfoRecord::setRawDataBBox ( geom::Box2I const &  bbox)

bounding box of amplifier image pixels on raw image

Definition at line 241 of file AmpInfo.cc.

◆ setRawFlipX()

void lsst::afw::table::AmpInfoRecord::setRawFlipX ( bool  rawFlipX)

flip row order to make assembled image?

Definition at line 247 of file AmpInfo.cc.

◆ setRawFlipY()

void lsst::afw::table::AmpInfoRecord::setRawFlipY ( bool  rawFlipY)

flip column order to make an assembled image?

Definition at line 250 of file AmpInfo.cc.

◆ setRawHorizontalOverscanBBox()

void lsst::afw::table::AmpInfoRecord::setRawHorizontalOverscanBBox ( geom::Box2I const &  bbox)

bounding box of usable horizontal overscan pixels

Definition at line 263 of file AmpInfo.cc.

◆ setRawPrescanBBox()

void lsst::afw::table::AmpInfoRecord::setRawPrescanBBox ( geom::Box2I const &  bbox)

bounding box of usable (horizontal) prescan pixels on raw image

Definition at line 281 of file AmpInfo.cc.

◆ setRawVerticalOverscanBBox()

void lsst::afw::table::AmpInfoRecord::setRawVerticalOverscanBBox ( geom::Box2I const &  bbox)

bounding box of usable vertical overscan pixels

Definition at line 272 of file AmpInfo.cc.

◆ setRawXYOffset()

void lsst::afw::table::AmpInfoRecord::setRawXYOffset ( geom::Extent2I const &  xy)

offset for assembling a raw CCD image: desired xy0 - raw xy0

Definition at line 255 of file AmpInfo.cc.

◆ setReadNoise()

void lsst::afw::table::AmpInfoRecord::setReadNoise ( double  readNoise)

amplifier read noise, in e-

Definition at line 200 of file AmpInfo.cc.

◆ setReadoutCorner()

void lsst::afw::table::AmpInfoRecord::setReadoutCorner ( ReadoutCorner  val)

set readout corner

Definition at line 205 of file AmpInfo.cc.

◆ setSaturation()

void lsst::afw::table::AmpInfoRecord::setSaturation ( double  saturation)

level in ADU above which pixels are considered saturated;

use nan if no such level applies",

Definition at line 192 of file AmpInfo.cc.

◆ setSuspectLevel()

void lsst::afw::table::AmpInfoRecord::setSuspectLevel ( double  suspectLevel)

level in ADU above which pixels are considered suspicious,

meaning they may be affected by unknown systematics; for example if non-linearity corrections above a certain level are unstable then that would be a useful value for suspectLevel; use nan if no such level applies",

Definition at line 195 of file AmpInfo.cc.

Friends And Related Function Documentation

◆ AmpInfoTable

friend class AmpInfoTable
friend

Definition at line 164 of file AmpInfo.h.


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