Skip to content

Commit

Permalink
Merge pull request #116 from lsst/tickets/DM-8052
Browse files Browse the repository at this point in the history
Load LST into VisitInfo to approximate ERA tickets/DM-8052
  • Loading branch information
parejkoj committed Nov 18, 2016
2 parents f354919 + 64cdf2b commit 22f008f
Show file tree
Hide file tree
Showing 3 changed files with 225 additions and 270 deletions.
6 changes: 6 additions & 0 deletions include/lsst/afw/image/VisitInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,12 @@ class VisitInfo : public table::io::PersistableFacade<VisitInfo>, public table::

bool isPersistable() const { return true; }

// get the local sidereal time on the meridian (equivalent, but not equal, to Local Mean Sidereal Time)
geom::Angle getLocalEra() const;

// get hour angle at the boresight
geom::Angle getBoresightHourAngle() const;

protected:

virtual std::string getPersistenceName() const;
Expand Down
7 changes: 7 additions & 0 deletions src/image/VisitInfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -447,5 +447,12 @@ void VisitInfo::write(OutputArchiveHandle & handle) const {
handle.saveCatalog(cat);
}

geom::Angle VisitInfo::getLocalEra() const {
return getEra() + getObservatory().getLongitude();
}

geom::Angle VisitInfo::getBoresightHourAngle() const {
return getLocalEra() - getBoresightRaDec()[0];
}

}}} // namespace

0 comments on commit 22f008f

Please sign in to comment.