Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1063671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:49:03+00:00 2026-05-16T18:49:03+00:00

I’m having a problem locating anything on converting RAE to XYZ. If I am

  • 0

I’m having a problem locating anything on converting RAE to XYZ.

If I am on a WGS84 spheroid, at say position -742507, -5462738, 3196706 and I detect an object at a range of 30km, azimuth of 310, and elevation angle of 18 degrees how can I convert that to ECEF XYZ coordinates?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T18:49:04+00:00Added an answer on May 16, 2026 at 6:49 pm

    It appears that there is no straight forward process to do this. The best method I found is to convert from RAE coordinates to SEZ coordinates, then from SEZ coordinates to ECR coordinates. Here is some C# code I modified to C++ to achieve this:

    void main() {
        // NOTE: distances are in meters, while angles are in degrees
        double siteECR[] = { -763997.48, -5458565.87, 3196706.0 };
        double objRAE[]  = { 30000.0, 310.0, 18.0 };
        double objECR[]  = { 0.0, 0.0, 0.0 };
    
        // Should return ~[-764142.7629, -5458517.683, 3217218.18] in objECR
        RAEtoECR(siteECR, objRAE, objECR);
    }
    
    /************************************************************************************************************************/
    /*  Converts a Range, Azimuth, Elevation location to a Latitude, Longitude, Altitude location         */
    /*  siteLLA - array holding the Latitude, Longitude, and Altitude of the site location in degrees and meters      */
    /*  rae     - array holding the Range, Azimuth, and Elevation, in degrees, of the object viewed from the site location  */
    /*  objECR  - destination array to hold the ECR X, Y, Z location in meters             */
    /************************************************************************************************************************/
    void RAEtoECR(double siteECR[], double rae[], double objECR[]) {
        double tempSEZ[] = { 0.0, 0.0, 0.0 };
        double siteLLA[] = { 0.0, 0.0, 0.0 };
    
        ECRtoLLA(siteECR, siteLLA);
        RAEtoSEZ(siteLLA, objRAE, tempSEZ);
        SEZtoECR(siteLLA, tempSEZ, objECR);
    }
    
    /************************************************************************************************************************/
    /*  Converts a Range, Azimuth, Elevation location to a South, East, Zenith location          */
    /*  siteLLA - array holding the Latitude, Longitude, and Altitude of the site location in degrees and meters   */
    /*  rae     - array holding the Range, Azimuth, and Elevation, in degrees, of the object viewed from the site location  */
    /*  sez     - destination array to hold the South, East, and Zenith coordinates of the object being viewed in meters */
    /************************************************************************************************************************/
    void RAEtoSEZ(double siteLLA[], double rae[], double sez[]) {
        double range, azimuth, elevation;
        range   = rae[0];
        azimuth   = rae[1];
        elevation = rae[2];
    
        // Compute needed math
        double slat = sin(Deg2Rad(siteLLA[0]));
        double slon = sin(Deg2Rad(siteLLA[1]));
        double clat = cos(Deg2Rad(siteLLA[0]));
        double clon = cos(Deg2Rad(siteLLA[1]));
    
        // Convert to radians
        azimuth   = DEG2RAD(azimuth);
        elevation = DEG2RAD(elevation);
    
        // Convert
        sez[0] = -range * cos(elevation) * cos(azimuth);
        sez[1] =  range * cos(elevation) * sin(azimuth);
        sez[2] =  range * sin(elevation);
    }
    
    /************************************************************************************************************************/
    /*  Converts a South, East, Zenith location to an ECR X, Y, Z location              */
    /*  siteLLA - array holding the Latitude, Longitude, and Altitude of the site location in degrees and meters      */
    /*  sez     - array holding the South, East, and Zenith coordinates of the object being viewed in meters       */
    /*  ecr     - destination array to hold the ECR X, Y, Z location in meters             */
    /************************************************************************************************************************/
    void SEZtoECR(double siteLLA[], double sez[], double ecr[]) {
        // Convert siteLLA to XYZ
        double[] siteXYZ = { 0.0, 0.0, 0.0 };
        LLAtoECR(siteLLA, siteXYZ);
    
        double south, east, zenith;
        south  = sez[0];
        east   = sez[1];
        zenith = sez[2];
    
        // Compute needed math
        double slat = sin(Deg2Rad(siteLLA[0]));
        double slon = sin(Deg2Rad(siteLLA[1]));
        double clat = cos(Deg2Rad(siteLLA[0]));
        double clon = cos(Deg2Rad(siteLLA[1]));
    
        // Convert
        ecr[0] = ( slat * clon * south) + (-slon * east) + (clat * clon * zenith) + siteXYZ[0];
        ecr[1] = ( slat * slon * south) + ( clon * east) + (clat * slon * zenith) + siteXYZ[1];
        ecr[2] = (-clat *        south) + ( slat * zenith) + siteXYZ[2];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
Seemingly simple, but I cannot find anything relevant on the web. What is the
I am currently running into a problem where an element is coming back from
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.