CARMA C++
carma::services::constants::Astro Class Reference

Astronomical Constants used across CARMA. More...

#include <carma/services/Astro.h>

Classes

struct  planetType
 A struct to hold simple planetary data. More...
 

Public Member Functions

 ~Astro ()
 Destructor. More...
 

Static Public Member Functions

static planetType getPlanet (const std::string &planetName)
 
static bool isPlanet (const std::string &planetName)
 

Static Public Attributes

static const double AU = 1.49597870691E11
 Astronomical Unit Units: m. More...
 
static const planetType EARTH
 Basic data for Earth. More...
 
static const planetType JUPITER
 Basic data for Jupiter. More...
 
static const planetType MARS
 Basic data for Mars. More...
 
static const planetType MERCURY
 Basic data for Mercury. More...
 
static const planetType MOON
 Basic data for Moon. More...
 
static const planetType NEPTUNE
 Basic data for Neptune. More...
 
static const planetType PLUTO
 Basic data for Pluto. More...
 
static const planetType SATURN
 Basic data for Saturn. More...
 
static const planetType SUN
 Basic data for Sun. More...
 
static const planetType URANUS
 Basic data for Uranus. More...
 
static const planetType VENUS
 Basic data for Venus. More...
 

Detailed Description

Astronomical Constants used across CARMA.

Units follow CARMA Standard Units where applicable, SI otherwise.

Planetary data come from http://nineplanets.org and Hat Creek code. They are not meant to supplant ephemeris values, but are simply for quick calculations that do not need high accuracy.

See Also
http://www.mmarray.org/workinggroups/computing/CarmaStdUnits.html
http://nineplanets.org

Definition at line 32 of file Astro.h.

Constructor & Destructor Documentation

carma::services::constants::Astro::~Astro ( )

Destructor.

Member Function Documentation

static planetType carma::services::constants::Astro::getPlanet ( const std::string &  planetName)
static
Returns
planetType struct given planet name
Parameters
planetNamePlanet name, case insensitive.
static bool carma::services::constants::Astro::isPlanet ( const std::string &  planetName)
static
Returns
true if input planet name is a recognized planet,. false otherwise
Parameters
planetNamePlanet name, case insensitive.

Member Data Documentation

const double carma::services::constants::Astro::AU = 1.49597870691E11
static

Astronomical Unit Units: m.

Definition at line 39 of file Astro.h.

const planetType carma::services::constants::Astro::EARTH
static

Basic data for Earth.

Definition at line 160 of file Astro.h.

const planetType carma::services::constants::Astro::JUPITER
static

Basic data for Jupiter.

Definition at line 169 of file Astro.h.

const planetType carma::services::constants::Astro::MARS
static

Basic data for Mars.

Definition at line 166 of file Astro.h.

const planetType carma::services::constants::Astro::MERCURY
static

Basic data for Mercury.

Definition at line 154 of file Astro.h.

const planetType carma::services::constants::Astro::MOON
static

Basic data for Moon.

Definition at line 163 of file Astro.h.

const planetType carma::services::constants::Astro::NEPTUNE
static

Basic data for Neptune.

Definition at line 178 of file Astro.h.

const planetType carma::services::constants::Astro::PLUTO
static

Basic data for Pluto.

Definition at line 181 of file Astro.h.

const planetType carma::services::constants::Astro::SATURN
static

Basic data for Saturn.

Definition at line 172 of file Astro.h.

const planetType carma::services::constants::Astro::SUN
static

Basic data for Sun.

Definition at line 151 of file Astro.h.

const planetType carma::services::constants::Astro::URANUS
static

Basic data for Uranus.

Definition at line 175 of file Astro.h.

const planetType carma::services::constants::Astro::VENUS
static

Basic data for Venus.

Definition at line 157 of file Astro.h.


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