S2DL is a Python library for downloading Sentinel-2 L1C and L2A satellite imagery data.
Project description
S2DL - Sentinel 2 Downloader
S2DL is a Python library for downloading Sentinel-2 L1C and L2A satellite imagery data.
Features
- Download Sentinel-2 product data using product IDs
Installation
You can install the S2DL library via pip:
pip install s2dl
Usage
Here's a simple usage example:
from s2dl import fetch_single_sentinel_product
from pathlib import Path
product_id = "S2A_MSIL2A_20220111T021351_N0301_R060_T50HLK_20220111T041611"
target_directory = Path("./data")
target_directory.mkdir(exist_ok=True)
# Fetch and save a single Sentinel-2 product's data
scene_dir = fetch_single_sentinel_product(product_id, target_directory)
For downloading multiple products:
from s2dl import fetch_multiple_sentinel_products
from pathlib import Path
product_ids = [
"S2A_MSIL2A_20220111T021351_N0301_R060_T50HLK_20220111T041611",
"S2A_MSIL1C_20230712T032521_N0509_R018_T52WFD_20230712T051642",
]
target_directory = Path("./data")
target_directory.mkdir(exist_ok=True)
# Fetch and save multiple Sentinel-2 products' data
scene_dirs = fetch_multiple_sentinel_products(product_ids, target_directory)
Contributions
We welcome contributions from the community. Please submit a pull request with your improvements or bug fixes.
License
S2DL is licensed under the MIT License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file s2dl-0.4.1.tar.gz.
File metadata
- Download URL: s2dl-0.4.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca43ad2a5522695de78215ad0d3c5ce5c3d0124106eb4e6fea1f50c73f4983e0
|
|
| MD5 |
c675f437d36f9028b4cf191233c61738
|
|
| BLAKE2b-256 |
050bb2bf9514e37abde509f2c1d9ac47a41cee1b2ae156c6da4760cc46922d2a
|
File details
Details for the file s2dl-0.4.1-py3-none-any.whl.
File metadata
- Download URL: s2dl-0.4.1-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24704ece047cea67b381d342ad310b062b4148f1d2f241b733e64e555a9dc00e
|
|
| MD5 |
74de7712074271ae094f37d35a889917
|
|
| BLAKE2b-256 |
26ddcc16a2ee8b17e9b98af4a3fa272528ef0f5d206e581f58083b00d5b54813
|