feat: add Sentinel-1 SAR support and integration tests#7
Open
rfievet wants to merge 1 commit intofeature/copernicus-pr2-s2from
Open
feat: add Sentinel-1 SAR support and integration tests#7rfievet wants to merge 1 commit intofeature/copernicus-pr2-s2from
rfievet wants to merge 1 commit intofeature/copernicus-pr2-s2from
Conversation
- Add S1 product search and download - Add SAR backscatter extraction - Add SAR visualization functions - Add polarization and orbit filtering - Add acquisition mode support (IW, EW, SM, WV) - Add integration tests for S1+S2 workflows - Add example script for downloading test data This PR completes the Copernicus Data Space Ecosystem integration by adding Sentinel-1 SAR support alongside the existing Sentinel-2 optical support. Key features: - fetch_s1() method in CopernicusClient for SAR data - extract_sar_composite() for SAR backscatter extraction - display_sar_image() and create_sar_comparison_plot() for visualization - Comprehensive integration tests using real downloaded data - Example script (scripts/download_test_data.py) for test data setup SAR data complements optical imagery by working day/night and through clouds, making it valuable for all-weather Earth observation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds Sentinel-1 SAR support to complete the Copernicus Data Space Ecosystem integration. Users can now download and process both optical (S2) and radar (S1) satellite imagery.
Builds on: PR #1 (Core + S2 Basic) and PR #2 (S2 Processing)
What's New
S1 SAR Capabilities
New Files
src/data/copernicus/s1.py- S1 search and download logictests/test_copernicus_integration.py- Integration tests for S1+S2 workflowsscripts/download_test_data.py- Example script for downloading test dataModified Files
src/data/copernicus/client.py- Addedfetch_s1()methodsrc/data/copernicus/image_processing.py- Addedextract_sar_composite()src/data/copernicus/visualization.py- Addeddisplay_sar_image()andcreate_sar_comparison_plot()src/data/copernicus/__init__.py- Updated exportsUsage Example
Why SAR Matters
Sentinel-1 SAR complements Sentinel-2 optical imagery:
Testing
All tests pass (48/48):
# Run integration tests (requires test data) uv run python scripts/download_test_data.py uv run pytest tests/test_copernicus_integration.py -vComplete Feature Set
The Copernicus client now supports: