Proposed planet class.
More...
#include <carma/services/Planet.h>
Proposed planet class.
Note brightnessTemperature() and axis methods will differ from planet to planet. So we would need a way to handle this. Axis aspect ratios are easy since those are constant (if we ignore Saturn's rings). Temperature models are trickier. Could be static arrays or stored in external Tables. Note MIRIAD and BIMA have differing temperature models. These need to be reconciled, pick the best of each.
Definition at line 45 of file Planet.h.
carma::services::Planet::Planet |
( |
const std::string & |
planetName | ) |
|
|
explicit |
Construct a Planet given the name.
- Parameters
-
planetName | case insensitive solar system body name. |
- Exceptions
-
virtual carma::services::Planet::~Planet |
( |
| ) |
|
|
virtual |
const Distance carma::services::Planet::avgSunDistance |
( |
| ) |
const |
- Returns
- the average distance to the planet from the Sun
const Angle carma::services::Planet::axisAngle |
( |
| ) |
const |
- Returns
- The angle of the planetary polar axis with respect to equatorial coordinate system. This is calculated for the apparent RA, DEC of date of the planetary north pole.
- See Also
- Report of the IAU/IAG Working Group on Cartographic Coordinates and Rotational Elements of the Planets and Satellites:2000, P. K. Seidelmann et al., 2002, Celestial Mechanics & Dynamical Astronomy, 82, 83.
- Exceptions
-
- Returns
- The brightness temperature at the given frequency. If a table exists in conf/data of brightness temperature as a function of time and frequency, it will be interpolated at the input frequency and MJD set via setMJD. Otherwise a time-invariant value that is only a power-law function of frequency will be returned.
- Parameters
-
frequency | The frequency at which to calculate the brightness temperature. |
const Distance carma::services::Planet::earthDistance |
( |
| ) |
const |
- Returns
- The distance to the planet from the Earth (geocentric) , at the set MJD
- Exceptions
-
- See Also
- setMJD(double)
- Returns
- The flux density at the given frequency.
- Parameters
-
frequency | The frequency at which to calculate the flux density |
const Angle carma::services::Planet::majorAxis |
( |
| ) |
const |
- Returns
- The current distance to the planet from the Sun. Distance sunDistance() const;
-
The apparent planetary major axis size, at the set MJD
- Exceptions
-
- See Also
- setMJD(double)
const Angle carma::services::Planet::minorAxis |
( |
| ) |
const |
- Returns
- The apparent planetary minor axis size, at the set MJD.
- Exceptions
-
- See Also
- setMJD(double)
void carma::services::Planet::setLocation |
( |
const Location & |
location | ) |
|
Set the location to use in calculations.
The Planet constructor defaults this to CARMA's reference position.
Set the Modified Julian Date to use in calculations.
If this method has not been called, all other calculation methods will throw an EphemerisException because the ephemeris mjd has not been set.
- Parameters
-
mjd | The MJD, defaults to current time. |
const Angle carma::services::Planet::tiltAngle |
( |
| ) |
const |
- Returns
- the angle of the planetary polar axis with respect to the sky plane.
- Exceptions
-
- Returns
- The flux density at the given frequency and visibility point.
- Parameters
-
frequency | The frequency at which to calculate the flux density |
u | The u length of the visibility, e.g. the u-distance between two antennas |
v | The v length of the visibility, e.g. the v-distance between two antennas |
std::vector<FluxDensity*> carma::services::Planet::uvFluxes |
( |
const Frequency & |
frequency, |
|
|
const std::vector< Length * > & |
u, |
|
|
const std::vector< Length * > & |
v |
|
) |
| |
- Returns
- A vector of flux density at the associated frequency and visibility point.
- Parameters
-
frequency | The frequency at which to calculate the flux densities |
u | The u length of the visibility, e.g. the u-distance between two antennas |
v | The v length of the visibility, e.g. the v-distance between two antennas |
- Returns
- the velocity with respect to location
- Exceptions
-
The documentation for this class was generated from the following file: