Sun Azimuth Data

A script for generation of an ASCII File (Report) containing Sun Azimuth Data.
3.3K Downloads
Updated 9 Jul 2004

View License

Using this script, you can generate a set of data regarding Sun Azimuth Positions at various instants of time for any location on Earth. This data can be used in many applications, like, in determination of orientation of any plane's azimuth from True North.

The syntax is 'sun_azimuth_data' (no arguments). It prompts for Observer's geodetic coordinates, observer's time zone and starting time [according to local standard time]. Then, it asks the Time Period and intervals for which Sun Azimuth data has to be generated. It creates a MS Word file containing Sun Azimuth data.

Author offers his acknowledgements for the script 'sun_position.m' by Vincent Roy, which returns the Sun Position data for a given observer location and time.

History
25/05/2004 - Original Creation by Khalil Sultan (khalilsultan@msn.com)
15/06/2004 - Code Modified.
08/07/2004 - Code Re-modified and Uploaded on MATLAB Central - File Exchange.

Sample Interaction with the Script :
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

WARNING:
Skipping any field, with a hyphen before it, will result in termination of execution of this script. Fields with some value, in square brackets after them, represent their default values.

- Enter the Location of the Observer: Karachi
Enter the Country of the Observer: Pakistan
Enter the GPS Receiver Set Title:

- Enter the Longitude (in dd.dddddd° Format) : E 68.35
- Enter the Latitude (in dd.dddddd° Format) : N 19.15
Enter the Altitude (in meters) [0] :
- Enter the Time Zone (+GMT Zone) : +5

- Should the data be generated for today [y/n] : y
- Enter the Starting Time (in HH:MM:SS [24 Hours] format) : 16:00:00
Enter the Duration of Interval (in minutes) [5] :
Enter the Total Time Span (in hours) [2 Hours] :

Cite As

Khalil Sultan (2024). Sun Azimuth Data (https://www.mathworks.com/matlabcentral/fileexchange/5430-sun-azimuth-data), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Earth, Ocean, and Atmospheric Sciences in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0