<p>I am using the SGP4 python package to get the coordinates of satellites at a given epoch. The algorithm computes the positions (X, Y, Z) in the True Equator Mean Equinox coordinate frame (TEME). From that, I would like to find the corresponding RA DEC coordinates at the given epoch. I thought this was just a change of frame from Cartesian to spherical coordinates, with RA = arctan(Y/X) and DEC = arcsin(Z/R). However, it does not seem to be the case at all. Looking at Stellarium, which give both TEME and RA/DEC coordinates for satellites, I have no idea how to get from one to the other. Is it complicated?</p>

CC BY-SA 4.0
2022-12-09T18:02:26.740Z
There will be a few rotations, and long algorithms to compute the angles.  Routines to do it are at the link below, and have been ported to more languages than listed there.  For Python, the "skfield" library is often used for this.  https://celestrak.org/software/vallado-sw.php
Greg Miller
CC BY-SA 4.0
2022-12-09T20:24:06.310Z
Thank you for your answer, the skfield library looks like exactly what I needed! I will look into it. I just struggle to understand the difference between the TEME frame and the RA/DEC frame of the current epoch, it seems like exactly the same equatorial coordinate system to me.
laetitia
CC BY-SA 4.0
2022-12-09T23:38:57.837Z
There are many different RA/Dec systems.  Usually for satellites, you want *apparent topocentric* coodinates, the coordinates that you get from SGP4 are *geometric geocentric* coordinates.
Greg Miller
CC BY-SA 4.0
2022-12-10T19:09:36.347Z
This is why then! I did not realize Stellarium implicitly shifted the center of the frame for the RA/Dec, but this makes sense of course. I usually work with stars, for which this problem does not occur.
laetitia
<coordinate><satellite>
From TEME to RA DEC
laetitia
# From TEME to RA DEC

(Asked by: username_0 on 2022-12-09)

I am using the SGP4 python package to get the coordinates of satellites at a given epoch. The algorithm computes the positions (X, Y, Z) in the True Equator Mean Equinox coordinate frame (TEME). From that, I would like to find the corresponding RA DEC coordinates at the given epoch. I thought this was just a change of frame from Cartesian to spherical coordinates, with RA = arctan(Y/X) and DEC = arcsin(Z/R). However, it does not seem to be the case at all. Looking at Stellarium, which give both TEME and RA/DEC coordinates for satellites, I have no idea how to get from one to the other. Is it complicated?

**Tags:** coordinate, satellite

> **Comments:**
> **username_1**: There will be a few rotations, and long algorithms to compute the angles.  Routines to do it are at the link below, and have been ported to more languages than listed there.  For Python, the "skfield" library is often used for this.  https://celestrak.org/software/vallado-sw.php  
> **username_0**: Thank you for your answer, the skfield library looks like exactly what I needed! I will look into it. I just struggle to understand the difference between the TEME frame and the RA/DEC frame of the current epoch, it seems like exactly the same equatorial coordinate system to me.  
> **username_1**: There are many different RA/Dec systems.  Usually for satellites, you want *apparent topocentric* coodinates, the coordinates that you get from SGP4 are *geometric geocentric* coordinates.  
> **username_0**: This is why then! I did not realize Stellarium implicitly shifted the center of the frame for the RA/Dec, but this makes sense of course. I usually work with stars, for which this problem does not occur.  

---

## 0 answers

