lsst.afw gba399f52f3+9b61cfce8e
Loading...
Searching...
No Matches
lsst::afw::image::VisitInfo Class Reference

Information about a single exposure of an imaging camera. More...

#include <VisitInfo.h>

Inheritance diagram for lsst::afw::image::VisitInfo:
lsst::afw::table::io::PersistableFacade< VisitInfo >

Public Member Functions

 VisitInfo (double exposureTime, double darkTime, daf::base::DateTime const &date, double ut1, lsst::geom::Angle const &era, lsst::geom::SpherePoint const &boresightRaDec, lsst::geom::SpherePoint const &boresightAzAlt, double boresightAirmass, lsst::geom::Angle const &boresightRotAngle, RotType const &rotType, coord::Observatory const &observatory, coord::Weather const &weather, std::string const &instrumentLabel, table::RecordId const &id, double focusZ, std::string const &observationType, std::string const &scienceProgram, std::string const &observationReason, std::string const &object, bool hasSimulatedContent)
 Construct a VisitInfo.
 VisitInfo (daf::base::PropertySet const &metadata)
 ~VisitInfo () override=default
 VisitInfo (VisitInfo const &)=default
 VisitInfo (VisitInfo &&)=default
VisitInfo & operator= (VisitInfo const &)=default
VisitInfo & operator= (VisitInfo &&)=default
bool operator== (VisitInfo const &other) const
bool operator!= (VisitInfo const &other) const
std::size_t hash_value () const noexcept override
 Return a hash of this object.
double getExposureTime () const
 get exposure duration (shutter open time); (sec)
double getDarkTime () const
 get time from CCD flush to exposure readout, including shutter open time (despite the name); (sec)
daf::base::DateTime getDate () const
 get uniform date and time at middle of exposure
double getUt1 () const
 get UT1 (universal time) MJD date at middle of exposure
lsst::geom::Angle getEra () const
 get earth rotation angle at middle of exposure
lsst::geom::SpherePoint getBoresightRaDec () const
 get ICRS RA/Dec position at the boresight (and at the middle of the exposure, if it varies with time)
lsst::geom::SpherePoint getBoresightAzAlt () const
 get refracted apparent topocentric Az/Alt position at the boresight (and at the middle of the exposure, if it varies with time)
double getBoresightAirmass () const
 get airmass at the boresight, relative to zenith at sea level (and at the middle of the exposure, if it varies with time)
lsst::geom::Angle getBoresightRotAngle () const
 Get rotation angle at boresight at middle of exposure.
RotType getRotType () const
 get rotation type of boresightRotAngle
coord::Observatory getObservatory () const
 get observatory longitude, latitude and elevation
coord::Weather getWeather () const
 get basic weather information
bool isPersistable () const noexcept override
lsst::geom::Angle getLocalEra () const
lsst::geom::Angle getBoresightHourAngle () const
std::string getInstrumentLabel () const
table::RecordId getId () const
double getFocusZ () const
std::string getObservationType () const
std::string getScienceProgram () const
std::string getObservationReason () const
std::string getObject () const
bool getHasSimulatedContent () const
lsst::geom::Angle getBoresightParAngle () const
 Get parallactic angle at the boresight.
std::shared_ptr< typehandling::Storable > cloneStorable () const override
 Create a new VisitInfo that is a copy of this one.
std::string toString () const override
 Create a string representation of this object.
bool equals (typehandling::Storable const &other) const noexcept override
 Compare this object to another Storable.

Static Public Member Functions

static std::shared_ptr< VisitInfo > readFits (fits::Fits &fitsfile)
 Read an object from an already open FITS object.
static std::shared_ptr< VisitInfo > dynamicCast (std::shared_ptr< Persistable > const &ptr)
 Dynamically cast a shared_ptr.

Protected Member Functions

std::string getPersistenceName () const override
void write (OutputArchiveHandle &handle) const override

Detailed Description

