Skip to content

Commit

Permalink
Update src/rtc/h5_prep.py
Browse files Browse the repository at this point in the history
Co-authored-by: Gustavo H. X. Shiroma <[email protected]>
  • Loading branch information
seongsujeong and gshiroma authored Sep 6, 2023
1 parent 4357ebc commit f5173c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/rtc/h5_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,14 +302,13 @@ def save_orbit(orbit, orbit_group, orbit_file_path):
data=np.string_(orbit.reference_epoch.isoformat()))

# Orbit source/type
orbit_type = 'Undefined'
if isinstance(orbit_file_path, str):
orbit_file_basename = os.path.basename(orbit_file_path)
if 'RESORB' in orbit_file_basename:
orbit_type = 'RES restituted orbit'
elif 'POEORB' in orbit_file_basename:
orbit_type = 'POE precise orbit'
else:
orbit_type = 'Undefined'

elif isinstance(orbit_file_path, list):
orbit_type_list = []
Expand Down

0 comments on commit f5173c9

Please sign in to comment.