| ||||||||
| Home Page | The Sun API | Gallery | InfoSearch | News | Links | Contact Us | ||||||||
|
Sunlit Design > The Sun API > Documentation > sdEqu2Alt Function | ||||||||
|
- Introduction + Using the Functions + User Guide + Function Reference + Constants
|
sdEqu2Alt FunctionPurposeConverts from Solar Equatorial Coordinates to Horizontal Coordinates. DescriptionReturns Solar Altitude (above horizon) in degrees. SyntaxsdEqu2Alt(h, latitude, decl)
Return ValuessdEqu2Alt returns a double precision number in the range -90 to 90. A positive value indicates that the sun is above the horizon. ErrorsIf the function detects an error in any of it's input parameters then it returns: -99999999 RemarksThis function calculates it's return value from the following
coordinate transformation formula: sdEqu2Alt is complimented by the sdEqu2Azi function which calculates Solar Azimuth. You can convert a degree value to it's Degrees:Minute:Seconds components using the sdDUnpackx function and to a printable text format using sdD2Text function. ExampleWhat is the Solar Altitude in
Sydney Australia when the Solar Hour is 11am and when the sun is at declination 23 degrees (sometime in June): |
|
||||||
| (c) 2001-2010 Sunlit Design www.sunlit-design.com Wed, 10 Mar 2010 07:47:32 PM +700 gives UT | ||||||||