SunCoordinates

delphimoon

Sun Coordinates

Algorithms

Top  Previous  Next

 

Calculates the horizontal and ecliptic coordinates of the sun.

 

procedure Sun_Position_Horizontal(date:TDateTime; refraction:boolean; latitude,longitude: extended; var elevation,azimuth: extended);

procedure Sun_Position_Ecliptic(date:TDateTime; var latitude,longitude: extended);

procedure Sun_Position_Equatorial(date:TDateTime; var rektaszension,declination: extended);

 

Description

Calculates the coordinates of the sun at the given date and time in the three most important coordinate frames.

 

Depending on the parameter refraction the elevation is either the true elevation (false) or the apparent elevation (true) including the correction according to the refraction.

 

Attention

The interface of this function did change after Verston 2.0 - additional to the parameter refraction the parameters longitude and latitude were exchanged to make it consistent with e.g. the sun rise functions.

 

Hint

The description of the coordinate transformation routines gives more detailed information on the coordinate frames like the definition of the signs and directions, or how to convert to other definitions.

 

Reference

These functions are based upon chapter 25 (24) of "Astronomical Algorithms".