Right ascension/declination to azimuth/elevation
Calculates azimuth and elevation angle in the local horizon system for a sky position given in equatorial coordinates (RA Dec J2000).
Function Call: [Az El] = RADec2AzEl(350,58, '2008/02/18 13:10:00',60,15,0)
Input:
RA - Right ascension (J2000) of sky position in degrees (0:360)
Dec - Declination angle (J2000) of sky position in degrees (-90:90)
UTC - Date and Time in UTC of format YYYY/MM/DD hh:mm:ss
Lat - Latitude of location in degrees -90:90 -> S(-) N(+)
Lon - Longitude of location in degrees -180:180 W(-) E(+)
Alt - Altitude of location in km
Output:
Az - Azimuth angle in degrees
El - Elevation/Altitude Angle in degrees
Cite As
Frank Breitling (2025). Right ascension/declination to azimuth/elevation (https://www.mathworks.com/matlabcentral/fileexchange/25617-right-ascension-declination-to-azimuth-elevation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Aerospace and Defense > Aerospace Toolbox > Standard Workflow Procedures > Physical and Time Unit Conversions >
Tags
Acknowledgements
Inspired by: Vectorized Solar Azimuth and Elevation Estimation
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.