Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Burst id and absolute orbit number #64

Merged
merged 5 commits into from
Aug 25, 2022
Merged
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
1 change: 1 addition & 0 deletions src/s1reader/s1_burst_slc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/s1reader/s1_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion tests/test_bursts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down