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