1
$\begingroup$

I have a TLE:

1 33591U 09005A 21024.46740879 .00000049 00000-0 52095-4 0 9997
2 33591 99.1927 41.5349 0014084 172.6670 187.4709 14.12449679616592

And I would like to extract the semi-major axis using Skyfield. I also tried manually calculating it, looking at this answer: How to get semi-major axis from TLE?, but seems like I am missing something in my calculations (calculations below).

$$\mu = 398600 \ \ km^3/s^2$$

$$mm = 14.12449679 \ \ day^{-1}$$

$$n = mm \frac{2 \pi}{86400 \ \ sec}$$

$$a = \frac{\mu^{1/3}}{(2 \pi n / 86400)^{2/3}}$$

and in Python (for example):

import math
mu = 398600;
mm = 14.12449679;
n = mm * ((2 * math.pi) / 86400);
a = mu**(1/3) /(2*n*pi/86400)**(2/3);

which yields:

a = 4.1493e+06
$\endgroup$
5
  • $\begingroup$ I've added MathJax formatted equations to complement your metacode, and then since it was so close to Python (a very popular programming language) I converted x^y to x**y and called it Python. I also added units to your numbers, and that might suggest to you how to answer your own question. It's always okay to post a good answer to your own question if you have an "Aha!" moment. :-) $\endgroup$
    – uhoh
    Jan 31 at 23:40
  • $\begingroup$ I haven't checked your working but it makes sense to use the same value of mu as that used in the linked answer, i,e, in m^3/s^-2 $\endgroup$
    – Puffin
    Jan 31 at 23:42
  • 1
    $\begingroup$ @uhoh Ha! Actually, I forgot to mention, but that wasn't Python but GNU Octave. Doesn't matter tho, thanks for the edit! :) $\endgroup$ Jan 31 at 23:49
  • $\begingroup$ @lawndownunder have you tried harmonizing your units? Best way (in my opinion) is to use MKS or meters, kilograms and seconds. I think you can answer this yourself if you do that. $\endgroup$
    – uhoh
    Feb 2 at 7:18
  • $\begingroup$ I think you can answer your own question and post it if you just repeat the calculation using consistent units. It's always okay to post an answer to your own question once you've solved your problem. $\endgroup$
    – uhoh
    Feb 7 at 2:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.