Convert Right Ascension and Declination to Azimuth and Elevation

Algorithm will convert topocentric RA/DEC Angles to Azimuth and Elevation
1.5K Downloads
Updated 28 Jan 2010

View License

Function Description:
RaDec2AzEl will take the Right Ascension and Declination in the topocentric reference frame, site latitude and longitude as well as a time in GMT and output the Azimuth and Elevation in the local horizon reference frame.

List of Inputs:
Topocentric Right Ascension (Degrees)
Topocentric Declination Angle (Degrees)
Lat (Site Latitude in degrees -90:90 -> S(-) N(+))
Lon (Site Longitude in degrees -180:180 W(-) E(+))
UTC (Coordinated Universal Time YYYY/MM/DD hh:mm:ss)

List of Outputs:
Local Azimuth Angle (degrees)
Local Elevation Angle (degrees)

Sample Function Call:
[Az El] = RaDec2AzEl(294.9891115,-20.8235624,39.007,-104.883,'1994/05/14 13:11:20.59856')

Cite As

Darin Koblick (2024). Convert Right Ascension and Declination to Azimuth and Elevation (https://www.mathworks.com/matlabcentral/fileexchange/26458-convert-right-ascension-and-declination-to-azimuth-and-elevation), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.1.0.0

Updated terminology

1.0.0.0