Skip to content

Commit

Permalink
fixed granule names
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewPlayer3 committed Jan 28, 2025
1 parent 940d88e commit 86648c8
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/hyp3_autorift/s1_isce3.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,13 @@ def process_sentinel1_burst_isce3(burst_granule_ref, burst_granule_sec, do_geoco

safe_ref = download_burst(burst_granule_ref)
safe_sec = download_burst(burst_granule_sec)
granule_ref = get_granule_name(safe_ref)
granule_sec = get_granule_name(safe_sec)
safe_granule_ref = os.path.basename(safe_ref).split('.')[0]
safe_granule_sec = os.path.basename(safe_sec).split('.')[0]
orbit_ref, _ = downloadSentinelOrbitFile(safe_granule_ref, esa_credentials=esa_credentials)
orbit_sec, _ = downloadSentinelOrbitFile(safe_granule_sec, esa_credentials=esa_credentials)

get_dem_for_safes(safe_ref, safe_sec)

orbit_ref, _ = downloadSentinelOrbitFile(granule_ref, esa_credentials=esa_credentials)
orbit_sec, _ = downloadSentinelOrbitFile(granule_sec, esa_credentials=esa_credentials)

if do_geocode:
burst_id_ref = get_burst_ids(safe_ref, orbit_ref)
burst_id_sec = get_burst_ids(safe_sec, orbit_sec)
Expand All @@ -141,8 +140,8 @@ def process_sentinel1_burst_isce3(burst_granule_ref, burst_granule_sec, do_geoco
safe_sec,
orbit_ref,
orbit_sec,
granule_ref,
granule_sec,
burst_granule_ref,
burst_granule_sec,
burst_id_ref,
burst_id_sec
)
Expand All @@ -155,7 +154,7 @@ def process_sentinel1_burst_isce3(burst_granule_ref, burst_granule_sec, do_geoco
safe_sec,
orbit_ref,
orbit_sec,
granule_ref,
burst_granule_ref,
burst_id_ref,
burst_id_sec
)
Expand Down

0 comments on commit 86648c8

Please sign in to comment.