23 #ifndef AFW_TABLE_AmpInfo_h_INCLUDED
24 #define AFW_TABLE_AmpInfo_h_INCLUDED
32 namespace lsst {
namespace afw {
namespace table {
300 #endif // !AFW_TABLE_AmpInfo_h_INCLUDED
Defines the fields and offsets for a table.
int contains(Schema const &other, int flags=EQUAL_KEYS) const
Test whether the given schema is a subset of this.
void disconnectAliases()
Sever the connection between this schema and any others with which it shares aliases.
ColumnViewT< AmpInfoRecord > ColumnView
bool getRawFlipY() const
Convenience accessors for the keys in the minimal reference schema.
static PointKey< int > getRawDataBBoxMinKey()
Get keys for standard fields shared by all references.
static PointKey< int > getRawBBoxMinKey()
Get keys for standard fields shared by all references.
virtual boost::shared_ptr< io::FitsWriter > makeFitsWriter(fits::Fits *fitsfile, int flags) const
PointKey< int > bboxExtent
geom::Box2I getRawDataBBox() const
Convenience accessors for the keys in the minimal reference schema.
CatalogT< Record const > ConstCatalog
Writer object for FITS binary tables.
PointKey< int > rawPrescanBBoxExtent
CatalogT< Record > Catalog
PointKey< int > rawVerticalOverscanBBoxExtent
table::Key< std::string > name
Geometry and electronic information about raw amplifier images.
static Key< std::string > getNameKey()
Get keys for standard fields shared by all references.
static PointKey< int > getRawXYOffsetKey()
Get keys for standard fields shared by all references.
PointKey< int > rawDataBBoxMin
void setReadNoise(double readNoise)
amplifier read noise, in e-
static Key< Flag > getRawFlipYKey()
Get keys for standard fields shared by all references.
A custom container class for records, based on std::vector.
static MinimalSchema & getMinimalSchema()
static Key< double > getSaturationKey()
Get keys for standard fields shared by all references.
afw::table::Schema schema
boost::shared_ptr< AmpInfoRecord > copyRecord(BaseRecord const &other)
Deep-copy a record, requiring that it have the same schema as this table.
static PointKey< int > getRawHorizontalOverscanBBoxMinKey()
Get keys for standard fields shared by all references.
static int const MAX_LINEARITY_TYPE_LENGTH
A mapping between the keys of two Schemas, used to copy data between them.
void setRawVerticalOverscanBBox(geom::Box2I const &bbox)
bounding box of usable vertical overscan pixels
static Key< double > getSuspectLevelKey()
Get keys for standard fields shared by all references.
Key< Array< double > > linearityCoeffs
geom::Box2I getRawVerticalOverscanBBox() const
Convenience accessors for the keys in the minimal reference schema.
void setReadoutCorner(ReadoutCorner val)
set readout corner
geom::Box2I getBBox() const
Convenience accessors for the keys in the minimal reference schema.
static int const MAX_LINEARITY_COEFFS
CatalogT< AmpInfoRecord const > ConstCatalog
ColumnViewT< AmpInfoRecord > ColumnView
double getGain() const
Convenience accessors for the keys in the minimal reference schema.
PointKey< int > rawHorizontalOverscanBBoxMin
PointKey< int > rawPrescanBBoxMin
boost::shared_ptr< AmpInfoTable const > getTable() const
Key< double > suspectLevel
bool getHasRawInfo() const
Convenience accessors for the keys in the minimal reference schema.
double getSaturation() const
Convenience accessors for the keys in the minimal reference schema.
void setRawXYOffset(geom::Extent2I const &xy)
offset for assembling a raw CCD image: desired xy0 - raw xy0
An integer coordinate rectangle.
geom::Box2I getRawPrescanBBox() const
Convenience accessors for the keys in the minimal reference schema.
static Key< Flag > getHasRawInfoKey()
Get keys for standard fields shared by all references.
static PointKey< int > getRawBBoxExtentKey()
Get keys for standard fields shared by all references.
void setLinearityType(std::string const &type)
name of linearity parameterization
static PointKey< int > getRawVerticalOverscanBBoxExtentKey()
Get keys for standard fields shared by all references.
PointKey< int > rawBBoxMin
static int const MAX_NAME_LENGTH
double getSuspectLevel() const
Convenience accessors for the keys in the minimal reference schema.
static boost::shared_ptr< AmpInfoTable > make(Schema const &schema)
Construct a new table.
static Schema makeMinimalSchema()
Return a minimal schema for AmpInfo tables and records.
void setGain(double gain)
amplifier gain in e-/ADU
std::string getName() const
Convenience accessors for the keys in the minimal reference schema.
void setRawFlipY(bool rawFlipY)
flip column order to make an assembled image?
static Key< std::string > getLinearityTypeKey()
Get keys for standard fields shared by all references.
double getReadNoise() const
Convenience accessors for the keys in the minimal reference schema.
void setSaturation(double saturation)
level in ADU above which pixels are considered saturated;
std::string getLinearityType() const
Convenience accessors for the keys in the minimal reference schema.
void setLinearityCoeffs(std::vector< double > const &coeffs)
vector of linearity coefficients
geom::Extent2I getRawXYOffset() const
Convenience accessors for the keys in the minimal reference schema.
ReadoutCorner getReadoutCorner() const
Convenience accessors for the keys in the minimal reference schema.
std::map< Citizen const *, CitizenInfo > table
AmpInfoRecord(boost::shared_ptr< AmpInfoTable > const &table)
geom::Box2I getRawBBox() const
Convenience accessors for the keys in the minimal reference schema.
void setName(std::string const &name)
name of amplifier location in camera
PointKey< int > rawDataBBoxExtent
geom::Box2I getRawHorizontalOverscanBBox() const
Convenience accessors for the keys in the minimal reference schema.
virtual boost::shared_ptr< BaseTable > _clone() const =0
Clone implementation with noncovariant return types.
void setRawHorizontalOverscanBBox(geom::Box2I const &bbox)
bounding box of usable horizontal overscan pixels
void setBBox(geom::Box2I const &bbox)
bounding box of amplifier pixels in assembled image
boost::shared_ptr< AmpInfoTable > clone() const
Return a polymorphic deep copy of the table.
virtual boost::shared_ptr< BaseRecord > _makeRecord()=0
Default-construct an associated record (protected implementation).
static PointKey< int > getRawPrescanBBoxMinKey()
Get keys for standard fields shared by all references.
ReadoutCorner
Readout corner, in the frame of reference of the assembled image.
boost::shared_ptr< BaseTable const > getTable() const
Return the table this record is associated with.
static Key< double > getReadNoiseKey()
Get keys for standard fields shared by all references.
Base class for all records.
void setRawDataBBox(geom::Box2I const &bbox)
bounding box of amplifier image pixels on raw image
PointKey< int > rawBBoxExtent
Key specialization for Flag.
static PointKey< int > getRawDataBBoxExtentKey()
Get keys for standard fields shared by all references.
void setRawBBox(geom::Box2I const &bbox)
bounding box of all amplifier pixels on raw image
bool getRawFlipX() const
Convenience accessors for the keys in the minimal reference schema.
boost::shared_ptr< BaseRecord > copyRecord(BaseRecord const &input)
Deep-copy a record, requiring that it have the same schema as this table.
static PointKey< int > getRawVerticalOverscanBBoxMinKey()
Get keys for standard fields shared by all references.
static bool checkSchema(Schema const &other)
Return true if the given schema is a valid AmpInfoTable schema.
static Key< int > getReadoutCornerKey()
Get keys for standard fields shared by all references.
AmpInfoTable(Schema const &schema)
static PointKey< int > getRawHorizontalOverscanBBoxExtentKey()
Get keys for standard fields shared by all references.
static PointKey< int > getRawPrescanBBoxExtentKey()
Get keys for standard fields shared by all references.
PointKey< int > rawVerticalOverscanBBoxMin
PointKey< int > rawXYOffset
#define CONST_PTR(...)
A shared pointer to a const object.
void setHasRawInfo(bool hasRawInfo)
does this table have raw amplifier information?
boost::shared_ptr< AmpInfoRecord > makeRecord()
Default-construct an associated record.
void setRawFlipX(bool rawFlipX)
flip row order to make assembled image?
void setSuspectLevel(double suspectLevel)
level in ADU above which pixels are considered suspicious,
static Key< Flag > getRawFlipXKey()
Get keys for standard fields shared by all references.
static Key< Array< double > > getLinearityCoeffsKey()
Get keys for standard fields shared by all references.
void setRawPrescanBBox(geom::Box2I const &bbox)
bounding box of usable (horizontal) prescan pixels on raw image
Key< std::string > linearityType
Table of amplifier information (AmpInfoRecord records)
static PointKey< int > getBBoxExtentKey()
Get keys for standard fields shared by all references.
CatalogT< AmpInfoRecord > Catalog
Base class for all tables.
PointKey< int > rawHorizontalOverscanBBoxExtent
static Key< double > getGainKey()
Get keys for standard fields shared by all references.
static PointKey< int > getBBoxMinKey()
Get keys for standard fields shared by all references.
std::vector< double > getLinearityCoeffs() const
Convenience accessors for the keys in the minimal reference schema.