LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Types | Public Member Functions | List of all members
lsst::afw::coord::EclipticCoord Class Reference

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

#include <Coord.h>

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

Public Types

typedef boost::shared_ptr
< EclipticCoord
Ptr
 
- Public Types inherited from lsst::afw::coord::Coord
typedef boost::shared_ptr< CoordPtr
 
typedef boost::shared_ptr
< Coord const > 
ConstPtr
 

Public Member Functions

 EclipticCoord (lsst::afw::geom::Point2D const &p2d, lsst::afw::geom::AngleUnit unit=lsst::afw::geom::degrees, double const epoch=2000.0)
 
 EclipticCoord (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.))
 
 EclipticCoord (lsst::afw::geom::Angle const lamb, lsst::afw::geom::Angle const beta, double const epoch=2000.0)
 
 EclipticCoord (std::string const lamb, std::string const beta, double const epoch=2000.0)
 
 EclipticCoord ()
 
virtual Coord::Ptr clone () const
 
virtual std::string getClassName () const
 
virtual std::pair< std::string,
std::string > 
getCoordNames () const
 
lsst::afw::geom::Angle getLambda () const
 
lsst::afw::geom::Angle getBeta () const
 
std::string getLambdaStr (lsst::afw::geom::AngleUnit unit) const
 
std::string getBetaStr () const
 
virtual Fk5Coord toFk5 (double const epoch) const
 Convert ourself from Ecliptic to Fk5 (precess to new epoch) More...
 
virtual Fk5Coord toFk5 () const
 Convert ourself from Ecliptic to Fk5 (use current epoch) More...
 
virtual EclipticCoord toEcliptic (double const epoch) const
 Convert ourself from Ecliptic to Ecliptic ... a no-op (but precess to new epoch) More...
 
virtual EclipticCoord toEcliptic () const
 Convert ourself from Ecliptic to Ecliptic ... a no-op (use the current epoch) More...
 
EclipticCoord precess (double const epochTo) const
 precess to new epoch 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)
 
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 &poleFrom, Coord const &poleTo) const
 Tranform 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...
 
Coord::Ptr convert (CoordSystem system) const
 Convert to a specified Coord type. More...
 
virtual IcrsCoord toIcrs () const
 Convert ourself to ICRS: RA, Dec (basically J2000) More...
 
virtual GalacticCoord toGalactic () const
 Convert ourself to Galactic: l, b. 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 Ecliptic coordinates (inherits from Coord)

Definition at line 278 of file Coord.h.

Member Typedef Documentation

Definition at line 281 of file Coord.h.

Constructor & Destructor Documentation

lsst::afw::coord::EclipticCoord::EclipticCoord ( lsst::afw::geom::Point2D const &  p2d,
lsst::afw::geom::AngleUnit  unit = lsst::afw::geom::degrees,
double const  epoch = 2000.0 
)
inline

Definition at line 283 of file Coord.h.

285  :
286  Coord(p2d, unit, epoch) {}
Coord()
Default constructor for the Coord base class.
Definition: Coord.cc:441
lsst::afw::coord::EclipticCoord::EclipticCoord ( 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.) 
)
inline

Definition at line 287 of file Coord.h.

289  :
290  Coord(p3d, epoch, normalize, defaultLongitude) {}
Coord()
Default constructor for the Coord base class.
Definition: Coord.cc:441
lsst::afw::coord::EclipticCoord::EclipticCoord ( lsst::afw::geom::Angle const  lamb,
lsst::afw::geom::Angle const  beta,
double const  epoch = 2000.0 
)
inline

Definition at line 293 of file Coord.h.

294  :
295  Coord(lamb, beta, epoch) {}
Coord()
Default constructor for the Coord base class.
Definition: Coord.cc:441
Vector beta
lsst::afw::coord::EclipticCoord::EclipticCoord ( std::string const  lamb,
std::string const  beta,
double const  epoch = 2000.0 
)
inline

Definition at line 296 of file Coord.h.

296  :
297  Coord(lamb, beta, epoch) {}
Coord()
Default constructor for the Coord base class.
Definition: Coord.cc:441
Vector beta
lsst::afw::coord::EclipticCoord::EclipticCoord ( )
inline

Definition at line 299 of file Coord.h.

299 : Coord() {}
Coord()
Default constructor for the Coord base class.
Definition: Coord.cc:441

Member Function Documentation

virtual Coord::Ptr lsst::afw::coord::EclipticCoord::clone ( ) const
inlinevirtual

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

Definition at line 301 of file Coord.h.

301 { return EclipticCoord::Ptr(new EclipticCoord(*this)); }
boost::shared_ptr< EclipticCoord > Ptr
Definition: Coord.h:281
lsst::afw::geom::Angle lsst::afw::coord::EclipticCoord::getBeta ( ) const
inline

Definition at line 309 of file Coord.h.

309 { return getLatitude(); }
lsst::afw::geom::Angle getLatitude() const
The main access method for the latitudinal coordinate.
Definition: Coord.h:120
std::string lsst::afw::coord::EclipticCoord::getBetaStr ( ) const
inline

Definition at line 311 of file Coord.h.

