diff --git a/src/s1reader/s1_burst_slc.py b/src/s1reader/s1_burst_slc.py index 9059acc8..3f6739ca 100644 --- a/src/s1reader/s1_burst_slc.py +++ b/src/s1reader/s1_burst_slc.py @@ -152,6 +152,7 @@ class Sentinel1BurstSlc: border: list # list of lon, lat coordinate tuples (in degrees) representing burst border orbit: isce3.core.Orbit orbit_direction: str + abs_orbit_number: int # Absolute orbit number # VRT params tiff_path: str # path to measurement tiff in SAFE/zip i_burst: int diff --git a/src/s1reader/s1_reader.py b/src/s1reader/s1_reader.py index 4317ae6a..506f9263 100644 --- a/src/s1reader/s1_reader.py +++ b/src/s1reader/s1_reader.py @@ -487,7 +487,7 @@ def burst_from_xml(annotation_path: str, orbit_path: str, tiff_path: str, last_valid_samples[last_line]) - burst_id = f't{track_number}_{id_burst}_{subswath_id.lower()}' + burst_id = f't{track_number:03d}_{id_burst}_{subswath_id.lower()}' #Extract burst-wise information for Calibration, Noise, and EAP correction @@ -502,7 +502,7 @@ def burst_from_xml(annotation_path: str, orbit_path: str, tiff_path: str, (n_lines, n_samples), az_fm_rate, doppler, rng_processing_bandwidth, pol, burst_id, platform_id, center_pts[i], - boundary_pts[i], orbit, orbit_direction, + boundary_pts[i], orbit, orbit_direction, orbit_number, tiff_path, i, first_valid_sample, last_sample, first_valid_line, last_line, range_window_type, range_window_coeff, diff --git a/tests/test_bursts.py b/tests/test_bursts.py index 06a85b40..11204126 100644 --- a/tests/test_bursts.py +++ b/tests/test_bursts.py @@ -28,9 +28,10 @@ def test_burst(bursts): [-2056.701472691132, 353389.9614836443, -54143009.57327797]] for i, burst in enumerate(bursts): - expected_burst_id = f't71_{151200 + i}_iw3' + expected_burst_id = f't071_{151200 + i}_iw3' assert burst.burst_id == expected_burst_id assert burst.i_burst == i + assert burst.abs_orbit_number == 32518 assert burst.radar_center_frequency == 5405000454.33435 assert burst.wavelength == 0.05546576