Skip to content

Fix for min_bursts not checking each swath#209

Open
a-diab wants to merge 2 commits intoASFHyP3:developfrom
a-diab:develop
Open

Fix for min_bursts not checking each swath#209
a-diab wants to merge 2 commits intoASFHyP3:developfrom
a-diab:develop

Conversation

@a-diab
Copy link

@a-diab a-diab commented Aug 26, 2025

When using burst2safe with the min_bursts option, only the total number of bursts gets checked against min_bursts.

The example below will download 2 bursts in the first swath and only 1 burst in the second, causing issues in ESD processing.

> burst2safe --orbit 15167 --min-bursts 2 --extent 148.932 -33.548 149.094 -33.411 --pols VV --output-dir test
Using burst group search...
Found 3 burst(s).
Check burst group validity...
Downloading data...
Download complete.
Creating SAFE...
SAFE created!

Fixing it will ensure each swath has the min_bursts specified.

> burst2safe --orbit 15167 --min-bursts 2 --extent 148.932 -33.548 149.094 -33.411 --pols VV --output-dir test
Using burst group search...
Got 1 bursts for swath IW2 when expecting at least 2, adding surrounding bursts...
Found 4 burst(s).
Check burst group validity...
Downloading data...
Download complete.
Creating SAFE...
SAFE created!

* Fixed min bursts not checking for each swath
@a-diab a-diab requested a review from a team as a code owner August 26, 2025 18:32
* adds --remove-duplicate-bursts to burst2safe which checks for multiple bursts with the same burst id and only uses a set with the same size

* add removing duplicates output

* - adds docs
- removes prints
- keeps largest burst in case of duplicates

* bug fixes

---------

Co-authored-by: Charlie <charlie.wadds@terramotioncanada.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants