Skip to content

Conversation

@oberonia78
Copy link
Contributor

This PR adds the bridge functionality to the unwrap.
For the fixed PRF interferogram, the phase jumps occurs along the subswath boundaries. To minimize the issues, this PR masked out the invalid areas (partially focused area) using mask layer, then applies the bridge algorithm.
image

@oberonia78 oberonia78 changed the title add bridge algorithm to unwrap Add bridge algorithm to unwrap Oct 23, 2025
@hfattahi hfattahi added this to the R05.01.0 milestone Jan 6, 2026
Copy link
Contributor

@hfattahi hfattahi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Would you please confirm if you have tested with latest constant PRF and Dithered data?

@oberonia78
Copy link
Contributor Author

Currently, there is no issue in running the bridging algorithm for dithered mode but we don't see the differences with/without bridge algorithm, because there is no gap between subswaths for now. @hfattahi

Copy link
Contributor

@xhuang-jpl xhuang-jpl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @oberonia78 , LGTM, just a minor suggestion

return output_arrays


def interpret_subswath_mask(subswath_mask, nodata=255):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @oberonia78, this is a very helpful function, would you please making it a generic function to put it here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. I just moved it to utils.

@hfattahi
Copy link
Contributor

Currently, there is no issue in running the bridging algorithm for dithered mode but we don't see the differences with/without bridge algorithm, because there is no gap between subswaths for now. @hfattahi

Sorry I meant to try with constant PRF data. Have you tested?

Copy link
Contributor

@hfattahi hfattahi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Based on offline discussion, the PR is tested on Quad-pol data as well.

@oberonia78 oberonia78 merged commit 7bb4eb8 into isce-framework:develop Jan 15, 2026
8 checks passed
Tyler-g-hudson pushed a commit that referenced this pull request Jan 15, 2026
* add bridge algorithm to unwrap

* fix bug in reading mask

* move function to utils

* fix the bug

---------

Co-authored-by: Jungkyo Jung <jungkyoj@nisar-adt-dev-5.jpl.nasa.gov>
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.

3 participants