LSSTApplications
11.0-24-g0a022a1,14.0+77,15.0,15.0+1
LSSTDataManagementBasePackage
|
A class to handle Galactic coordinates (inherits from Coord) More...
#include <Coord.h>
Public Member Functions | |
GalacticCoord (lsst::afw::geom::Point2D const &p2d, lsst::afw::geom::AngleUnit unit=lsst::afw::geom::degrees) | |
GalacticCoord (lsst::afw::geom::Point3D const &p3d, bool normalize=true, lsst::afw::geom::Angle const defaultLongitude=lsst::afw::geom::Angle(0.)) | |
GalacticCoord (lsst::afw::geom::Angle const l, lsst::afw::geom::Angle const b) | |
GalacticCoord (std::string const l, std::string const b) | |
GalacticCoord ()=default | |
virtual | ~GalacticCoord ()=default |
GalacticCoord (GalacticCoord const &)=default | |
GalacticCoord (GalacticCoord &&)=default | |
GalacticCoord & | operator= (GalacticCoord const &)=default |
GalacticCoord & | operator= (GalacticCoord &&)=default |
virtual std::shared_ptr< Coord > | clone () const |
virtual std::string | getClassName () const |
virtual CoordSystem | getCoordSystem () const |
virtual std::string | toString () const |
Get string representation. More... | |
virtual void | reset (lsst::afw::geom::Angle const longitude, lsst::afw::geom::Angle const latitude) |
special reset() overload to make sure no epoch can be set More... | |
virtual std::pair< std::string, std::string > | getCoordNames () const |
lsst::afw::geom::Angle | getL () const |
lsst::afw::geom::Angle | getB () const |
std::string | getLStr (lsst::afw::geom::AngleUnit unit) const |
std::string | getBStr () const |
virtual Fk5Coord | toFk5 (double const epoch) const |
Convert ourself from galactic to Fk5 (specify epoch) More... | |
virtual Fk5Coord | toFk5 () const |
Convert ourself from galactic to Fk5 (no epoch specified) More... | |
virtual GalacticCoord | toGalactic () const |
Convert ourself from Galactic to Galactic ... More... | |
virtual void | reset (lsst::afw::geom::Angle const longitude, lsst::afw::geom::Angle const latitude, double const epoch) |
Reset our coordinates wholesale. More... | |
double | getEpoch () const |
lsst::afw::geom::Point2D | getPosition (lsst::afw::geom::AngleUnit unit=lsst::afw::geom::degrees) const |
Return our contents in a Point2D object. More... | |
lsst::afw::geom::Point3D | getVector () const |
Return our contents in a position vector. More... | |
lsst::afw::geom::Angle | operator[] (int const index) const |
Provide access to our contents via an index. More... | |
bool | operator== (Coord const &rhs) const |
Equality operator, compares each element directly. More... | |
lsst::afw::geom::Angle | getLongitude () const |
The main access method for the longitudinal coordinate. More... | |
lsst::afw::geom::Angle | getLatitude () const |
The main access method for the latitudinal coordinate. More... | |
std::string | getLongitudeStr (lsst::afw::geom::AngleUnit unit) const |
Allow quick access to the longitudinal coordinate as a string. More... | |
std::string | getLatitudeStr () const |
Allow quick access to the longitude coordinate as a string. More... | |
Coord | transform (Coord const &poleTo, Coord const &poleFrom) const |
Transform our current coords to another spherical polar system. More... | |
lsst::afw::geom::Angle | angularSeparation (Coord const &c) const |
compute the angular separation between two Coords More... | |
std::pair< lsst::afw::geom::Angle, lsst::afw::geom::Angle > | getOffsetFrom (Coord const &c) const |
Compute the offset from a coordinate. More... | |
std::pair< lsst::afw::geom::Angle, lsst::afw::geom::Angle > | getTangentPlaneOffset (Coord const &c) const |
Get the offset on the tangent plane. More... | |
void | rotate (Coord const &axis, lsst::afw::geom::Angle const theta) |
Rotate our current coords about a pole. More... | |
lsst::afw::geom::Angle | offset (lsst::afw::geom::Angle const phi, lsst::afw::geom::Angle const arcLen) |
offset our current coords along a great circle defined by an angle wrt a declination parallel More... | |
std::shared_ptr< Coord > | convert (CoordSystem system, double epoch=2000) const |
Convert to a specified Coord type at a specified epoch. More... | |
virtual IcrsCoord | toIcrs () const |
Convert ourself to ICRS: RA, Dec (basically J2000) More... | |
virtual EclipticCoord | toEcliptic (double const epoch) const |
Convert ourself to Ecliptic: lambda, beta (precess to new epoch) More... | |
virtual EclipticCoord | toEcliptic () const |
Convert ourself to Ecliptic: lambda, beta (use existing epoch) More... | |
virtual TopocentricCoord | toTopocentric (Observatory const &obs, lsst::daf::base::DateTime const &obsDate) const |
Convert ourself to Altitude/Azimuth: alt, az. More... | |
A class to handle Galactic coordinates (inherits from Coord)
|
inline |
Definition at line 428 of file Coord.h.
|
inline |
Definition at line 431 of file Coord.h.
|
inline |
Definition at line 434 of file Coord.h.
|
inline |
Definition at line 435 of file Coord.h.
|
default |
|
virtualdefault |
|
default |
|
default |
|
inherited |
|
inlinevirtual |
Reimplemented from lsst::afw::coord::Coord.
Definition at line 444 of file Coord.h.
|
inherited |
Convert to a specified Coord type at a specified epoch.
[in] | system | coordinate system to which to convert |
[in] | epoch | epoch of coordinate system; only relevant for FK5 and Ecliptic coordinates |
lsst::pex::exceptions::InvalidParameterError | if system = TOPOCENTRIC (because observatory data is required) or if system not recognized |
Definition at line 471 of file Coord.cc.
|
inline |
Definition at line 467 of file Coord.h.
|
inline |
Definition at line 469 of file Coord.h.
|
inlinevirtual |
Reimplemented from lsst::afw::coord::Coord.
|
inlinevirtual |
Reimplemented from lsst::afw::coord::Coord.
|
inlinevirtual |
Reimplemented from lsst::afw::coord::Coord.
Definition at line 450 of file Coord.h.
|
inlineinherited |
|
inline |
Definition at line 466 of file Coord.h.
|
inlineinherited |
|
inlineinherited |
Allow quick access to the longitude coordinate as a string.
Definition at line 840 of file Coord.h.
|
inlineinherited |
|
inlineinherited |
Allow quick access to the longitudinal coordinate as a string.
Definition at line 824 of file Coord.h.
|
inline |
Definition at line 468 of file Coord.h.
|
inherited |
Compute the offset from a coordinate.
The resulting angles are suitable for input to Coord::offset
c | Coordinate from which to compute offset |
Definition at line 518 of file Coord.cc.
|
inherited |
Return our contents in a Point2D object.
Definition at line 346 of file Coord.cc.
|
inherited |
Get the offset on the tangent plane.
This is suitable only for small angles.
c | Coordinate from which to compute offset |
Definition at line 543 of file Coord.cc.
|
inherited |
Return our contents in a position vector.
Definition at line 355 of file Coord.cc.
|
inherited |
offset our current coords along a great circle defined by an angle wrt a declination parallel
phi | angle wrt parallel to offset |
arcLen | angle to offset |
phi
Definition at line 409 of file Coord.cc.
|
default |
|
default |
|
inlineinherited |
Equality operator, compares each element directly.
Definition at line 845 of file Coord.h.
|
inlineinherited |
Provide access to our contents via an index.
Definition at line 801 of file Coord.h.
|
virtualinherited |
Reset our coordinates wholesale.
This allows the user to instantiate Coords without values, and fill them later.
longitude | Longitude coord (eg. R.A. for Fk5) |
latitude | Latitude coord (eg. Declination for Fk5) |
epoch | epoch of coordinate |
Definition at line 339 of file Coord.cc.
|
virtual |
special reset() overload to make sure no epoch can be set
Reimplemented from lsst::afw::coord::Coord.
Definition at line 731 of file Coord.cc.
|
inherited |
Rotate our current coords about a pole.
axis | axis of rotation (right handed) |
theta | angle to offset in radians |
Definition at line 382 of file Coord.cc.
|
virtualinherited |
Convert ourself to Ecliptic: lambda, beta (precess to new epoch)
Reimplemented in lsst::afw::coord::EclipticCoord, and lsst::afw::coord::Fk5Coord.
Definition at line 576 of file Coord.cc.
|
virtualinherited |
Convert ourself to Ecliptic: lambda, beta (use existing epoch)
Reimplemented in lsst::afw::coord::EclipticCoord, and lsst::afw::coord::Fk5Coord.
Definition at line 577 of file Coord.cc.
|
virtual |
Convert ourself from galactic to Fk5 (specify epoch)
Reimplemented from lsst::afw::coord::Coord.
Definition at line 735 of file Coord.cc.
|
virtual |
Convert ourself from galactic to Fk5 (no epoch specified)
Reimplemented from lsst::afw::coord::Coord.
Definition at line 741 of file Coord.cc.
|
virtual |
Convert ourself from Galactic to Galactic ...
a no-op
Reimplemented from lsst::afw::coord::Coord.
Definition at line 743 of file Coord.cc.
|
virtualinherited |
Convert ourself to ICRS: RA, Dec (basically J2000)
Reimplemented in lsst::afw::coord::Fk5Coord, and lsst::afw::coord::IcrsCoord.
Definition at line 572 of file Coord.cc.
|
virtual |
Get string representation.
Reimplemented from lsst::afw::coord::Coord.
Definition at line 745 of file Coord.cc.
|
virtualinherited |
Convert ourself to Altitude/Azimuth: alt, az.
obs | observatory of observation |
obsDate | date of observation |
Reimplemented in lsst::afw::coord::TopocentricCoord, and lsst::afw::coord::Fk5Coord.
Definition at line 579 of file Coord.cc.
|
inherited |
Transform our current coords to another spherical polar system.
Variable names assume an equatorial/galactic transform, but it works for any spherical polar system when the appropriate poles are supplied.
poleTo | Pole of the destination system in the current coords |
poleFrom | Pole of the current system in the destination coords |
Definition at line 364 of file Coord.cc.