lsst.afw  14.0-22-gc76603d1b
VisitInfo.cc
Go to the documentation of this file.
1 // -*- LSST-C++ -*- // fixed format comment for emacs
2 /*
3  * LSST Data Management System
4  * Copyright 2016 LSST Corporation.
5  *
6  * This product includes software developed by the
7  * LSST Project (http://www.lsst.org/).
8  *
9  * This program is free software: you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation, either version 3 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the LSST License Statement and
20  * the GNU General Public License along with this program. If not,
21  * see <http://www.lsstcorp.org/LegalNotices/>.
22  */
23 #include <cmath>
24 #include <cstdint>
25 #include <limits>
26 #include <sstream>
27 
28 #include "boost/algorithm/string/trim.hpp"
29 
30 #include "lsst/pex/exceptions.h"
31 #include "lsst/afw/table/Key.h"
32 #include "lsst/afw/table/aggregates.h" // for CoordKey
33 #include "lsst/afw/table/Schema.h"
34 #include "lsst/afw/table/misc.h" // for RecordId
37 #include "lsst/afw/table/io/CatalogVector.h" // needed, but why?
38 #include "lsst/afw/coord/Coord.h"
39 #include "lsst/afw/geom/Angle.h"
41 
43 
44 namespace lsst {
45 namespace afw {
46 namespace image {
47 
48 // the following persistence-related code emulates that in Calib.cc
49 
50 namespace {
51 
53 
62 double getDouble(daf::base::PropertySet const& metadata, std::string const& key) {
63  return metadata.exists(key) ? metadata.getAsDouble(key) : nan;
64 }
65 
74 geom::Angle getAngle(daf::base::PropertySet const& metadata, std::string const& key) {
75  return getDouble(metadata, key) * geom::degrees;
76 }
77 
86 bool setDouble(daf::base::PropertySet& metadata, std::string const& key, double value,
87  std::string const& comment) {
88  if (std::isfinite(value)) {
89  metadata.set(key, value);
90  return true;
91  }
92  return false;
93 }
94 
103 bool setAngle(daf::base::PropertySet& metadata, std::string const& key, geom::Angle const& angle,
104  std::string const& comment) {
105  return setDouble(metadata, key, angle.asDegrees(), comment);
106 }
107 
113 std::string rotTypeStrFromEnum(RotType rotType) {
114  switch (rotType) {
115  case RotType::UNKNOWN:
116  return "UNKNOWN";
117  case RotType::SKY:
118  return "SKY";
119  case RotType::HORIZON:
120  return "HORIZON";
121  case RotType::MOUNT:
122  return "MOUNT";
123  }
125  os << "Unknown RotType enum: " << static_cast<int>(rotType);
127 }
128 
134 RotType rotTypeEnumFromStr(std::string const& rotTypeName) {
135  if (rotTypeName == "UNKNOWN") {
136  return RotType::UNKNOWN;
137  } else if (rotTypeName == "SKY") {
138  return RotType::SKY;
139  } else if (rotTypeName == "HORIZON") {
140  return RotType::HORIZON;
141  } else if (rotTypeName == "MOUNT") {
142  return RotType::MOUNT;
143  }
145  os << "Unknown RotType name: \"" << rotTypeName << "\"";
147 }
148 
149 class VisitInfoSchema {
150 public:
151  table::Schema schema;
152  table::Key<table::RecordId> exposureId;
153  table::Key<double> exposureTime;
154  table::Key<double> darkTime;
155  table::Key<std::int64_t> tai;
156  table::Key<double> ut1;
157  table::Key<geom::Angle> era;
158  table::CoordKey boresightRaDec;
159  table::Key<geom::Angle> boresightAzAlt_az;
160  table::Key<geom::Angle> boresightAzAlt_alt;
161  table::Key<double> boresightAirmass;
162  table::Key<geom::Angle> boresightRotAngle;
163  table::Key<int> rotType;
164  // observatory data
165  table::Key<geom::Angle> latitude;
166  table::Key<geom::Angle> longitude;
167  table::Key<double> elevation;
168  // weather data
169  table::Key<double> airTemperature;
170  table::Key<double> airPressure;
171  table::Key<double> humidity;
172 
173  static VisitInfoSchema const& get() {
174  static VisitInfoSchema instance;
175  return instance;
176  }
177 
178  // No copying
179  VisitInfoSchema(const VisitInfoSchema&) = delete;
180  VisitInfoSchema& operator=(const VisitInfoSchema&) = delete;
181 
182  // No moving
183  VisitInfoSchema(VisitInfoSchema&&) = delete;
184  VisitInfoSchema& operator=(VisitInfoSchema&&) = delete;
185 
186 private:
187  VisitInfoSchema()
188  : schema(),
189  exposureId(schema.addField<table::RecordId>("exposureid", "exposure ID", "")),
190  exposureTime(schema.addField<double>("exposuretime", "exposure duration", "s")),
191  darkTime(schema.addField<double>("darktime", "time from CCD flush to readout", "s")),
192  tai(schema.addField<std::int64_t>(
193  "tai", "TAI date and time at middle of exposure as nsec from unix epoch", "nsec")),
194  ut1(schema.addField<double>("ut1", "UT1 date and time at middle of exposure", "MJD")),
195  era(schema.addField<geom::Angle>("era", "earth rotation angle at middle of exposure", "")),
196  boresightRaDec(table::CoordKey::addFields(schema, "boresightradec",
197  "sky position of boresight at middle of exposure")),
198  // CoordKey is only for IcrsCoord; we have no equivalent for other kinds of coordinates
199  // so use a pair of Angle fields to save boresightAzAlt
200  boresightAzAlt_az(schema.addField<geom::Angle>(
201  "boresightazalt_az",
202  "refracted apparent topocentric position of boresight at middle of exposure", "")),
203  boresightAzAlt_alt(schema.addField<geom::Angle>(
204  "boresightazalt_alt",
205  "refracted apparent topocentric position of boresight at middle of exposure", "")),
206  boresightAirmass(schema.addField<double>(
207  "boresightairmass", "airmass at boresight, relative to zenith at sea level", "")),
208  boresightRotAngle(schema.addField<geom::Angle>(
209  "boresightrotangle", "rotation angle at boresight at middle of exposure", "")),
210  rotType(schema.addField<int>("rottype", "rotation type; see VisitInfo.getRotType for details",
211  "MJD")),
212  // observatory data
213  latitude(schema.addField<geom::Angle>("latitude",
214  "latitude of telescope (+ is east of Greenwich)", "")),
215  longitude(schema.addField<geom::Angle>("longitude", "longitude of telescope", "")),
216  elevation(schema.addField<double>("elevation", "elevation of telescope", "")),
217  // weather data
218  airTemperature(schema.addField<double>("airtemperature", "air temperature", "C")),
219  airPressure(schema.addField<double>("airpressure", "air pressure", "Pascal")),
220  humidity(schema.addField<double>("humidity", "humidity (%)", "")) {
221  schema.getCitizen().markPersistent();
222  }
223 };
224 
225 class VisitInfoFactory : public table::io::PersistableFactory {
226 public:
227  virtual std::shared_ptr<table::io::Persistable> read(InputArchive const& archive,
228  CatalogVector const& catalogs) const {
229  VisitInfoSchema const& keys = VisitInfoSchema::get();
230  LSST_ARCHIVE_ASSERT(catalogs.size() == 1u);
231  LSST_ARCHIVE_ASSERT(catalogs.front().size() == 1u);
232  LSST_ARCHIVE_ASSERT(catalogs.front().getSchema() == keys.schema);
233  table::BaseRecord const& record = catalogs.front().front();
234  std::shared_ptr<VisitInfo> result(new VisitInfo(
235  record.get(keys.exposureId), record.get(keys.exposureTime), record.get(keys.darkTime),
236  ::DateTime(record.get(keys.tai), ::DateTime::TAI), record.get(keys.ut1), record.get(keys.era),
237  record.get(keys.boresightRaDec),
238  coord::Coord(record.get(keys.boresightAzAlt_az), record.get(keys.boresightAzAlt_alt)),
239  record.get(keys.boresightAirmass), record.get(keys.boresightRotAngle),
240  static_cast<RotType>(record.get(keys.rotType)),
241  coord::Observatory(record.get(keys.longitude), record.get(keys.latitude),
242  record.get(keys.elevation)),
243  coord::Weather(record.get(keys.airTemperature), record.get(keys.airPressure),
244  record.get(keys.humidity))));
245  return result;
246  }
247 
248  explicit VisitInfoFactory(std::string const& name) : table::io::PersistableFactory(name) {}
249 };
250 
251 std::string getVisitInfoPersistenceName() { return "VisitInfo"; }
252 
253 VisitInfoFactory registration(getVisitInfoPersistenceName());
254 
255 } // namespace
256 
257 namespace detail {
258 
260  int nstripped = 0;
261 
262  std::vector<std::string> keyList = {
263  "EXPID", "EXPTIME", "DARKTIME", "DATE-AVG", "TIMESYS", "TIME-MID", "MJD-AVG-UT1",
264  "AVG-ERA", "BORE-RA", "BORE-DEC", "BORE-AZ", "BORE-ALT", "BORE-AIRMASS", "BORE-ROTANG",
265  "ROTTYPE", "OBS-LONG", "OBS-LAT", "OBS-ELEV", "AIRTEMP", "AIRPRESS", "HUMIDITY"};
266  for (auto&& key : keyList) {
267  if (metadata.exists(key)) {
268  metadata.remove(key);
269  nstripped++;
270  }
271  }
272  return nstripped;
273 }
274 
276  if (visitInfo.getExposureId() != 0) {
277  metadata.set("EXPID", visitInfo.getExposureId());
278  }
279  setDouble(metadata, "EXPTIME", visitInfo.getExposureTime(), "Exposure time (sec)");
280  setDouble(metadata, "DARKTIME", visitInfo.getDarkTime(), "Time from CCD flush to readout (sec)");
281  if (visitInfo.getDate().isValid()) {
282  metadata.set("DATE-AVG", visitInfo.getDate().toString(::DateTime::TAI),
283  "TAI date at middle of observation");
284  metadata.set("TIMESYS", "TAI");
285  }
286  setDouble(metadata, "MJD-AVG-UT1", visitInfo.getUt1(), "UT1 MJD date at ctr of obs");
287  setAngle(metadata, "AVG-ERA", visitInfo.getEra(), "Earth rot ang at ctr of obs (deg)");
288  auto boresightRaDec = visitInfo.getBoresightRaDec();
289  setAngle(metadata, "BORE-RA", boresightRaDec[0], "ICRS RA (deg) at boresight");
290  setAngle(metadata, "BORE-DEC", boresightRaDec[1], "ICRS Dec (deg) at boresight");
291  auto boresightAzAlt = visitInfo.getBoresightAzAlt();
292  setAngle(metadata, "BORE-AZ", boresightAzAlt[0], "Refr app topo az (deg) at bore");
293  setAngle(metadata, "BORE-ALT", boresightAzAlt[1], "Refr app topo alt (deg) at bore");
294  setDouble(metadata, "BORE-AIRMASS", visitInfo.getBoresightAirmass(), "Airmass at boresight");
295  setAngle(metadata, "BORE-ROTANG", visitInfo.getBoresightRotAngle(), "Rotation angle (deg) at boresight");
296  metadata.set("ROTTYPE", rotTypeStrFromEnum(visitInfo.getRotType()), "Type of rotation angle");
297  auto observatory = visitInfo.getObservatory();
298  setAngle(metadata, "OBS-LONG", observatory.getLongitude(), "Telescope longitude (+E, deg)");
299  setAngle(metadata, "OBS-LAT", observatory.getLatitude(), "Telescope latitude (deg)");
300  setDouble(metadata, "OBS-ELEV", observatory.getElevation(), "Telescope elevation (m)");
301  auto weather = visitInfo.getWeather();
302  setDouble(metadata, "AIRTEMP", weather.getAirTemperature(), "Outside air temperature (C)");
303  setDouble(metadata, "AIRPRESS", weather.getAirPressure(), "Outdoor air pressure (P)");
304  setDouble(metadata, "HUMIDITY", weather.getHumidity(), "Relative humidity (%)");
305 }
306 
307 } // namespace detail
308 
310  : _exposureId(0),
311  _exposureTime(nan), // don't use getDouble because str values are also accepted
312  _darkTime(getDouble(metadata, "DARKTIME")),
313  _date(),
314  _ut1(getDouble(metadata, "MJD-AVG-UT1")),
315  _era(getAngle(metadata, "AVG-ERA")),
316  _boresightRaDec(coord::IcrsCoord(getAngle(metadata, "BORE-RA"), getAngle(metadata, "BORE-DEC"))),
317  _boresightAzAlt(coord::Coord(getAngle(metadata, "BORE-AZ"), getAngle(metadata, "BORE-ALT"))),
318  _boresightAirmass(getDouble(metadata, "BORE-AIRMASS")),
319  _boresightRotAngle(getAngle(metadata, "BORE-ROTANG")),
320  _rotType(RotType::UNKNOWN),
321  _observatory(getAngle(metadata, "OBS-LONG"), getAngle(metadata, "OBS-LAT"),
322  getDouble(metadata, "OBS-ELEV")),
323  _weather(getDouble(metadata, "AIRTEMP"), getDouble(metadata, "AIRPRESS"),
324  getDouble(metadata, "HUMIDITY")) {
325  auto key = "EXPID";
326  if (metadata.exists(key)) {
327  _exposureId = metadata.getAsInt64(key);
328  }
329 
330  key = "EXPTIME";
331  if (metadata.exists(key)) {
332  try {
333  _exposureTime = metadata.getAsDouble(key);
334  } catch (lsst::pex::exceptions::TypeError& err) {
335  // some old exposures have EXPTIME stored as a string
336  std::string exptimeStr = metadata.getAsString(key);
337  _exposureTime = std::stod(exptimeStr);
338  }
339  }
340 
341  key = "DATE-AVG";
342  if (metadata.exists(key)) {
343  if (metadata.exists("TIMESYS")) {
344  auto timesysName = boost::algorithm::trim_right_copy(metadata.getAsString("TIMESYS"));
345  if (timesysName != "TAI") {
346  // rather than try to deal with all the possible choices, which requires
347  // appending or deleting a "Z", depending on the time system, just give up.
348  // VisitInfo should be used on FITS headers that have been sanitized!
350  os << "TIMESYS = \"" << timesysName
351  << "\"; VisitInfo requires TIMESYS to exist and to equal \"TAI\"";
353  }
354  } else {
356  "TIMESYS not found; VistitInfo requires TIMESYS to exist and to equal \"TAI\"");
357  }
358  _date = ::DateTime(boost::algorithm::trim_right_copy(metadata.getAsString(key)), ::DateTime::TAI);
359  } else {
360  // DATE-AVG not found. For backwards compatibility look for TIME-MID, an outdated LSST keyword
361  // whose time system was UTC, despite a FITS comment claiming it was TAI. Ignore TIMESYS.
362  key = "TIME-MID";
363  if (metadata.exists(key)) {
364  _date = ::DateTime(boost::algorithm::trim_right_copy(metadata.getAsString(key)), ::DateTime::UTC);
365  }
366  }
367 
368  key = "ROTTYPE";
369  if (metadata.exists(key)) {
370  _rotType = rotTypeEnumFromStr(metadata.getAsString(key));
371  }
372 }
373 
374 bool VisitInfo::operator==(VisitInfo const& other) const {
375  return _exposureId == other.getExposureId() && _exposureTime == other.getExposureTime() &&
376  _darkTime == other.getDarkTime() && _date == other.getDate() && _ut1 == other.getUt1() &&
377  _era == other.getEra() && _boresightRaDec == other.getBoresightRaDec() &&
378  _boresightAzAlt == other.getBoresightAzAlt() && _boresightAirmass == other.getBoresightAirmass() &&
379  _boresightRotAngle == other.getBoresightRotAngle() && _rotType == other.getRotType() &&
380  _observatory == other.getObservatory() && _weather == other.getWeather();
381 }
382 
383 std::string VisitInfo::getPersistenceName() const { return getVisitInfoPersistenceName(); }
384 
386  VisitInfoSchema const& keys = VisitInfoSchema::get();
387  table::BaseCatalog cat = handle.makeCatalog(keys.schema);
389  record->set(keys.exposureId, getExposureId());
390  record->set(keys.exposureTime, getExposureTime());
391  record->set(keys.darkTime, getDarkTime());
392  record->set(keys.tai, getDate().nsecs(::DateTime::TAI));
393  record->set(keys.ut1, getUt1());
394  record->set(keys.era, getEra());
395  record->set(keys.boresightRaDec, getBoresightRaDec());
396  auto boresightAzAlt = getBoresightAzAlt();
397  record->set(keys.boresightAzAlt_az, boresightAzAlt[0]);
398  record->set(keys.boresightAzAlt_alt, boresightAzAlt[1]);
399  record->set(keys.boresightAirmass, getBoresightAirmass());
400  record->set(keys.boresightRotAngle, getBoresightRotAngle());
401  record->set(keys.rotType, static_cast<int>(getRotType()));
402  auto observatory = getObservatory();
403  record->set(keys.latitude, observatory.getLatitude());
404  record->set(keys.longitude, observatory.getLongitude());
405  record->set(keys.elevation, observatory.getElevation());
406  auto weather = getWeather();
407  record->set(keys.airTemperature, weather.getAirTemperature());
408  record->set(keys.airPressure, weather.getAirPressure());
409  record->set(keys.humidity, weather.getHumidity());
410  handle.saveCatalog(cat);
411 }
412 
414 
416 
418  os << "VisitInfo(";
419  os << "exposureId=" << visitInfo.getExposureId() << ", ";
420  os << "exposureTime=" << visitInfo.getExposureTime() << ", ";
421  os << "darkTime=" << visitInfo.getDarkTime() << ", ";
422  os << "date=" << visitInfo.getDate().toString(daf::base::DateTime::TAI) << ", ";
423  os << "UT1=" << visitInfo.getUt1() << ", ";
424  os << "ERA=" << visitInfo.getEra() << ", ";
425  os << "boresightRaDec=" << visitInfo.getBoresightRaDec() << ", ";
426  os << "boresightAzAlt=" << visitInfo.getBoresightAzAlt() << ", ";
427  os << "boresightAirmass=" << visitInfo.getBoresightAirmass() << ", ";
428  os << "boresightRotAngle=" << visitInfo.getBoresightRotAngle() << ", ";
429  os << "rotType=" << static_cast<int>(visitInfo.getRotType()) << ", ";
430  os << "observatory=" << visitInfo.getObservatory() << ", ";
431  os << "weather=" << visitInfo.getWeather();
432  os << ")";
433  return os;
434 }
435 
436 } // namespace image
437 } // namespace afw
438 } // namespace lsst
std::int64_t RecordId
Type used for unique IDs for records.
Definition: misc.h:22
double getBoresightAirmass() const
get airmass at the boresight, relative to zenith at sea level (and at the middle of the exposure...
Definition: VisitInfo.h:150
double getAsDouble(std::string const &name) const
table::Key< double > exposureTime
Definition: VisitInfo.cc:153
table::Key< table::RecordId > exposureId
Definition: VisitInfo.cc:152
double get(DateSystem system=MJD, Timescale scale=TAI) const
lsst::afw::geom::Angle Angle
Definition: misc.h:36
table::Key< double > darkTime
Definition: VisitInfo.cc:154
lsst::afw::coord::Coord Coord
Definition: misc.h:33
table::Key< std::string > name
Definition: ApCorrMap.cc:71
coord::Coord getBoresightAzAlt() const
get refracted apparent topocentric Az/Alt position at the boresight (and at the middle of the exposur...
Definition: VisitInfo.h:146
An object passed to Persistable::write to allow it to persist itself.
virtual void remove(std::string const &name)
table::CoordKey boresightRaDec
Definition: VisitInfo.cc:158
A custom container class for records, based on std::vector.
Definition: Catalog.h:96
#define LSST_ARCHIVE_ASSERT(EXPR)
An assertion macro used to validate the structure of an InputArchive.
Definition: Persistable.h:47
table::Key< std::int64_t > tai
Definition: VisitInfo.cc:155
table::Schema schema
Definition: VisitInfo.cc:151
RotType
Type of rotation.
Definition: VisitInfo.h:44
T stod(T... args)
Information about a single exposure of an imaging camera.
Definition: VisitInfo.h:67
AngleUnit constexpr degrees
constant with units of degrees
Definition: Angle.h:88
double getUt1() const
get UT1 (universal time) MJD date at middle of exposure
Definition: VisitInfo.h:135
void set(std::string const &name, T const &value)
std::string toString(Timescale scale) const
double getDarkTime() const
get time from CCD flush to exposure readout, including shutter open time (despite the name); (sec) ...
Definition: VisitInfo.h:129
bool operator==(VisitInfo const &other) const
Definition: VisitInfo.cc:374
table::Key< geom::Angle > latitude
Definition: VisitInfo.cc:165
static CoordKey addFields(afw::table::Schema &schema, std::string const &name, std::string const &doc)
Add a pair of _ra, _dec fields to a Schema, and return a CoordKey that points to them.
Rotation angle is unknown.
geom::Angle getBoresightHourAngle() const
Definition: VisitInfo.cc:415
STL class.
lsst::daf::base::PropertySet PropertySet
Definition: Wcs.cc:55
void setVisitInfoMetadata(daf::base::PropertyList &metadata, VisitInfo const &visitInfo)
Set FITS metadata from a VisitInfo.
Definition: VisitInfo.cc:275
std::ostream & operator<<(std::ostream &os, VisitInfo const &visitInfo)
Definition: VisitInfo.cc:417
A class representing an angle.
Definition: Angle.h:102
A base class for image defects.
table::RecordId getExposureId() const
get exposure ID
Definition: VisitInfo.h:123
table::Key< geom::Angle > longitude
Definition: VisitInfo.cc:166
lsst::afw::coord::IcrsCoord IcrsCoord
Definition: misc.h:35
int64_t getAsInt64(std::string const &name) const
virtual std::string getPersistenceName() const
Return the unique name used to persist this object and look up its factory.
Definition: VisitInfo.cc:383
T str(T... args)
T isfinite(T... args)
bool exists(std::string const &name) const
table::Key< double > boresightAirmass
Definition: VisitInfo.cc:161
double getExposureTime() const
get exposure duration (shutter open time); (sec)
Definition: VisitInfo.h:126
coord::IcrsCoord getBoresightRaDec() const
get ICRS RA/Dec position at the boresight (and at the middle of the exposure, if it varies with time)...
Definition: VisitInfo.h:142
BaseCatalog makeCatalog(Schema const &schema)
Return a new, empty catalog with the given schema.
RotType getRotType() const
get rotation type of boresightRotAngle
Definition: VisitInfo.h:161
virtual void write(OutputArchiveHandle &handle) const
Write the object to one or more catalogs.
Definition: VisitInfo.cc:385
#define LSST_EXCEPT(type,...)
Position angle of focal plane +Y, measured from N through E.
daf::base::DateTime getDate() const
get uniform date and time at middle of exposure
Definition: VisitInfo.h:132
table::Key< double > airPressure
Definition: VisitInfo.cc:170
table::Key< geom::Angle > boresightAzAlt_az
Definition: VisitInfo.cc:159
lsst::afw::geom::Angle getLongitude() const
get telescope longitude (positive values are E of Greenwich)
Definition: Observatory.cc:47
table::Key< int > rotType
Definition: VisitInfo.cc:163
geom::Angle getBoresightRotAngle() const
Get rotation angle at boresight at middle of exposure.
Definition: VisitInfo.h:158
T nan(T... args)
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.
Definition: VisitInfo.h:91
int stripVisitInfoKeywords(daf::base::PropertySet &metadata)
Remove VisitInfo-related keywords from the metadata.
Definition: VisitInfo.cc:259
Position angle of focal plane +Y, measured from +Alt through +Az.
std::string getAsString(std::string const &name) const
T quiet_NaN(T... args)
void saveCatalog(BaseCatalog const &catalog)
Save a catalog in the archive.
table::Key< double > airTemperature
Definition: VisitInfo.cc:169
table::Key< double > ut1
Definition: VisitInfo.cc:156
table::Key< geom::Angle > era
Definition: VisitInfo.cc:157
STL class.
coord::Observatory getObservatory() const
get observatory longitude, latitude and elevation
Definition: VisitInfo.h:164
table::Key< double > elevation
Definition: VisitInfo.cc:167
table::Key< double > humidity
Definition: VisitInfo.cc:171
table::Key< geom::Angle > boresightRotAngle
Definition: VisitInfo.cc:162
coord::Weather getWeather() const
get basic weather information
Definition: VisitInfo.h:167
The position sent to the instrument rotator; the details depend on the rotator.
table::Key< geom::Angle > boresightAzAlt_alt
Definition: VisitInfo.cc:160
std::shared_ptr< RecordT > addNew()
Create a new record, add it to the end of the catalog, and return a pointer to it.
Definition: Catalog.h:463
geom::Angle getLocalEra() const
Definition: VisitInfo.cc:413
geom::Angle getEra() const
get earth rotation angle at middle of exposure
Definition: VisitInfo.h:138