lsst.afw  15.0-24-g02ed2a30c+2
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | List of all members
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 > lsst::afw::table::io::Persistable

Public Member Functions

 VisitInfo (table::RecordId exposureId, double exposureTime, double darkTime, daf::base::DateTime const &date, double ut1, geom::Angle const &era, geom::SpherePoint const &boresightRaDec, geom::SpherePoint const &boresightAzAlt, double boresightAirmass, geom::Angle const &boresightRotAngle, RotType const &rotType, coord::Observatory const &observatory, coord::Weather const &weather)
 Construct a VisitInfo. More...
 
 VisitInfo (daf::base::PropertySet const &metadata)
 
virtual ~VisitInfo ()=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
 
table::RecordId getExposureId () const
 get exposure ID More...
 
double getExposureTime () const
 get exposure duration (shutter open time); (sec) More...
 
double getDarkTime () const
 get time from CCD flush to exposure readout, including shutter open time (despite the name); (sec) More...
 
daf::base::DateTime getDate () const
 get uniform date and time at middle of exposure More...
 
double getUt1 () const
 get UT1 (universal time) MJD date at middle of exposure More...
 
geom::Angle getEra () const
 get earth rotation angle at middle of exposure More...
 
geom::SpherePoint getBoresightRaDec () const
 get ICRS RA/Dec position at the boresight (and at the middle of the exposure, if it varies with time) More...
 
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) More...
 
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) More...
 
geom::Angle getBoresightRotAngle () const
 Get rotation angle at boresight at middle of exposure. More...
 
RotType getRotType () const
 get rotation type of boresightRotAngle More...
 
coord::Observatory getObservatory () const
 get observatory longitude, latitude and elevation More...
 
coord::Weather getWeather () const
 get basic weather information More...
 
bool isPersistable () const
 Return true if this particular object can be persisted using afw::table::io. More...
 
geom::Angle getLocalEra () const
 
geom::Angle getBoresightHourAngle () const
 
geom::Angle getBoresightParAngle () const
 Get parallactic angle at the boresight. More...
 
void writeFits (std::string const &fileName, std::string const &mode="w") const
 Write the object to a regular FITS file. More...
 
void writeFits (fits::MemFileManager &manager, std::string const &mode="w") const
 Write the object to a FITS image in memory. More...
 
void writeFits (fits::Fits &fitsfile) const
 Write the object to an already-open FITS object. More...
 

Static Public Member Functions

static std::shared_ptr< VisitInfo > readFits (fits::Fits &fitsfile)
 Read an object from an already open FITS object. More...
 
static std::shared_ptr< VisitInfo > readFits (std::string const &fileName, int hdu=fits::DEFAULT_HDU)
 Read an object from a regular FITS file. More...
 
static std::shared_ptr< VisitInfo > readFits (fits::MemFileManager &manager, int hdu=fits::DEFAULT_HDU)
 Read an object from a FITS file in memory. More...
 

Protected Types

typedef io::OutputArchiveHandle OutputArchiveHandle
 

Protected Member Functions

virtual std::string getPersistenceName () const
 Return the unique name used to persist this object and look up its factory. More...
 
virtual void write (OutputArchiveHandle &handle) const
 Write the object to one or more catalogs. More...
 
virtual std::string getPythonModule () const
 Return the fully-qualified Python module that should be imported to guarantee that its factory is registered. More...
 

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 67 of file VisitInfo.h.

Member Typedef Documentation

◆ OutputArchiveHandle

typedef io::OutputArchiveHandle lsst::afw::table::io::Persistable::OutputArchiveHandle
protectedinherited

Definition at line 108 of file Persistable.h.

Constructor & Destructor Documentation

◆ VisitInfo() [1/4]

lsst::afw::image::VisitInfo::VisitInfo ( table::RecordId  exposureId,
double  exposureTime,
double  darkTime,
daf::base::DateTime const &  date,
double  ut1,
geom::Angle const &  era,
geom::SpherePoint const &  boresightRaDec,
geom::SpherePoint const &  boresightAzAlt,
double  boresightAirmass,
geom::Angle const &  boresightRotAngle,
RotType const &  rotType,
coord::Observatory const &  observatory,
coord::Weather const &  weather 
)
inlineexplicit

Construct a VisitInfo.

