lsst.afw  14.0-40-g0271be365
Namespaces | Functions
Coord.cc File Reference
#include <cmath>
#include <limits>
#include <cstdio>
#include <iomanip>
#include "Eigen/Core"
#include "Eigen/Geometry"
#include "lsst/pex/exceptions.h"
#include "boost/algorithm/string.hpp"
#include "boost/tuple/tuple.hpp"
#include "boost/format.hpp"
#include "lsst/afw/coord/Coord.h"
#include "lsst/daf/base/DateTime.h"

Go to the source code of this file.

Namespaces

 lsst
 A base class for image defects.
 
 lsst::afw
 
 lsst::afw::coord
 

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...
 
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...
 
lsst::afw::geom::Angle lsst::afw::coord::hmsStringToAngle (std::string const hms)
 Convert a hh:mm:ss string to Angle. 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::eclipticPoleInclination (double const epoch)
 get the inclination of the ecliptic pole (obliquity) at epoch More...
 
std::shared_ptr< Coord > 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...
 
std::shared_ptr< Coord > 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...
 
std::shared_ptr< Coord > 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...
 
std::shared_ptr< Coord > 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...
 
std::shared_ptr< Coord > 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...
 
std::shared_ptr< Coord > 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...
 
std::shared_ptr< Coord > 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...
 
std::shared_ptr< Coord > 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...
 
std::shared_ptr< Coord > lsst::afw::coord::makeCoord (CoordSystem const system)
 Lightweight factory to make an empty coord. More...
 
std::ostream & lsst::afw::coord::operator<< (std::ostream &os, Coord const &coord)
 
std::shared_ptr< Coord > lsst::afw::coord::averageCoord (std::vector< std::shared_ptr< Coord const >> const coords, CoordSystem system=UNKNOWN)
 Return average of a list of coordinates. More...
 

Variable Documentation

◆ deg

int deg

Definition at line 159 of file Coord.cc.

◆ min

int min
Examples:
imageStatistics.cc.

Definition at line 160 of file Coord.cc.

◆ sec

double sec

Definition at line 161 of file Coord.cc.

◆ sign

int sign

Definition at line 162 of file Coord.cc.