A Python application for viewing and processing Sentinel-2 satellite imagery using the Sentinel Hub API.
pip install -r requirements.txt
- Create a Sentinel Hub account at https://www.sentinel-hub.com/
- Go to your account settings and create OAuth credentials
- Create a
.env
file in the project root with the following content:
SENTINEL_HUB_CLIENT_ID=your_client_id_here
SENTINEL_HUB_CLIENT_SECRET=your_client_secret_here
Create a .env
file in the project root directory with your Sentinel Hub credentials:
SENTINEL_HUB_CLIENT_ID=your_client_id_here
SENTINEL_HUB_CLIENT_SECRET=your_client_secret_here
- High-resolution Sentinel-2 imagery display
- Enhanced visualization using 10m resolution bands
- Vegetation enhancement using NDVI
- Interactive location selection
- Customizable image quality settings
- Run the application:
python image.py
-
The application will prompt you to:
- Enter a location name
- Select image quality settings
- Set update interval
-
Controls:
- Mouse wheel: Zoom in/out
- Left click + drag: Pan the image
- ESC: Exit the application
The application uses Sentinel-2's high-resolution bands:
- B02 (Blue)
- B03 (Green)
- B04 (Red)
- B08 (NIR)
Image enhancement includes:
- Contrast stretching
- Vegetation enhancement using NDVI
- Brightness adjustment
- Color balancing
-
If you see no image:
- Check your Sentinel Hub credentials
- Verify internet connection
- Try a different location
- Adjust the date range if necessary
-
If the image is too dark/bright:
- The evalscript in image.py can be adjusted
- Modify the gain value (currently 2.5)
- Adjust contrast stretching parameters
See requirements.txt
for a complete list of dependencies.
This project is licensed under the MIT License - see the LICENSE file for details.