| ||||||||
| Home Page | The Sun API | Gallery | InfoSearch | News | Links | Contact Us | ||||||||
|
Sunlit Design > The Sun API > Documentation > sdEqu2Azi Function | ||||||||
|
- Introduction + Using the Functions + User Guide + Function Reference + Constants
|
sdEqu2Azi FunctionPurposeConverts from Solar Equatorial Coordinates to Horizontal Coordinates. DescriptionReturns Solar Azimuth (Compass Direction) in degrees. SyntaxsdEqu2Alt(h, latitude, decl)
Return ValuessdEqu2Azi returns a double precision number from 0 to 360. 0 means North, 90 East, 180 South and 270 means West.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: When the sun is directly in the centre of the sky, Azimuth is undefined. When the sun is directly overhead: for latitudes in the Northern hemisphere this program returns 180 (i.e. South) and in the Southern hemisphere it returns 0 (i.e. North). sdEqu2Azi is complimented by the sdEqu2Alt 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 Azimuth 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 Sat, 31 Jul 2010 05:39:32 AM +600 gives UT | ||||||||