Functions
annual_ab.c File Reference

Correct for annual aberration. More...

#include <stdlib.h>
#include <math.h>
#include "aephem.h"

Functions

void ae_annual_aberration (double v_earth[], double p[], int direction)
 Correct for the annual aberration. More...
 

Detailed Description

Correct for annual aberration.

Function Documentation

void ae_annual_aberration ( double  v_earth[],
double  p[],
int  direction 
)

Correct for the annual aberration.

See AA pages B17, B37, C24.

Parameters
v_earthThe heliocentric rectangular velocity of Earth in AU per day.
pA unit vector pointing from the earth to the object; the corrected position is returned in this parameter.
directionTo add aberration to p, pass AE_ADD_ABERRATION; to remove it, pass AE_REMOVE_ABERRATION; if neither is passed, then AE_REMOVE_ABERRATION is assumed. AE_ADD_ABERRATION is appropriate, for example, if one wishes to compute the apparent position of a star from a catalogue position, while AE_REMOVE_ABERRATION is appropriate, for example, if one wants to compute the true position of an observed star.

References AE_ADD_ABERRATION, AE_CLIGHT_AUD, and ae_stokes_t::i.

Referenced by ae_geocentric(), and ae_geocentric_from_cat().