lsst.afw  13.0-94-ga1c444047
Public Member Functions | List of all members
lsst::afw::coord::IcrsCoord Class Reference

A class to handle Icrs coordinates (inherits from Coord) More...

#include <Coord.h>

Inheritance diagram for lsst::afw::coord::IcrsCoord:
lsst::afw::coord::Coord

Public Member Functions

 IcrsCoord (lsst::afw::geom::Point2D const &p2d, lsst::afw::geom::AngleUnit unit=lsst::afw::geom::degrees)
 
 IcrsCoord (lsst::afw::geom::Point3D const &p3d, bool normalize=true, lsst::afw::geom::Angle const defaultLongitude=lsst::afw::geom::Angle(0.))
 
 IcrsCoord (lsst::afw::geom::Angle const ra, lsst::afw::geom::Angle const dec)
 
 IcrsCoord (std::string const ra, std::string const dec)
 
 IcrsCoord ()
 
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...
 
lsst::afw::geom::Angle getRa () const
 
lsst::afw::geom::Angle getDec () const
 
std::string getRaStr (lsst::afw::geom::AngleUnit unit) const
 
std::string getDecStr () const
 
virtual Fk5Coord toFk5 (double const epoch) const
 Fk5 converter for IcrsCoord. More...
 
virtual Fk5Coord toFk5 () const
 Fk5 converter for IcrsCoord. More...
 
virtual IcrsCoord toIcrs () const
 Icrs converter for IcrsCoord. More...
 
- Public Member Functions inherited from lsst::afw::coord::Coord
 Coord (lsst::afw::geom::Point2D const &p2d, lsst::afw::geom::AngleUnit unit=lsst::afw::geom::degrees, double const epoch=2000.0)
 Constructor for the Coord base class. More...
 
 Coord (lsst::afw::geom::Point3D const &p3d, double const epoch=2000.0, bool normalize=true, lsst::afw::geom::Angle const defaultLongitude=lsst::afw::geom::Angle(0.))
 Constructor for the Coord base class. More...
 
 Coord (lsst::afw::geom::Angle const ra, lsst::afw::geom::Angle const dec, double const epoch=2000.0)
 Constructor for the Coord base class. More...
 
 Coord (std::string const ra, std::string const dec, double const epoch=2000.0)
 Constructor for the Coord base class. More...
 
 Coord ()
 Default constructor for the Coord base class. More...
 
virtual ~Coord ()
 
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...
 
virtual std::pair< std::string, std::string > getCoordNames () const
 
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 GalacticCoord toGalactic () const
 Convert ourself to Galactic: l, b. 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...
 

Detailed Description

A class to handle Icrs coordinates (inherits from Coord)

Definition at line 288 of file Coord.h.

Constructor & Destructor Documentation

◆ IcrsCoord() [1/5]

lsst::afw::coord::IcrsCoord::IcrsCoord ( lsst::afw::geom::Point2D const &  p2d,
lsst::afw::geom::AngleUnit  unit = lsst::afw::geom::degrees 
)
inline

Definition at line 290 of file Coord.h.

◆ IcrsCoord() [2/5]

lsst::afw::coord::IcrsCoord::IcrsCoord ( lsst::afw::geom::Point3D const &  p3d,
bool  normalize = true,
lsst::afw::geom::Angle const  defaultLongitude = lsst::afw::geom::Angle(0.) 
)
inline

Definition at line 292 of file Coord.h.

◆ IcrsCoord() [3/5]

lsst::afw::coord::IcrsCoord::IcrsCoord ( lsst::afw::geom::Angle const  ra,
lsst::afw::geom::Angle const  dec 
)
inline

Definition at line 295 of file Coord.h.

◆ IcrsCoord() [4/5]

lsst::afw::coord::IcrsCoord::IcrsCoord ( std::string const  ra,
std::string const  dec 
)
inline

Definition at line 296 of file Coord.h.

◆ IcrsCoord() [5/5]

lsst::afw::coord::IcrsCoord::IcrsCoord ( )
inline

Definition at line 297 of file Coord.h.

Member Function Documentation

◆ clone()

virtual std::shared_ptr<Coord> lsst::afw::coord::IcrsCoord::clone ( ) const
inlinevirtual

Reimplemented from lsst::afw::coord::Coord.

Definition at line 299 of file Coord.h.

◆ getClassName()

virtual std::string lsst::afw::coord::IcrsCoord::getClassName ( ) const
inlinevirtual

Reimplemented from lsst::afw::coord::Coord.

Definition at line 301 of file Coord.h.

◆ getCoordSystem()

virtual CoordSystem lsst::afw::coord::IcrsCoord::getCoordSystem ( ) const
inlinevirtual

Reimplemented from lsst::afw::coord::Coord.

Definition at line 303 of file Coord.h.

◆ getDec()

lsst::afw::geom::Angle lsst::afw::coord::IcrsCoord::getDec ( ) const
inline

Definition at line 316 of file Coord.h.

◆ getDecStr()

std::string lsst::afw::coord::IcrsCoord::getDecStr ( ) const
inline

Definition at line 318 of file Coord.h.

◆ getRa()

lsst::afw::geom::Angle lsst::afw::coord::IcrsCoord::getRa ( ) const
inline

Definition at line 315 of file Coord.h.

◆ getRaStr()

std::string lsst::afw::coord::IcrsCoord::getRaStr ( lsst::afw::geom::AngleUnit  unit) const
inline

Definition at line 317 of file Coord.h.

◆ reset()

void lsst::afw::coord::IcrsCoord::reset ( lsst::afw::geom::Angle const  longitude,
lsst::afw::geom::Angle const  latitude 
)
virtual

special reset() overload to make sure no epoch can be set

Reimplemented from lsst::afw::coord::Coord.

Definition at line 702 of file Coord.cc.

◆ toFk5() [1/2]

Fk5Coord lsst::afw::coord::IcrsCoord::toFk5 ( double const  epoch) const
virtual

Fk5 converter for IcrsCoord.

(specify epoch)

Reimplemented from lsst::afw::coord::Coord.

Definition at line 706 of file Coord.cc.

◆ toFk5() [2/2]

Fk5Coord lsst::afw::coord::IcrsCoord::toFk5 ( ) const
virtual

Fk5 converter for IcrsCoord.

(no epoch specified)

Reimplemented from lsst::afw::coord::Coord.

Definition at line 709 of file Coord.cc.

◆ toIcrs()

IcrsCoord lsst::afw::coord::IcrsCoord::toIcrs ( ) const
virtual

Icrs converter for IcrsCoord.

(ie. a no-op)

Reimplemented from lsst::afw::coord::Coord.

Definition at line 711 of file Coord.cc.

◆ toString()

std::string lsst::afw::coord::IcrsCoord::toString ( ) const
virtual

Get string representation.

Reimplemented from lsst::afw::coord::Coord.

Definition at line 713 of file Coord.cc.


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