Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Angeline Burrell <[email protected]>
  • Loading branch information
jklenzing and aburrell authored Nov 20, 2024
1 parent 3f167d3 commit 18ee7bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pysatMissions/instruments/missions_skyfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ def load(fnames, tag=None, inst_id=None, tle1=None, tle2=None,
eccentricity, np.radians(arg_periapsis),
np.radians(inclination), np.radians(mean_anomaly),
mean_motion, np.radians(raan))

# Set header level metadata
header = {'alt_periapsis': alt_periapsis, 'alt_apoapsis': alt_apoapsis,
'arg_periapsis': arg_periapsis, 'bstar': bstar,
Expand All @@ -212,6 +213,7 @@ def load(fnames, tag=None, inst_id=None, tle1=None, tle2=None,
# Otherwise, use TLEs
satrec = sapi.Satrec.twoline2rv(line1, line2, sapi.WGS84)
mean_motion = satrec.mm

# Set header level metadata
header = {'tle1': line1, 'tle2': line2}

Expand Down

0 comments on commit 18ee7bc

Please sign in to comment.