Information about a single exposure of an imaging camera.

Includes exposure duration and date, and telescope pointing and orientation.

All information is for the middle of the exposure and at the boresight (center of the focal plane). Thus for a mosaic camera VisitInfo is the same for all detectors in the mosaic.

VisitInfo is immutable.

Definition at line 68 of file VisitInfo.h.

Constructor & Destructor Documentation

◆ VisitInfo() [1/4]

lsst::afw::image::VisitInfo::VisitInfo ( double exposureTime,
double darkTime,
daf::base::DateTime const & date,
double ut1,
lsst::geom::Angle const & era,
lsst::geom::SpherePoint const & boresightRaDec,
lsst::geom::SpherePoint const & boresightAzAlt,
double boresightAirmass,
lsst::geom::Angle const & boresightRotAngle,
RotType const & rotType,
coord::Observatory const & observatory,
coord::Weather const & weather,
std::string const & instrumentLabel,
table::RecordId const & id,
double focusZ,
std::string const & observationType,
std::string const & scienceProgram,
std::string const & observationReason,
std::string const & object,
bool hasSimulatedContent )
inlineexplicit

Construct a VisitInfo.

Parameters
[in]exposureTimeexposure duration (shutter open time); (sec)
[in]darkTimetime from CCD flush to readout, including shutter open time (despite the name); (sec)
[in]dateTAI (international atomic time) MJD date at middle of exposure
[in]ut1UT1 (universal time) MJD date at middle of exposure
[in]eraearth rotation angle at middle of exposure
[in]boresightRaDecICRS RA/Dec of boresight at middle of exposure
[in]boresightAzAltrefracted apparent topocentric Az/Alt of boresight at middle of exposure
[in]boresightAirmassairmass at the boresight, relative to zenith at sea level
[in]boresightRotAnglerotation angle at boresight at middle of exposure; see getBoresightRotAngle for details
[in]rotTyperotation type
[in]observatoryobservatory longitude, latitude and altitude
[in]weatherbasic weather information for computing air mass
[in]instrumentLabelShort name of the instrument that took this data (e.g. "HSC")
[in]idIdentifier of this full focal plane data.
[in]focusZDefocal distance of main-cam hexapod in mm. 0 is in focus.; Extra-focal is negative while intra-focal is positive.
[in]observationTypeType of this observation (e.g. science, dark, flat, bias, focus).
[in]scienceProgramObserving program (survey or proposal) identifier.
[in]observationReasonReason this observation was taken, or its purpose ('science' and 'calibration' are common values).
[in]objectObject of interest or field name.
[in]hasSimulatedContentWas any part of this observation simulated?

Definition at line 98 of file VisitInfo.h.

◆ VisitInfo() [2/4]

lsst::afw::image::VisitInfo::VisitInfo ( daf::base::PropertySet const & metadata)
explicit

Definition at line 453 of file VisitInfo.cc.

◆ ~VisitInfo()

lsst::afw::image::VisitInfo::~VisitInfo ( )
overridedefault

◆ VisitInfo() [3/4]

lsst::afw::image::VisitInfo::VisitInfo ( VisitInfo const & )
default

◆ VisitInfo() [4/4]

lsst::afw::image::VisitInfo::VisitInfo ( VisitInfo && )
default

Member Function Documentation

◆ cloneStorable()

std::shared_ptr< typehandling::Storable > lsst::afw::image::VisitInfo::cloneStorable ( ) const
override

Create a new VisitInfo that is a copy of this one.

Definition at line 630 of file VisitInfo.cc.

◆ dynamicCast()

template std::shared_ptr< math::WarpingControl > lsst::afw::table::io::PersistableFacade< VisitInfo >::dynamicCast ( std::shared_ptr< Persistable > const & ptr)
staticinherited

Dynamically cast a shared_ptr.

Dynamically cast a shared pointer and raise on failure.

