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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
s2dl-0.3.tar.gz
(4.7 kB
view details)
Built Distribution
s2dl-0.3-py3-none-any.whl
(5.1 kB
view details)
File details
Details for the file s2dl-0.3.tar.gz
.
File metadata
- Download URL: s2dl-0.3.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef262058c5863bb3017ad045aa4afc661eb44193e89196eb9e784cadf2329ca7 |
|
MD5 | c6c592b26ed3bf78f58ae92918296bc2 |
|
BLAKE2b-256 | cfefc08694b37ea2063ff385b4f7dede488774de0e37e7083003dc5d7cd557f6 |
File details
Details for the file s2dl-0.3-py3-none-any.whl
.
File metadata
- Download URL: s2dl-0.3-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6406938a31a0460a9b8dfdef6d04805997b127c0861b01a864e9f9f87bc77ed |
|
MD5 | 6802e9061fa86d847ce06678bfb3ce1b |
|
BLAKE2b-256 | 4ff172e113776e10f48cb4e0d99ea5c725a8939cedebbb904650028d1cbc80de |