Be the first to rate this file! 54 downloads (last 30 days) File Size: 2.21 KB File ID: #24581

Convert Azimuth and Elevation to Right Ascension and Declination

by Darin Koblick

 

29 Jun 2009 (Updated 28 Jan 2010)

Code covered by the BSD License  

Algorithm will convert Az/El angles to RA /DEC using a topocentric coordinate frame

Download Now | Watch this File

File Information
Description

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

 List of Inputs:
 Local Azimuth Angle (degrees)
 Local Elevation 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:
Topocentric Right Ascension (Degrees)
Topocentric Declination Angle (Degrees)

Sample Function Call:
[RA DEC] = AzEl2RaDec(210.8250667,23.8595052,39.007,-104.883,'1994/05/14 13:11:20.59856')

MATLAB release MATLAB 7.7 (R2008b)
Zip File Content  
Other Files AzEl2RaDec.m,
license.txt
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
13 Jul 2009 Olli

Hi, I would like to know what are the local coordinate frame zero points and turning directions. I'm not even sure what are the official ones...

Please login to add a comment or rating.
Updates
23 Jan 2010

- Updated quadrant check with atan2
- Vectorized for speed

28 Jan 2010

Corrected terminology

Tag Activity for this File
Tag Applied By Date/Time
raan Darin Koblick 29 Jun 2009 12:14:28
ra Darin Koblick 29 Jun 2009 12:14:28
dec Darin Koblick 29 Jun 2009 12:14:28
az Darin Koblick 29 Jun 2009 12:14:28
el Darin Koblick 29 Jun 2009 12:14:28
azimuth Darin Koblick 29 Jun 2009 12:14:28
elevation Darin Koblick 29 Jun 2009 12:14:28
sidereal Darin Koblick 29 Jun 2009 12:14:28
julian day Darin Koblick 29 Jun 2009 12:14:28
right ascension Darin Koblick 29 Jun 2009 12:14:28
right ascension of the ascending node Darin Koblick 29 Jun 2009 12:14:28
declination Darin Koblick 29 Jun 2009 12:14:28
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com