You must provide an explicit template instantiation in the .cc file for each class that inherits from PersistableFacade. Designed to work around RTTI issues on macOS with hidden symbols;

Exceptions
lsst::pex::exceptions::LogicErrorif the cast fails

param[in] ptr The pointer to be cast.

Returns
The cast pointer.
Exceptions
lsst::pex::exceptions::TypeErrorIf the dynamic cast fails.

Definition at line 218 of file Persistable.cc.

◆ equals()

bool lsst::afw::image::VisitInfo::equals ( typehandling::Storable const & other) const
overridenoexcept

Compare this object to another Storable.

Returns
*this == other if other is a VisitInfo; otherwise false.

Definition at line 634 of file VisitInfo.cc.

◆ getBoresightAirmass()

double lsst::afw::image::VisitInfo::getBoresightAirmass ( ) const
inline

get airmass at the boresight, relative to zenith at sea level (and at the middle of the exposure, if it varies with time)

Definition at line 168 of file VisitInfo.h.

◆ getBoresightAzAlt()

lsst::geom::SpherePoint lsst::afw::image::VisitInfo::getBoresightAzAlt ( ) const
inline

get refracted apparent topocentric Az/Alt position at the boresight (and at the middle of the exposure, if it varies with time)

Definition at line 164 of file VisitInfo.h.

◆ getBoresightHourAngle()

lsst::geom::Angle lsst::afw::image::VisitInfo::getBoresightHourAngle ( ) const

Definition at line 614 of file VisitInfo.cc.

◆ getBoresightParAngle()

lsst::geom::Angle lsst::afw::image::VisitInfo::getBoresightParAngle ( ) const

Get parallactic angle at the boresight.

Equal to the angle between the North celestial pole and Zenith at the boresight. Or, the angular separation between two great circle arcs that meet at the object: One passing through the North celestial pole, and the other through zenith. For an object on the meridian the angle is zero if it is South of zenith and pi if it is North of zenith The angle is positive for objects East of the meridian, and negative for objects to the West.

Compute the parallactic angle. Defined as the angle between the North celestial pole and Zenith at the boresight.

Definition at line 616 of file VisitInfo.cc.

◆ getBoresightRaDec()

lsst::geom::SpherePoint lsst::afw::image::VisitInfo::getBoresightRaDec ( ) const
inline

get ICRS RA/Dec position at the boresight (and at the middle of the exposure, if it varies with time)

Definition at line 160 of file VisitInfo.h.

◆ getBoresightRotAngle()

lsst::geom::Angle lsst::afw::image::VisitInfo::getBoresightRotAngle ( ) const
inline

Get rotation angle at boresight at middle of exposure.

The meaning of rotation angle depends on rotType. For example, if rotType is SKY the angle is the position angle of the focal plane +Y with respect to North.

Definition at line 176 of file VisitInfo.h.

◆ getDarkTime()

double lsst::afw::image::VisitInfo::getDarkTime ( ) const
inline

get time from CCD flush to exposure readout, including shutter open time (despite the name); (sec)

Definition at line 147 of file VisitInfo.h.

◆ getDate()

daf::base::DateTime lsst::afw::image::VisitInfo::getDate ( ) const
inline

get uniform date and time at middle of exposure

Definition at line 150 of file VisitInfo.h.

◆ getEra()

lsst::geom::Angle lsst::afw::image::VisitInfo::getEra ( ) const
inline

get earth rotation angle at middle of exposure

Definition at line 156 of file VisitInfo.h.

◆ getExposureTime()

double lsst::afw::image::VisitInfo::getExposureTime ( ) const
inline

get exposure duration (shutter open time); (sec)

Definition at line 144 of file VisitInfo.h.

◆ getFocusZ()

double lsst::afw::image::VisitInfo::getFocusZ ( ) const
inline

Definition at line 200 of file VisitInfo.h.

◆ getHasSimulatedContent()

bool lsst::afw::image::VisitInfo::getHasSimulatedContent ( ) const
inline

