Skip to content

64 Native cropping in radar coordinates#86

Merged
Simon-van-Diepen merged 6 commits intomainfrom
64-cropping
Apr 22, 2026
Merged

64 Native cropping in radar coordinates#86
Simon-van-Diepen merged 6 commits intomainfrom
64-cropping

Conversation

@Simon-van-Diepen
Copy link
Copy Markdown
Contributor

  • adds cropping function based on the bounding box of a provided polygon in radar coordinates
  • adds unit test
  • adds dependency to shapely for geometry

Necessary for #85

For TU Delft specific workflow, radarcoding is incorporated in the DePSI package already. By keeping it there, it saves having to include radarcoding and polygon reading natively in sarxarray.

The Dataset or DataArray remains in grid format, hence the bounding box (min/max azimuth, min/max range) is used instead of a perfect cutout.

@Simon-van-Diepen
Copy link
Copy Markdown
Contributor Author

I just realized I originally planned on doing this together with #85 instead of as a separate PR. @rogerkuou would you prefer to convert this to a draft and include #85 in the branch or keep them separate as they are now?

@rogerkuou
Copy link
Copy Markdown
Member

rogerkuou commented Apr 22, 2026

Hi @Simon-van-Diepen , thanks for the implementation. I think it's nice to have this PR separated. I will review this one first

I have one general comments here: Let's add support to bounding box in a simple tuple. Since the function is already here .

After this it's good to merge!

@sonarqubecloud
Copy link
Copy Markdown

@Simon-van-Diepen Simon-van-Diepen merged commit 6cf17b1 into main Apr 22, 2026
18 checks passed
@Simon-van-Diepen Simon-van-Diepen deleted the 64-cropping branch April 22, 2026 14:16
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.

Allow for SLC cropping based on a radar coordinate bounding box and/or time bounds

2 participants