2.6 KiB
2.6 KiB
Sentinel-1 SAR Download for Aura Fields
This folder contains scripts to download and preprocess Sentinel-1 SAR data for crop monitoring.
Quick Start
1. Setup Environment
# Navigate to the python_scripts directory
cd "c:\Users\timon\Resilience BV\4020 SCane ESA DEMO - Documenten\General\4020 SCDEMO Team\4020 TechnicalData\WP3\smartcane\python_scripts"
# Run setup script
python setup_sar_environment.py
2. Get SentinelHub Credentials
- Go to https://apps.sentinel-hub.com/
- Create account (free tier available)
- Get your Client ID and Client Secret
- The script will prompt for these when you first run it
3. Prepare Field Boundaries
- Make sure you have your field boundaries in GeoJSON format
- The script will look for files like:
pivot.geojson(current directory)pivot_20210625.geojson(current directory)data/aura/field_boundaries/aura_fields.geojson
4. Download SAR Data
python download_s1_aura.py
What the Script Does
- Downloads last 8 weeks of Sentinel-1 data
- Downloads both VV and VH polarizations
- Provides both linear and dB scales for analysis
- Applies basic speckle filtering
- Organizes by week (week_XX_YYYY_BAND.tif format)
Output Structure
data/aura/weekly_SAR_mosaic/
├── week_24_2025_VV.tif
├── week_24_2025_VH.tif
├── week_24_2025_VV_dB.tif
├── week_24_2025_VH_dB.tif
├── week_24_2025_VV_dB_filtered.tif
├── week_24_2025_VH_dB_filtered.tif
└── ... (for each week)
Files Created
download_s1_aura.py- Main download scriptrequirements_sar.txt- Python dependenciessetup_sar_environment.py- Environment setup helpersar_download.log- Download log file
Troubleshooting
Common Issues:
- Import errors: Run
python setup_sar_environment.pyfirst - Credential errors: Make sure SentinelHub credentials are correct
- No data found: Check if field boundaries are loaded correctly
- Large downloads: SAR data can be large, ensure good internet connection
Check Log File:
Get-Content sar_download.log -Tail 20
Next Steps
After successful download:
- Check the output files in
data/aura/weekly_SAR_mosaic/ - Move to R for analysis and visualization
- Create SAR analysis scripts in R
Notes
- Free Tier Limits: SentinelHub free tier has processing unit limits
- Data Size: Each weekly mosaic can be 50-200MB depending on area
- Processing Time: Downloads can take 5-15 minutes per week
- Format: All outputs are GeoTIFF with proper CRS information