SunAzEl:

Path: AerospaceUtils/Coord

% Approx. azimuth and elevation of the sun for a time and place on earth.

 Type SunAzEl for a demo.

 Since version 10.
--------------------------------------------------------------------------
   Form:
   [az,el,dec] = SunAzEl( day, hour, lat, lon );
   or
   [az,el,dec] = SunAzEl( jD, lat, lon);
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   day         (1,n)   The day of the year, 0 <= day <= 365
   hour        (1,n)   The hour of the day, 0 at midnight, 12 at noon
   lat         (1,n)   The geographic latitude
   lon         (1,n)   The geographic longitude

   or

   jD          (1,n)   The julian date
   lat         (1,n)   The geographic latitude
   lon         (1,n)   The geographic longitude

   -------
   Outputs
   -------
   az          (1,n)   Azimuth angle of the sun (rad)
   el          (1,n)   Elevation angle of the sun (rad)
   dec         (1,n)   The declination of the sun (rad)

--------------------------------------------------------------------------

Children:

Common: Graphics/Plot2D
Common: Time/Date2JD
Common: Time/JD2DN
Common: Time/JD2Date

Back to the AerospaceUtils Module page