libnova v 0.15.0
Earth

Functions

void ln_get_earth_helio_coords (double JD, struct ln_helio_posn *position)
 Calculate Earth's heliocentric coordinates.
double ln_get_earth_solar_dist (double JD)
 Calculate the distance between Earth and the Sun.
void ln_get_earth_rect_helio (double JD, struct ln_rect_posn *position)
 Calculate the Earths rectangular heliocentric coordinates.
void ln_get_earth_centre_dist (float height, double latitude, double *p_sin_o, double *p_cos_o)
 Calculate Earth globe centre distance.

Detailed Description

Functions relating to the planet Earth.

All angles are expressed in degrees.

Function Documentation

◆ ln_get_earth_centre_dist()

void ln_get_earth_centre_dist ( float height,
double latitude,
double * p_sin_o,
double * p_cos_o )

Calculate Earth globe centre distance.

Parameters
heightHeight above sea level in metres.
latitudelatitude in degrees.
p_sin_oPointer to hold p_sin_o
p_cos_oPointer to hold p_cos_o

Calculate the quantities "p sin o" and "p cos o" needed in calculations for diurnal parallaxes, eclipses and occultations given the observers height in metres above sea level and there latitude in degrees.

References ln_deg_to_rad(), and ln_get_earth_centre_dist().

Referenced by ln_get_earth_centre_dist().

◆ ln_get_earth_helio_coords()

void ln_get_earth_helio_coords ( double JD,
struct ln_helio_posn * position )

◆ ln_get_earth_rect_helio()

void ln_get_earth_rect_helio ( double JD,
struct ln_rect_posn * position )

Calculate the Earths rectangular heliocentric coordinates.

Parameters
JDJulian day.
positionpointer to return position

Calculate the Earths rectangular heliocentric coordinates for the given Julian day. Coordinates are in AU.

References ln_get_earth_helio_coords(), ln_get_earth_rect_helio(), and ln_get_rect_from_helio().

Referenced by ln_get_earth_rect_helio().

◆ ln_get_earth_solar_dist()