Convert Right Ascension and Declination to Azimuth and Elevation
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
Platform Compatibility
Windows macOS LinuxCategories
- Mathematics and Optimization > Mapping Toolbox > Coordinate Reference Systems >
- Radar > Mapping Toolbox > Coordinate Reference Systems >
Tags
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.