European
Southern
Observatory

ESO — Reaching New Heights in Astronomy

Countries taking part in the ESO

VLT Software Documentation

tcsMOON Class Reference

See man page tcsMOON(4)
More...

#include <tcsMOON.h>

List of all members.

Public Member Functions

 tcsMOON (const dbSYMADDRESS dbPoint="", const vltDOUBLE longitude=0.0, const vltDOUBLE latitude=0.0, const vltDOUBLE height=0.0)
 ~tcsMOON ()
ccsCOMPL_STAT GetMoonPosition ()
ccsCOMPL_STAT GetMoonPosition (ccsTIMEVAL atTime)

Private Member Functions

ccsCOMPL_STAT CalculateMoonPosition (ccsTIMEVAL atTime)

Private Attributes

vltDOUBLE Longitude
vltDOUBLE Latitude
vltDOUBLE Height
eccsDB_FLOAT * altitudeDB
eccsDB_FLOAT * azimuthDB
eccsDB_INT32 * phaseDB
eccsDB_DOUBLE * raDB
eccsDB_DOUBLE * decDB
FLOAT altitude = 0.0
FLOAT azimuth = 0.0
INT32 phase = 0
double RA
double dec

Detailed Description

See man page tcsMOON(4)
Manpage of tcsMOON

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

Definition at line 25 of file tcsMOON.h.


Constructor & Destructor Documentation

tcsMOON::tcsMOON ( const dbSYMADDRESS  dbPoint = "",
const vltDOUBLE  longitude = 0.0,
const vltDOUBLE  latitude = 0.0,
const vltDOUBLE  height = 0.0 
)

Definition at line 128 of file tcsMOON.C.

References altitudeDB, azimuthDB, decDB, Height, Latitude, Longitude, phaseDB, and raDB.

tcsMOON::~tcsMOON (  ) 

Definition at line 156 of file tcsMOON.C.

References altitudeDB, azimuthDB, decDB, phaseDB, and raDB.


Member Function Documentation

ccsCOMPL_STAT tcsMOON::CalculateMoonPosition ( ccsTIMEVAL  atTime  )  [private]
ccsCOMPL_STAT tcsMOON::GetMoonPosition ( ccsTIMEVAL  atTime  ) 

Definition at line 188 of file tcsMOON.C.

References CalculateMoonPosition().

ccsCOMPL_STAT tcsMOON::GetMoonPosition (  ) 

Definition at line 169 of file tcsMOON.C.

References CalculateMoonPosition(), tcsERR_GET_UTC, and tcsMOD.


Member Data Documentation

FLOAT tcsMOON::altitude = 0.0 [private]

Definition at line 40 of file tcsMOON.class.

eccsDB_FLOAT* tcsMOON::altitudeDB [private]

Definition at line 47 of file tcsMOON.h.

Referenced by CalculateMoonPosition(), tcsMOON(), and ~tcsMOON().

FLOAT tcsMOON::azimuth = 0.0 [private]

Definition at line 41 of file tcsMOON.class.

eccsDB_FLOAT* tcsMOON::azimuthDB [private]

Definition at line 48 of file tcsMOON.h.

Referenced by CalculateMoonPosition(), tcsMOON(), and ~tcsMOON().

double tcsMOON::dec [private]

Definition at line 49 of file tcsMOON.class.

eccsDB_DOUBLE* tcsMOON::decDB [private]

Definition at line 51 of file tcsMOON.h.

Referenced by CalculateMoonPosition(), tcsMOON(), and ~tcsMOON().

vltDOUBLE tcsMOON::Height [private]

Definition at line 44 of file tcsMOON.h.

Referenced by CalculateMoonPosition(), and tcsMOON().

vltDOUBLE tcsMOON::Latitude [private]

Definition at line 43 of file tcsMOON.h.

Referenced by CalculateMoonPosition(), and tcsMOON().

vltDOUBLE tcsMOON::Longitude [private]

Definition at line 42 of file tcsMOON.h.

Referenced by CalculateMoonPosition(), and tcsMOON().

INT32 tcsMOON::phase = 0 [private]

Definition at line 42 of file tcsMOON.class.

eccsDB_INT32* tcsMOON::phaseDB [private]

Definition at line 49 of file tcsMOON.h.

Referenced by CalculateMoonPosition(), tcsMOON(), and ~tcsMOON().

double tcsMOON::RA [private]

Definition at line 48 of file tcsMOON.class.

eccsDB_DOUBLE* tcsMOON::raDB [private]

Definition at line 50 of file tcsMOON.h.

Referenced by CalculateMoonPosition(), tcsMOON(), and ~tcsMOON().


The documentation for this class was generated from the following files:
Generated on Mon Apr 23 10:12:44 2012 for INTROOT API by doxygen 1.6.3