LSST Applications g063fba187b+cac8b7c890,g0f08755f38+6aee506743,g1653933729+a8ce1bb630,g168dd56ebc+a8ce1bb630,g1a2382251a+b4475c5878,g1dcb35cd9c+8f9bc1652e,g20f6ffc8e0+6aee506743,g217e2c1bcf+73dee94bd0,g28da252d5a+1f19c529b9,g2bbee38e9b+3f2625acfc,g2bc492864f+3f2625acfc,g3156d2b45e+6e55a43351,g32e5bea42b+1bb94961c2,g347aa1857d+3f2625acfc,g35bb328faa+a8ce1bb630,g3a166c0a6a+3f2625acfc,g3e281a1b8c+c5dd892a6c,g3e8969e208+a8ce1bb630,g414038480c+5927e1bc1e,g41af890bb2+8a9e676b2a,g7af13505b9+809c143d88,g80478fca09+6ef8b1810f,g82479be7b0+f568feb641,g858d7b2824+6aee506743,g89c8672015+f4add4ffd5,g9125e01d80+a8ce1bb630,ga5288a1d22+2903d499ea,gb58c049af0+d64f4d3760,gc28159a63d+3f2625acfc,gcab2d0539d+b12535109e,gcf0d15dbbd+46a3f46ba9,gda6a2b7d83+46a3f46ba9,gdaeeff99f8+1711a396fd,ge79ae78c31+3f2625acfc,gef2f8181fd+0a71e47438,gf0baf85859+c1f95f4921,gfa517265be+6aee506743,gfa999e8aa5+17cd334064,w.2024.51
LSST Data Management Base Package
|
Information about a single exposure of an imaging camera. More...
#include <VisitInfo.h>
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 |
Return true if this particular object can be persisted using afw::table::io. | |
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. | |
void | writeFits (std::string const &fileName, std::string const &mode="w") const |
Write the object to a regular FITS file. | |
void | writeFits (fits::MemFileManager &manager, std::string const &mode="w") const |
Write the object to a FITS image in memory. | |
void | writeFits (fits::Fits &fitsfile) const |
Write the object to an already-open FITS object. | |
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 > | readFits (std::string const &fileName, int hdu=fits::DEFAULT_HDU) |
Read an object from a regular FITS file. | |
static std::shared_ptr< VisitInfo > | readFits (fits::MemFileManager &manager, int hdu=fits::DEFAULT_HDU) |
Read an object from a FITS file in memory. | |
static std::shared_ptr< VisitInfo > | dynamicCast (std::shared_ptr< Persistable > const &ptr) |
Dynamically cast a shared_ptr. | |
Protected Types | |
using | OutputArchiveHandle = io::OutputArchiveHandle |
Protected Member Functions | |
std::string | getPersistenceName () const override |
Return the unique name used to persist this object and look up its factory. | |
void | write (OutputArchiveHandle &handle) const override |
Write the object to one or more catalogs. | |
virtual std::string | getPythonModule () const |
Return the fully-qualified Python module that should be imported to guarantee that its factory is registered. | |
Static Protected Member Functions | |
template<class T > | |
static bool | singleClassEquals (T const &lhs, Storable const &rhs) |
Test if a Storable is of a particular class and equal to another object. | |
Related Symbols | |
(Note that these are not member symbols.) | |
std::ostream & | operator<< (std::ostream &os, Storable const &storable) |
Output operator for Storable. | |
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.
|
protectedinherited |
Definition at line 108 of file Persistable.h.
|
inlineexplicit |
Construct a VisitInfo.
[in] | exposureTime | exposure duration (shutter open time); (sec) |
[in] | darkTime | time from CCD flush to readout, including shutter open time (despite the name); (sec) |
[in] | date | TAI (international atomic time) MJD date at middle of exposure |
[in] | ut1 | UT1 (universal time) MJD date at middle of exposure |
[in] | era | earth rotation angle at middle of exposure |
[in] | boresightRaDec | ICRS RA/Dec of boresight at middle of exposure |
[in] | boresightAzAlt | refracted apparent topocentric Az/Alt of boresight at middle of exposure |
[in] | boresightAirmass | airmass at the boresight, relative to zenith at sea level |
[in] | boresightRotAngle | rotation angle at boresight at middle of exposure; see getBoresightRotAngle for details |
[in] | rotType | rotation type |
[in] | observatory | observatory longitude, latitude and altitude |
[in] | weather | basic weather information for computing air mass |
[in] | instrumentLabel | Short name of the instrument that took this data (e.g. "HSC") |
[in] | id | Identifier of this full focal plane data. |
[in] | focusZ | Defocal distance of main-cam hexapod in mm. 0 is in focus.; Extra-focal is negative while intra-focal is positive. |
[in] | observationType | Type of this observation (e.g. science, dark, flat, bias, focus). |
[in] | scienceProgram | Observing program (survey or proposal) identifier. |
[in] | observationReason | Reason this observation was taken, or its purpose ('science' and 'calibration' are common values). |
[in] | object | Object of interest or field name. |
[in] | hasSimulatedContent | Was any part of this observation simulated? |
Definition at line 98 of file VisitInfo.h.
|
explicit |
Definition at line 453 of file VisitInfo.cc.
|
overridedefault |
|
default |
|
default |
|
overridevirtual |
Create a new VisitInfo that is a copy of this one.
Reimplemented from lsst::afw::typehandling::Storable.
Definition at line 630 of file VisitInfo.cc.
|
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;
lsst::pex::exceptions::LogicError | if the cast fails |
param[in] ptr The pointer to be cast.
lsst::pex::exceptions::TypeError | If the dynamic cast fails. |
Definition at line 218 of file Persistable.cc.
|
overridevirtualnoexcept |
Compare this object to another Storable.
*this == other
if other
is a VisitInfo; otherwise false
. Reimplemented from lsst::afw::typehandling::Storable.
Definition at line 634 of file VisitInfo.cc.
|
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.
|
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.
lsst::geom::Angle lsst::afw::image::VisitInfo::getBoresightHourAngle | ( | ) | const |
Definition at line 614 of file VisitInfo.cc.
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.
|
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.
|
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.
|
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.
|
inline |
get uniform date and time at middle of exposure
Definition at line 150 of file VisitInfo.h.
|
inline |
get earth rotation angle at middle of exposure
Definition at line 156 of file VisitInfo.h.
|
inline |
get exposure duration (shutter open time); (sec)
Definition at line 144 of file VisitInfo.h.
|
inline |
Definition at line 200 of file VisitInfo.h.
|
inline |
Definition at line 206 of file VisitInfo.h.
|
inline |
Definition at line 197 of file VisitInfo.h.
|
inline |
Definition at line 195 of file VisitInfo.h.
lsst::geom::Angle lsst::afw::image::VisitInfo::getLocalEra | ( | ) | const |
Definition at line 612 of file VisitInfo.cc.
|
inline |
Definition at line 205 of file VisitInfo.h.
|
inline |
Definition at line 204 of file VisitInfo.h.
|
inline |
Definition at line 202 of file VisitInfo.h.
|
inline |
get observatory longitude, latitude and elevation
Definition at line 182 of file VisitInfo.h.
|
overrideprotectedvirtual |
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 574 of file VisitInfo.cc.
|
protectedvirtualinherited |
Return the fully-qualified Python module that should be imported to guarantee that its factory is registered.
Must be less than ArchiveIndexSchema::MAX_MODULE_LENGTH characters.
Will be ignored if empty.
Reimplemented in lsst::afw::image::FilterLabel, lsst::afw::cameraGeom::Detector, lsst::afw::cameraGeom::DetectorCollection, lsst::afw::cameraGeom::TransformMap, lsst::afw::detection::Footprint, lsst::afw::detection::GaussianPsf, lsst::afw::geom::SkyWcs, lsst::afw::geom::SpanSet, lsst::afw::geom::Transform< FromEndpoint, ToEndpoint >, lsst::afw::geom::Transform< afw::geom::Point2Endpoint, afw::geom::GenericEndpoint >, lsst::afw::image::ApCorrMap, lsst::afw::image::CoaddInputs, lsst::afw::image::TransmissionCurve, lsst::afw::math::ChebyshevBoundedField, lsst::afw::math::Function< double >, lsst::afw::math::Function< Kernel::Pixel >, lsst::afw::math::Function< Pixel >, lsst::afw::math::Function< ReturnT >, lsst::afw::math::Kernel, lsst::afw::math::PixelAreaBoundedField, lsst::afw::math::ProductBoundedField, lsst::afw::math::TransformBoundedField, lsst::afw::math::LanczosWarpingKernel, lsst::afw::math::BilinearWarpingKernel, lsst::afw::math::NearestWarpingKernel, lsst::afw::math::WarpingControl, lsst::afw::typehandling::StorableHelper< Base >, lsst::meas::algorithms::CoaddBoundedField, lsst::meas::algorithms::CoaddPsf, lsst::meas::algorithms::KernelPsf, lsst::meas::algorithms::WarpedPsf, lsst::meas::extensions::psfex::PsfexPsf, and lsst::meas::modelfit::Mixture.
Definition at line 36 of file Persistable.cc.
|
inline |
get rotation type of boresightRotAngle
Definition at line 179 of file VisitInfo.h.
|
inline |
Definition at line 203 of file VisitInfo.h.
|
inline |
get UT1 (universal time) MJD date at middle of exposure
Definition at line 153 of file VisitInfo.h.
|
inline |
|
overridevirtualnoexcept |
Return a hash of this object.
Reimplemented from lsst::afw::typehandling::Storable.
Definition at line 566 of file VisitInfo.cc.
|
inlineoverridevirtualnoexcept |
Return true if this particular object can be persisted using afw::table::io.
Reimplemented from lsst::afw::table::io::Persistable.
Definition at line 187 of file VisitInfo.h.
|
inline |
Definition at line 138 of file VisitInfo.h.
bool lsst::afw::image::VisitInfo::operator== | ( | VisitInfo const & | other | ) | const |
Definition at line 551 of file VisitInfo.cc.
|
inlinestaticinherited |
Read an object from an already open FITS object.
[in] | fitsfile | FITS object to read from, already positioned at the desired HDU. |
Definition at line 183 of file Persistable.h.
|
inlinestaticinherited |
Read an object from a FITS file in memory.
[in] | manager | Manager for the memory to read from. |
[in] | hdu | HDU 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.
|
inlinestaticinherited |
Read an object from a regular FITS file.
[in] | fileName | Name of the file to read. |
[in] | hdu | HDU 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.
|
inlinestaticprotectedinherited |
Test if a Storable is of a particular class and equal to another object.
This method template simplifies implementations of equals that delegate to operator==
without supporting cross-class comparisons.
T | The class expected of the two objects to be compared. |
lhs,rhs | The objects to compare. Note that rhs need not be a T , while lhs must be. |
true
if rhs
is a T
and lhs == rhs
; false
otherwise.operator==
. Most implementations of operator==
do not throw.operator==
with both arguments of compile-time type T const&
. Its use is not recommended if there would be any ambiguity as to which operator==
gets picked by overload resolution.This method template is typically called from equals as:
bool MyType::equals(Storable const& other) const noexcept { return singleClassEquals(*this, other); }
Definition at line 151 of file Storable.h.
|
overridevirtual |
Create a string representation of this object.
Reimplemented from lsst::afw::typehandling::Storable.
Definition at line 638 of file VisitInfo.cc.
|
overrideprotectedvirtual |
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 576 of file VisitInfo.cc.
|
inherited |
Write the object to an already-open FITS object.
[in] | fitsfile | Open FITS object to write to. |
Definition at line 18 of file Persistable.cc.
|
inherited |
Write the object to a FITS image in memory.
[in] | manager | Name of the file to write to. |
[in] | mode | If "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.
|
inherited |
Write the object to a regular FITS file.
[in] | fileName | Name of the file to write to. |
[in] | mode | If "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.
|
related |
Output operator for Storable.
os | the desired output stream |
storable | the object to print |
os
UnsupportedOperationException | Thrown if storable does not have an implementation of Storable::toString. |
Definition at line 174 of file Storable.h.