Skip to content

Commit 412f083

Browse files
authored
Burst id and absolute orbit number (#64)
* Format change on `burst_id`; keeping the absolute orbit number inside `Sentinel1BurstSlc` * updates on test_bursts.py Co-authored-by: Seongsu Jeong <[email protected]>
1 parent a3f6aa2 commit 412f083

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/s1reader/s1_burst_slc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ class Sentinel1BurstSlc:
152152
border: list # list of lon, lat coordinate tuples (in degrees) representing burst border
153153
orbit: isce3.core.Orbit
154154
orbit_direction: str
155+
abs_orbit_number: int # Absolute orbit number
155156
# VRT params
156157
tiff_path: str # path to measurement tiff in SAFE/zip
157158
i_burst: int

src/s1reader/s1_reader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ def burst_from_xml(annotation_path: str, orbit_path: str, tiff_path: str,
487487
last_valid_samples[last_line])
488488

489489

490-
burst_id = f't{track_number}_{id_burst}_{subswath_id.lower()}'
490+
burst_id = f't{track_number:03d}_{id_burst}_{subswath_id.lower()}'
491491

492492

493493
#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,
502502
(n_lines, n_samples), az_fm_rate, doppler,
503503
rng_processing_bandwidth, pol, burst_id,
504504
platform_id, center_pts[i],
505-
boundary_pts[i], orbit, orbit_direction,
505+
boundary_pts[i], orbit, orbit_direction, orbit_number,
506506
tiff_path, i, first_valid_sample,
507507
last_sample, first_valid_line, last_line,
508508
range_window_type, range_window_coeff,

tests/test_bursts.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ def test_burst(bursts):
2828
[-2056.701472691132, 353389.9614836443, -54143009.57327797]]
2929

3030
for i, burst in enumerate(bursts):
31-
expected_burst_id = f't71_{151200 + i}_iw3'
31+
expected_burst_id = f't071_{151200 + i}_iw3'
3232
assert burst.burst_id == expected_burst_id
3333
assert burst.i_burst == i
34+
assert burst.abs_orbit_number == 32518
3435

3536
assert burst.radar_center_frequency == 5405000454.33435
3637
assert burst.wavelength == 0.05546576

0 commit comments

Comments
 (0)