Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/rtc/h5_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -1619,12 +1619,22 @@ def get_range_azimuth_resolution(burst: Sentinel1BurstSlc):
-----
https://sentinels.copernicus.eu/web/sentinel/technical-guides/sentinel-1-sar/
products-algorithms/level-1/single-look-complex/interferometric-wide-swath
Values available in:
Sentinel-1 Product Definition,
Document Number: S1-RS-MDA-52-7440
S-1 MPC Nomenclature: DI-MPC-PB
S-1 MPC Reference: MPC-0239
IW SLC -> Table 7-5, EW SLC -> Table 7-8
'''

resolution_subswath_range_azimuth_dict = {
'IW1': [2.7, 22.5],
'IW2': [3.1, 22.7],
'IW3': [3.5, 22.6]
'IW3': [3.5, 22.6],
'EW1': [7.9, 43.7],
'EW2': [9.9, 44.3],
'EW3': [11.6, 45.2],
'EW4': [13.3, 45.6],
'EW5': [14.4, 44.0]
}

slant_range_resolution, azimuth_resolution =\
Expand Down
16 changes: 11 additions & 5 deletions src/rtc/runconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,20 +264,26 @@ def runconfig_to_bursts(cfg: SimpleNamespace):
'dual-pol': ['HH', 'HV']}
pols = mode_to_pols[cfg.processing.polarization]

# zip pol and IW subswath indices together
i_subswaths = [1, 2, 3]
# get the sensor acquisition mode from the filename
sensor_mode = os.path.basename(
str(safe_file)).split("_")[1].lower()

# set the number of subswaths based on the mode
subswaths = {"iw": [1, 2, 3], "ew": [1, 2, 3, 4, 5]}[sensor_mode]

# zip pol and IW/EW subswath indices together
pol_subswath_index_pairs = [(pol, i)
for pol in pols for i in i_subswaths]
for pol in pols for i in subswaths]

# list of burst ID + polarization tuples
# used to prevent reference repeats
id_pols_found = []

# loop over pol and subswath index combinations
for pol, i_subswath in pol_subswath_index_pairs:
for pol, subswath in pol_subswath_index_pairs:

# loop over burst objs extracted from SAFE zip
for burst in load_bursts(safe_file, orbit_file_path, i_subswath,
for burst in load_bursts(safe_file, orbit_file_path, subswath,
pol, flag_apply_eap=False):
# get burst ID
burst_id = str(burst.burst_id)
Expand Down