Skip to content

Commit a138792

Browse files
authored
Merge pull request #124 from JonathanMaes/main
Implement SGDP4_NEAR_SIMP propagation
2 parents 1e651fb + 9d7d68f commit a138792

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pyorbital/orbital.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -807,8 +807,12 @@ def propagate(self, utc_time):
807807
if self.mode == SGDP4_ZERO_ECC:
808808
raise NotImplementedError("Mode SGDP4_ZERO_ECC not implemented")
809809
elif self.mode == SGDP4_NEAR_SIMP:
810-
raise NotImplementedError('Mode "Near-space, simplified equations"'
811-
' not implemented')
810+
tempa = 1.0 - ts * self.c1
811+
tempe = self.bstar * ts * self.c4
812+
templ = ts * ts * self.t2cof
813+
a = self.aodp * tempa * tempa
814+
e = em - tempe
815+
xl = xmp + omega + xnode + self.xnodp * templ
812816
elif self.mode == SGDP4_NEAR_NORM:
813817
delm = self.xmcof * \
814818
((1.0 + self.eta * np.cos(xmp))**3 - self.delmo)

0 commit comments

Comments
 (0)