diff --git a/orbital/elements.py b/orbital/elements.py index 35d1e30..afd4bf1 100644 --- a/orbital/elements.py +++ b/orbital/elements.py @@ -152,11 +152,11 @@ def from_state_vector(cls, r, v, body, ref_epoch=J2000): return self @classmethod - def from_tle(cls, line1, line2, body): + def from_tle(cls, line1, line2, body, gravity_model=wgs72): """Create object by parsing TLE using SGP4.""" # Get state vector at TLE epoch - sat = sgp4.io.twoline2rv(line1, line2, wgs72) + sat = sgp4.io.twoline2rv(line1, line2, gravity_model) r, v = sgp4.propagation.sgp4(sat, 0) ref_epoch = time.Time(sat.epoch, scale='utc')