From 9d7d68fdc90975f0448a11353cb5d5c1e07b56e8 Mon Sep 17 00:00:00 2001 From: Jonathan Maes Date: Tue, 21 Mar 2023 20:42:30 +0100 Subject: [PATCH] Implement SGDP4_NEAR_SIMP propagation This allows propagating satellite orbits below 200km. --- pyorbital/orbital.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pyorbital/orbital.py b/pyorbital/orbital.py index 9b9d0f73..e6b308a1 100644 --- a/pyorbital/orbital.py +++ b/pyorbital/orbital.py @@ -794,8 +794,12 @@ def propagate(self, utc_time): if self.mode == SGDP4_ZERO_ECC: raise NotImplementedError('Mode SGDP4_ZERO_ECC not implemented') elif self.mode == SGDP4_NEAR_SIMP: - raise NotImplementedError('Mode "Near-space, simplified equations"' - ' not implemented') + tempa = 1.0 - ts * self.c1 + tempe = self.bstar * ts * self.c4 + templ = ts * ts * self.t2cof + a = self.aodp * tempa * tempa + e = em - tempe + xl = xmp + omega + xnode + self.xnodp * templ elif self.mode == SGDP4_NEAR_NORM: delm = self.xmcof * \ ((1.0 + self.eta * np.cos(xmp))**3 - self.delmo)