Parameters
[in]exposureIdexposure ID
[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

Definition at line 88 of file VisitInfo.h.

◆ VisitInfo() [2/4]

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

Definition at line 309 of file VisitInfo.cc.

◆ ~VisitInfo()

virtual lsst::afw::image::VisitInfo::~VisitInfo ( )
virtualdefault

◆ VisitInfo() [3/4]

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

◆ VisitInfo() [4/4]

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

Member Function Documentation

◆ 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 147 of file VisitInfo.h.

◆ getBoresightAzAlt()

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 143 of file VisitInfo.h.

◆ getBoresightHourAngle()

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

Definition at line 415 of file VisitInfo.cc.

◆ getBoresightParAngle()

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 417 of file VisitInfo.cc.

◆ getBoresightRaDec()

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 139 of file VisitInfo.h.

◆ getBoresightRotAngle()

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 155 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 126 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 129 of file VisitInfo.h.

◆ getEra()

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

get earth rotation angle at middle of exposure

Definition at line 135 of file VisitInfo.h.

◆ getExposureId()

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

get exposure ID

Definition at line 120 of file VisitInfo.h.

◆ getExposureTime()

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

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

Definition at line 123 of file VisitInfo.h.

◆ getLocalEra()

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

Definition at line 413 of file VisitInfo.cc.

◆ getObservatory()

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

get observatory longitude, latitude and elevation

Definition at line 161 of file VisitInfo.h.

◆ getPersistenceName()

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

Return the unique name used to persist this object and look up its factory.

Must be less than ArchiveIndexSchema::MAX_NAME_LENGTH characters.

Reimplemented from lsst::afw::table::io::Persistable.

Definition at line 383 of file VisitInfo.cc.

◆ getPythonModule()

std::string lsst::afw::table::io::Persistable::getPythonModule ( ) const
protectedvirtualinherited

◆ getRotType()

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

get rotation type of boresightRotAngle

Definition at line 158 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 132 of file VisitInfo.h.

◆ getWeather()

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

get basic weather information

Definition at line 164 of file VisitInfo.h.

◆ isPersistable()

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

Return true if this particular object can be persisted using afw::table::io.

Reimplemented from lsst::afw::table::io::Persistable.

Definition at line 166 of file VisitInfo.h.

◆ operator!=()

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

Definition at line 117 of file VisitInfo.h.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator==()

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

Definition at line 374 of file VisitInfo.cc.

◆ readFits() [1/3]

static 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.

◆ readFits() [2/3]

static std::shared_ptr<VisitInfo > lsst::afw::table::io::PersistableFacade< VisitInfo >::readFits ( std::string const &  fileName,
int  hdu = fits::DEFAULT_HDU 
)
inlinestaticinherited

Read an object from a regular FITS file.

Parameters
[in]fileNameName of the file to read.
[in]hduHDU to read, where 0 is the primary. The special value of afw::fits::DEFAULT_HDU skips the primary HDU if it is empty.

Definition at line 194 of file Persistable.h.

◆ readFits() [3/3]

static std::shared_ptr<VisitInfo > lsst::afw::table::io::PersistableFacade< VisitInfo >::readFits ( fits::MemFileManager &  manager,
int  hdu = fits::DEFAULT_HDU 
)
inlinestaticinherited

Read an object from a FITS file in memory.

Parameters
[in]managerManager for the memory to read from.
[in]hduHDU to read, where 0 is the primary. The special value of afw::fits::DEFAULT_HDU skips the primary HDU if it is empty.

Definition at line 205 of file Persistable.h.

◆ write()

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

Write the object to one or more catalogs.

The handle object passed to this function provides an interface for adding new catalogs and adding nested objects to the same archive (while checking for duplicates). See OutputArchiveHandle for more information.

Reimplemented from lsst::afw::table::io::Persistable.

Definition at line 385 of file VisitInfo.cc.

◆ writeFits() [1/3]

void lsst::afw::table::io::Persistable::writeFits ( std::string const &  fileName,
std::string const &  mode = "w" 
) const
inherited

Write the object to a regular FITS file.

Parameters
[in]fileNameName of the file to write to.
[in]modeIf "w", any existing file with the given name will be overwritten. If "a", new HDUs will be appended to an existing file.

Definition at line 24 of file Persistable.cc.

◆ writeFits() [2/3]

void lsst::afw::table::io::Persistable::writeFits ( fits::MemFileManager &  manager,
std::string const &  mode = "w" 
) const
inherited

Write the object to a FITS image in memory.

Parameters
[in]managerName of the file to write to.
[in]modeIf "w", any existing file with the given name will be overwritten. If "a", new HDUs will be appended to an existing file.

Definition at line 29 of file Persistable.cc.

◆ writeFits() [3/3]

void lsst::afw::table::io::Persistable::writeFits ( fits::Fits &  fitsfile) const
inherited

Write the object to an already-open FITS object.

Parameters
[in]fitsfileOpen FITS object to write to.

Definition at line 18 of file Persistable.cc.


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