tcsMOON
Section: Devices and Network Interfaces (4)
Updated: 2012-04-23 10:08
Index
Return to man pages list
NAME
tcsMOON - Calculate and store moon position and phase
SYNOPSIS
#include "tcsMOON.h"
class tcsMOON : public eccsERROR_CLASS
{
public:
tcsMOON(const dbSYMADDRESS dbPoint,
const vltDOUBLE longitude,
const vltDOUBLE latitude,
const vltDOUBLE height);
~tcsMOON();
ccsCOMPL_STAT GetMoonPosition();
ccsCOMPL_STAT GetMoonPosition(ccsTIMEVAL atTime);
protected:
private:
ccsCOMPL_STAT CalculateMoonPosition(ccsTIMEVAL atTime);
}
DESCRIPTION
This class calculates the moon position and phase and stores
the result in the database. Calculations are approximate.
PUBLIC METHODS
tcsMOON(const dbSYMADDRESS dbPoint,
const vltDOUBLE longitude,
const vltDOUBLE latitude,
const vltDOUBLE height);
The constructur receives as parameter the symbolic address of
online database support point for the object, i.e. the point where
results shall be written. It also receives the longitude and latitude,
expressed in radians, and height in meters of the telescope position.
~tcsMOON();
Deletes all the internal structures created dynamically.
ccsCOMPL_STAT GetMoonPosition();
ccsCOMPL_STAT GetMoonPosition(ccsTIMEVAL atTime);
Calls the private CalculateMoonPosition method.
If no parameter is supplied the current time is used.
PRIVATE METHODS
ccsCOMPL_STAT CalculateMoonPosition(ccsTIMEVAL atTime);
Calculates the moon position and phase using the following algorithm:
The time supplied as parameter, atTime, is used as input to slaMoon.
The result from slaMoon is three position vectors describing
moon centre relative to earth centre, mean equator and equinox of date.
Local sidereal time and local site velocity is obtained.
slaLib converts this to right accension and declination.
Final hour angle and altitude, azimuth are calculated.
In addition the moon phase is calculated using the algorith on page 319
in Astronomical Algorithms by J Meeus, 1991.
The final results of altitude, azimuth (in degrees), RA and DEC
(in HH/DDMMSS) and moon phase (new moon, 1st quarter, full moon,
large quarter) are stored in the database.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- PUBLIC METHODS
-
- PRIVATE METHODS
-
This document was created by
man2html,
using the manual pages.
Time: 10:08:47 GMT, April 23, 2012