LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
Classes | Namespaces | Enumerations | Functions
Coord.h File Reference

Functions to handle coordinates. More...

#include <iostream>
#include <limits>
#include <map>
#include "boost/shared_ptr.hpp"
#include "lsst/afw/geom/Point.h"
#include "lsst/afw/geom/Angle.h"
#include "lsst/afw/coord/Observatory.h"
#include "lsst/daf/base.h"

Go to the source code of this file.

Classes

class  lsst.afw.coord::Coord
 
class  lsst.afw.coord::IcrsCoord
 A class to handle Icrs coordinates (inherits from Coord) More...
 
class  lsst.afw.coord::Fk5Coord
 A class to handle Fk5 coordinates (inherits from Coord) More...
 
class  lsst.afw.coord::GalacticCoord
 A class to handle Galactic coordinates (inherits from Coord) More...
 
class  lsst.afw.coord::EclipticCoord
 A class to handle Ecliptic coordinates (inherits from Coord) More...
 
class  lsst.afw.coord::TopocentricCoord
 A class to handle topocentric (AltAz) coordinates (inherits from Coord) More...
 

Namespaces

 lsst
 < multiple inclusion guard macro
 
 lsst.afw
 
 lsst.afw.coord
 

Enumerations

enum  lsst.afw.coord::CoordSystem {
  lsst.afw.coord::FK5, lsst.afw.coord::ICRS, lsst.afw.coord::GALACTIC, lsst.afw.coord::ECLIPTIC,
  lsst.afw.coord::TOPOCENTRIC
}
 

Functions

CoordSystem lsst.afw.coord::makeCoordEnum (std::string const system)
 A utility function to get the enum value of a coordinate system from a string name. More...
 
Coord::Ptr lsst.afw.coord::makeCoord (CoordSystem const system, lsst::afw::geom::Angle const ra, lsst::afw::geom::Angle const dec, double const epoch)
 Factory function to create a Coord of arbitrary type with decimal RA,Dec. More...
 
Coord::Ptr lsst.afw.coord::makeCoord (CoordSystem const system, std::string const ra, std::string const dec, double const epoch)
 Factory function to create a Coord of arbitrary type with string RA [in degrees, not hours!], Dec. More...
 
Coord::Ptr lsst.afw.coord::makeCoord (CoordSystem const system, lsst::afw::geom::Point2D const &p2d, lsst::afw::geom::AngleUnit unit, double const epoch)
 Factory function to create a Coord of arbitrary type with Point2D. More...
 
Coord::Ptr lsst.afw.coord::makeCoord (CoordSystem const system, lsst::afw::geom::Point3D const &p3d, double const epoch, bool normalize=true, lsst::afw::geom::Angle const defaultLongitude=lsst::afw::geom::Angle(0.))
 Factory function to create a Coord of arbitrary type with a Point3D. More...
 
Coord::Ptr lsst.afw.coord::makeCoord (CoordSystem const system)
 Lightweight factory to make an empty coord. More...
 
Coord::Ptr lsst.afw.coord::makeCoord (CoordSystem const system, lsst::afw::geom::Angle const ra, lsst::afw::geom::Angle const dec)
 Factory function to create a Coord of arbitrary type with decimal RA,Dec in degrees. More...
 
Coord::Ptr lsst.afw.coord::makeCoord (CoordSystem const system, std::string const ra, std::string const dec)
 Factory function to create a Coord of arbitrary type with string RA [in degrees, not hours!], Dec. More...
 
Coord::Ptr lsst.afw.coord::makeCoord (CoordSystem const system, lsst::afw::geom::Point2D const &p2d, lsst::afw::geom::AngleUnit unit)
 Factory function to create a Coord of arbitrary type with Point2D. More...
 
Coord::Ptr lsst.afw.coord::makeCoord (CoordSystem const system, lsst::afw::geom::Point3D const &p3d, bool normalize=true, lsst::afw::geom::Angle const defaultLongitude=lsst::afw::geom::Angle(0.))
 Factory function to create a Coord of arbitrary type with a Point3D. More...
 
lsst::afw::geom::Angle lsst.afw.coord::eclipticPoleInclination (double const epoch)
 get the inclination of the ecliptic pole (obliquity) at epoch More...
 
lsst::afw::geom::Angle lsst.afw.coord::dmsStringToAngle (std::string const dms)
 Convert a dd:mm:ss string to Angle. More...
 
lsst::afw::geom::Angle lsst.afw.coord::hmsStringToAngle (std::string const hms)
 Convert a hh:mm:ss string to Angle. More...
 
std::string lsst.afw.coord::angleToDmsString (lsst::afw::geom::Angle const deg)
 a Function to convert a coordinate in decimal degrees to a string with form dd:mm:ss More...
 
std::string lsst.afw.coord::angleToHmsString (lsst::afw::geom::Angle const deg)
 a function to convert decimal degrees to a string with form hh:mm:ss.s More...
 
std::ostream & lsst.afw.coord::operator<< (std::ostream &os, Coord const &coord)
 
bool operator!= (lsst::afw::coord::Coord const &lhs, lsst::afw::coord::Coord const &rhs)
 Inequality; the complement of equality. More...
 

Detailed Description

Functions to handle coordinates.

Author
Steve Bickerton
Todo:
add FK4 ... as needed

Definition in file Coord.h.

Function Documentation

bool operator!= ( lsst::afw::coord::Coord const &  lhs,
lsst::afw::coord::Coord const &  rhs 
)
inline

Inequality; the complement of equality.

Definition at line 476 of file Coord.h.

476  {
477  return !(lhs == rhs);
478 }