sudapy.rs.sentinel¶
Sentinel satellite scene search and download via sentinelsat.
Note
Requires pip install "sudapy[rs]" and Copernicus credentials set as environment variables.
sudapy.rs.sentinel ¶
Sentinel satellite scene search and download via sentinelsat.
Requires the sudapy[rs] extra: pip install "sudapy[rs]"
Before first use, set your Copernicus Open Access Hub credentials:
export COPERNICUS_USER=your_username
export COPERNICUS_PASSWORD=your_password
Register at https://scihub.copernicus.eu/dhus/#/self-registration
search_scenes ¶
search_scenes(*, lon: float, lat: float, start_date: str, end_date: str, platform_name: str = 'Sentinel-2', max_cloud: int = 30) -> list[dict]
Search for Sentinel scenes around a point.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
lon
|
float
|
Center longitude. |
required |
lat
|
float
|
Center latitude. |
required |
start_date
|
str
|
Start date as YYYY-MM-DD. |
required |
end_date
|
str
|
End date as YYYY-MM-DD. |
required |
platform_name
|
str
|
Satellite platform (default |
'Sentinel-2'
|
max_cloud
|
int
|
Maximum cloud cover percentage (default 30). |
30
|
Returns:
| Type | Description |
|---|---|
list[dict]
|
List of dicts with keys: |
Source code in src\sudapy\rs\sentinel.py
download_scene ¶
Download a Sentinel scene by UUID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
uuid
|
str
|
Scene UUID from :func: |
required |
out_dir
|
PathLike
|
Output directory (default: current directory). |
'.'
|
Returns:
| Type | Description |
|---|---|
Path
|
Path to the downloaded file. |