Sun position
Sun position algorithm
astron.h File Reference

astron.h - assorted definitions useful for astronomy More...

Go to the source code of this file.

Macros

#define MJD_B1900   15019.81352
 MJD of Besselian std epoch B1900.0.
 
#define MJD_B1950   33281.92346
 MJD of Besselian std epoch B1950.0.
 
#define MJD_J2000   51544.5
 MJD of Fundamental Epoch J2000.0.
 
#define TROP_CENT   36524.2198781
 Length of Tropical Century in days.
 
#define JUL_CENT   36525.0
 Length of Julian Century in days.
 
#define ARCSEC2RAD   (PI / 648000.0)
 arcseconds to radians
 
#define RAD2ARCSEC   (648000.0 / PI)
 radians to arcseconds
 
#define SEC2RAD   (PI / 43200.0)
 seconds(time) to radians
 
#define RAD2SEC   (43200.0 / PI)
 radians to seconds(time)
 
#define HRS2RAD   (PI / 12.0)
 hours to radians
 
#define RAD2HRS   (12.0 / PI)
 radians to hours
 

Functions

static double arcsecToRad (double angle_as)
 Returns angle_as converted from arcseconds to radians.
 
static double radToArcsec (double angle_rad)
 Returns angle_rad converted from radians to arcseconds.
 
static double secToRad (double angle_s)
 Returns angle_s converted from seconds to radians.
 
static double radToSec (double angle_rad)
 Returns angle_rad converted from radians to seconds.
 
static double hrsToRad (double angle_h)
 Returns angle_h converted from hours to radians.
 
static double radToHrs (double angle_rad)
 Returns angle_rad converted from radians to hours.
 

Detailed Description

astron.h - assorted definitions useful for astronomy

Author
David Hoadley

Some astronomical constants, and angle conversions that are used in astronomical software.


Definition in file astron.h.