diff --git a/src/rtc/h5_prep.py b/src/rtc/h5_prep.py index 8cee659..4bc0460 100644 --- a/src/rtc/h5_prep.py +++ b/src/rtc/h5_prep.py @@ -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 =\ diff --git a/src/rtc/runconfig.py b/src/rtc/runconfig.py index 507b09f..8c6e730 100644 --- a/src/rtc/runconfig.py +++ b/src/rtc/runconfig.py @@ -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)