Skip to content

Commit

Permalink
fix orbit path handling (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangJYu authored Mar 21, 2023
1 parent 5cad8dc commit b56ec0a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/compass/s1_cslc_qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,14 @@ def populate_rfi_dict(self):
def set_orbit_type(self, cfg):
'''
Populate QA orbit information
i Parameters
----------
cfg: dict
Runconfig dict containing orbit path
'''
orbit_file_path = cfg.orbit_path[0]
if 'RESORB' in Path(orbit_file_path).name:
orbit_file_path = Path(cfg.orbit_path[0]).name
if 'RESORB' in orbit_file_path:
orbit_type = 'restituted orbit file'
if 'POEORB' in orbit_file_path:
orbit_type = 'precise orbit file'
Expand Down

0 comments on commit b56ec0a

Please sign in to comment.