Sun position
Sun position algorithm
|
This structure contains relatively constant data, and is set up by one of the three functions sky_ini...
void sun_nrelApp2(double t_cy, const Sky0_Nut1980 *nut, V3D_Vector *appV, double *dist_au)
This function calculates the Sun position in apparent coordinates, using the NREL SPA algorithm (see ...
Struct used for holding an object's coordinates in equatorial apparent or Intermediate coordinates.
void sun_nrelTopocentric(double j2kUtc_d, const Sky_DeltaTs *deltas, const Sky_SiteProp *site, Sky_SiteHorizon *topo)
Calls sun_nrelApparent() to calculate the Sun's position in apparent coordinates using the NREL Sun P...
void sun_aaApparentApprox(double n, V3D_Vector *appV, double *dist_au)
This function calculates an approximate Sun position in apparent coordinates using the algorithm give...
double sun_riseSet(int year, int month, int day, bool getSunrise, const Sky_DeltaTs *deltas, const Sky_SiteProp *site, Sky_SiteHorizon *topo)
Routine to calculate the time of sunrise or sunset for the day specified by year, month and day.
Nutation angles and obliquity.
sky.h - structures and routines for astronomical observing & tracking
vectors3d.h - Three dimensional geometry, vectors and matrices
void sun_nrelApparent(double j2kTT_cy, Sky_TrueEquatorial *pos)
Calculate the Sun's position as a unit vector and a distance, in apparent coordinates.
double sun_solarNoon(int year, int month, int day, const Sky_DeltaTs *deltas, const Sky_SiteProp *site, Sky_SiteHorizon *topo)
Routine to calculate the time of solar noon (Sun transit) for the day specified by year,...
sky0.h - astronomical coordinate conversion for NREL Sun Position Algorithm
Coordinates of a celestial object in the horizon frame, in both rectangular and polar forms.