24 #ifndef LSST_AFW_IMAGE_VISITINFO_H_INCLUDED
25 #define LSST_AFW_IMAGE_VISITINFO_H_INCLUDED
30 #include "lsst/base.h"
31 #include "lsst/daf/base.h"
96 : _exposureId(exposureId),
97 _exposureTime(exposureTime),
102 _boresightRaDec(boresightRaDec),
103 _boresightAzAlt(boresightAzAlt),
104 _boresightAirmass(boresightAirmass),
105 _boresightRotAngle(boresightRotAngle),
107 _observatory(observatory),
132 daf::base::DateTime
getDate()
const {
return _date; }
184 double _exposureTime;
186 daf::base::DateTime _date;
191 double _boresightAirmass;
222 #endif // !LSST_AFW_IMAGE_VISITINFO_H_INCLUDED
std::int64_t RecordId
Type used for unique IDs for records.
geom::Angle getBoresightHourAngle() const
virtual void write(OutputArchiveHandle &handle) const
Write the object to one or more catalogs.
bool isPersistable() const
Return true if this particular object can be persisted using afw::table::io.
geom::Angle getBoresightRotAngle() const
Get rotation angle at boresight at middle of exposure.
bool operator==(VisitInfo const &other) const
table::RecordId getExposureId() const
get exposure ID
Hold the location of an observatory.
coord::Coord getBoresightAzAlt() const
get refracted apparent topocentric Az/Alt position at the boresight (and at the middle of the exposur...
table::CoordKey boresightRaDec
Information about a single exposure of an imaging camera.
table::Key< double > boresightAirmass
geom::Angle getEra() const
get earth rotation angle at middle of exposure
bool operator!=(VisitInfo const &other) const
table::Key< int > rotType
Rotation angle is unknown.
A base class for objects that can be persisted via afw::table::io Archive classes.
void setVisitInfoMetadata(daf::base::PropertyList &metadata, VisitInfo const &visitInfo)
Set FITS metadata from a VisitInfo.
A class representing an angle.
table::Key< double > exposureTime
double getBoresightAirmass() const
get airmass at the boresight, relative to zenith at sea level (and at the middle of the exposure...
daf::base::DateTime getDate() const
get uniform date and time at middle of exposure
coord::Weather getWeather() const
get basic weather information
table::Key< table::RecordId > exposureId
table::Key< geom::Angle > boresightRotAngle
table::Key< geom::Angle > era
double getUt1() const
get UT1 (universal time) MJD date at middle of exposure
Basic weather information sufficient for a simple model for air mass or refraction.
virtual std::string getPersistenceName() const
Return the unique name used to persist this object and look up its factory.
Position angle of focal plane +Y, measured from N through E.
VisitInfo & operator=(VisitInfo const &)=default
lsst::daf::base::PropertySet PropertySet
geom::Angle getLocalEra() const
VisitInfo(table::RecordId exposureId, double exposureTime, double darkTime, daf::base::DateTime const &date, double ut1, geom::Angle const &era, coord::IcrsCoord const &boresightRaDec, coord::Coord const &boresightAzAlt, double boresightAirmass, geom::Angle const &boresightRotAngle, RotType const &rotType, coord::Observatory const &observatory, coord::Weather const &weather)
Construct a VisitInfo.
int stripVisitInfoKeywords(daf::base::PropertySet &metadata)
Remove VisitInfo-related keywords from the metadata.
Position angle of focal plane +Y, measured from +Alt through +Az.
io::OutputArchiveHandle OutputArchiveHandle
coord::Observatory getObservatory() const
get observatory longitude, latitude and elevation
This is the base class for spherical coordinates.
table::Key< double > darkTime
A CRTP facade class for subclasses of Persistable.
A class to handle Icrs coordinates (inherits from Coord)
double getExposureTime() const
get exposure duration (shutter open time); (sec)
RotType getRotType() const
get rotation type of boresightRotAngle
The position sent to the instrument rotator; the details depend on the rotator.
double getDarkTime() const
get time from CCD flush to exposure readout, including shutter open time (despite the name); (sec) ...
lsst::daf::base::PropertyList PropertyList
coord::IcrsCoord getBoresightRaDec() const
get ICRS RA/Dec position at the boresight (and at the middle of the exposure, if it varies with time)...