311 { return getLatitudeStr(); }
std::string getLatitudeStr() const
Allow quick access to the longitude coordinate as a string.
Definition: Coord.h:460
virtual std::string lsst::afw::coord::EclipticCoord::getClassName ( ) const
inlinevirtual

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

Definition at line 303 of file Coord.h.

303 { return "EclipticCoord"; }
virtual std::pair<std::string, std::string> lsst::afw::coord::EclipticCoord::getCoordNames ( ) const
inlinevirtual

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

Definition at line 305 of file Coord.h.

305  {
306  return std::pair<std::string, std::string>("Lambda", "Beta");
307  }
lsst::afw::geom::Angle lsst::afw::coord::EclipticCoord::getLambda ( ) const
inline

Definition at line 308 of file Coord.h.

308 { return getLongitude(); }
lsst::afw::geom::Angle getLongitude() const
The main access method for the longitudinal coordinate.
Definition: Coord.h:113
std::string lsst::afw::coord::EclipticCoord::getLambdaStr ( lsst::afw::geom::AngleUnit  unit) const
inline

Definition at line 310 of file Coord.h.

310 { return getLongitudeStr(unit); }
std::string getLongitudeStr(lsst::afw::geom::AngleUnit unit) const
Allow quick access to the longitudinal coordinate as a string.
Definition: Coord.h:443
afwCoord::EclipticCoord lsst::afw::coord::EclipticCoord::precess ( double const  epochTo) const

precess to new epoch

Do this by going through fk5

Parameters
epochToepoch to precess to.

Definition at line 1107 of file Coord.cc.

1109  {
1110  return this->toFk5().precess(epochTo).toEcliptic();
1111 }
Fk5Coord precess(double const epochTo) const
Precess ourselves from whence we are to a new epoch.
Definition: Coord.cc:947
virtual Fk5Coord toFk5() const
Convert ourself from Ecliptic to Fk5 (use current epoch)
Definition: Coord.cc:1097
virtual EclipticCoord toEcliptic(double const epoch) const
Convert ourself to Ecliptic: lambda, beta (precess to new epoch)
Definition: Coord.cc:886
afwCoord::EclipticCoord lsst::afw::coord::EclipticCoord::toEcliptic ( double const  epoch) const
virtual

Convert ourself from Ecliptic to Ecliptic ... a no-op (but precess to new epoch)

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

Definition at line 1072 of file Coord.cc.

1072  {
1073  return EclipticCoord(getLongitude(), getLatitude(), getEpoch()).precess(epoch);
1074 }
lsst::afw::geom::Angle getLongitude() const
The main access method for the longitudinal coordinate.
Definition: Coord.h:113
double getEpoch() const
Definition: Coord.h:93
lsst::afw::geom::Angle getLatitude() const
The main access method for the latitudinal coordinate.
Definition: Coord.h:120
afwCoord::EclipticCoord lsst::afw::coord::EclipticCoord::toEcliptic ( ) const
virtual

Convert ourself from Ecliptic to Ecliptic ... a no-op (use the current epoch)

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

Definition at line 1078 of file Coord.cc.

1078  {
1080 }
lsst::afw::geom::Angle getLongitude() const
The main access method for the longitudinal coordinate.
Definition: Coord.h:113
double getEpoch() const
Definition: Coord.h:93
lsst::afw::geom::Angle getLatitude() const
The main access method for the latitudinal coordinate.
Definition: Coord.h:120
afwCoord::Fk5Coord lsst::afw::coord::EclipticCoord::toFk5 ( double const  epoch) const
virtual

Convert ourself from Ecliptic to Fk5 (precess to new epoch)

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

Definition at line 1086 of file Coord.cc.

1086  {
1087  afwGeom::Angle const eclPoleIncl = eclipticPoleInclination(epoch);
1088  afwGeom::Angle ninety = 90. * afwGeom::degrees;
1089  Coord const eclipticPoleInFk5(270.0 * afwGeom::degrees, ninety - eclPoleIncl, epoch);
1090  Coord const fk5PoleInEcliptic(ninety, ninety - eclPoleIncl, epoch);
1091  Coord c = transform(eclipticPoleInFk5, fk5PoleInEcliptic);
1092  return Fk5Coord(c.getLongitude(), c.getLatitude(), epoch);
1093 }
Coord()
Default constructor for the Coord base class.
Definition: Coord.cc:441
AngleUnit const degrees
Definition: Angle.h:92
lsst::afw::geom::Angle eclipticPoleInclination(double const epoch)
get the inclination of the ecliptic pole (obliquity) at epoch
Definition: Coord.cc:354
Coord transform(Coord const &poleFrom, Coord const &poleTo) const
Tranform our current coords to another spherical polar system.
Definition: Coord.cc:507
afwCoord::Fk5Coord lsst::afw::coord::EclipticCoord::toFk5 ( ) const
virtual

Convert ourself from Ecliptic to Fk5 (use current epoch)

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

Definition at line 1097 of file Coord.cc.

1097  {
1098  return this->toFk5(getEpoch());
1099 }
virtual Fk5Coord toFk5() const
Convert ourself from Ecliptic to Fk5 (use current epoch)
Definition: Coord.cc:1097
double getEpoch() const
Definition: Coord.h:93

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