![Ezeio AAC Скачать руководство пользователя страница 112](http://html.mh-extra.com/html/ezeio/aac/aac_user-manual_2458291112.webp)
SunPosition(UTCtime[time_s], Float:latitude, Float:longitude,
&Float:elevation, &Float:azimuth)
This function returns the relative position of the sun, given time and
position.
Parameter
Description
UTCtime[time_s]
Structure with time and date. Note that this needs to be UTC time.
latitude
Latitude of observation point, in degrees from equator. Positive numbers are north.
longitude
Longitude of observation point, in degrees from Greenwich meridian. Positive
numbers are east.
&elevation
The function will set this variable with the elevation of the sun above the horizon, in
degrees. Negative numbers mean that the sun is below the equator.
&azimuth
The function will set this variable with the azimuth of the sun, in degrees. 0 is north, 90
is east, 180 is south and 270 is west.
Example usage:
new t[time_s];
new Float:elev, Float:azim;
GetTime(t, true);
// Get UTC time
SunPosition(t, 61.191,-149.802, elev, azim); // Anchorage, AK
PDebug(“Elevation:%f, Azimuth:%f”, elev, azim);
Page 112 of 121
Содержание AAC
Страница 1: ...ezeio user manual Manual version 170314 ezeio models AAC AAF Page 1 of 121 ...
Страница 72: ...Page 72 of 121 ...