Definition at line 206 of file VisitInfo.h.

◆ getId()

table::RecordId lsst::afw::image::VisitInfo::getId ( ) const
inline

Definition at line 197 of file VisitInfo.h.

◆ getInstrumentLabel()

std::string lsst::afw::image::VisitInfo::getInstrumentLabel ( ) const
inline

Definition at line 195 of file VisitInfo.h.

◆ getLocalEra()

lsst::geom::Angle lsst::afw::image::VisitInfo::getLocalEra ( ) const

Definition at line 612 of file VisitInfo.cc.

◆ getObject()

std::string lsst::afw::image::VisitInfo::getObject ( ) const
inline

Definition at line 205 of file VisitInfo.h.

◆ getObservationReason()

std::string lsst::afw::image::VisitInfo::getObservationReason ( ) const
inline

Definition at line 204 of file VisitInfo.h.

◆ getObservationType()

std::string lsst::afw::image::VisitInfo::getObservationType ( ) const
inline

Definition at line 202 of file VisitInfo.h.

◆ getObservatory()

coord::Observatory lsst::afw::image::VisitInfo::getObservatory ( ) const
inline

get observatory longitude, latitude and elevation

Definition at line 182 of file VisitInfo.h.

◆ getPersistenceName()

std::string lsst::afw::image::VisitInfo::getPersistenceName ( ) const
overrideprotected

Definition at line 574 of file VisitInfo.cc.

◆ getRotType()

RotType lsst::afw::image::VisitInfo::getRotType ( ) const
inline

get rotation type of boresightRotAngle

Definition at line 179 of file VisitInfo.h.

◆ getScienceProgram()

std::string lsst::afw::image::VisitInfo::getScienceProgram ( ) const
inline

Definition at line 203 of file VisitInfo.h.

◆ getUt1()

double lsst::afw::image::VisitInfo::getUt1 ( ) const
inline

get UT1 (universal time) MJD date at middle of exposure

Definition at line 153 of file VisitInfo.h.

◆ getWeather()

coord::Weather lsst::afw::image::VisitInfo::getWeather ( ) const
inline

get basic weather information

Definition at line 185 of file VisitInfo.h.

◆ hash_value()

std::size_t lsst::afw::image::VisitInfo::hash_value ( ) const
overridenoexcept

Return a hash of this object.

Definition at line 566 of file VisitInfo.cc.

◆ isPersistable()

bool lsst::afw::image::VisitInfo::isPersistable ( ) const
inlineoverridenoexcept

Definition at line 187 of file VisitInfo.h.

◆ operator!=()

bool lsst::afw::image::VisitInfo::operator!= ( VisitInfo const & other) const
inline

Definition at line 138 of file VisitInfo.h.

◆ operator=() [1/2]

VisitInfo & lsst::afw::image::VisitInfo::operator= ( VisitInfo && )
default

◆ operator=() [2/2]

VisitInfo & lsst::afw::image::VisitInfo::operator= ( VisitInfo const & )
default

◆ operator==()

bool lsst::afw::image::VisitInfo::operator== ( VisitInfo const & other) const

Definition at line 551 of file VisitInfo.cc.

◆ readFits()

std::shared_ptr< VisitInfo > lsst::afw::table::io::PersistableFacade< VisitInfo >::readFits ( fits::Fits & fitsfile)
inlinestaticinherited

Read an object from an already open FITS object.

Parameters
[in]fitsfileFITS object to read from, already positioned at the desired HDU.

Definition at line 183 of file Persistable.h.

◆ toString()

std::string lsst::afw::image::VisitInfo::toString ( ) const
override

Create a string representation of this object.

Definition at line 638 of file VisitInfo.cc.

◆ write()

void lsst::afw::image::VisitInfo::write ( OutputArchiveHandle & handle) const
overrideprotected

Definition at line 576 of file VisitInfo.cc.


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