Skip to main content

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

s2dl-0.4.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

s2dl-0.4.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

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

Hashes for s2dl-0.4.1.tar.gz
Algorithm Hash digest
SHA256 ca43ad2a5522695de78215ad0d3c5ce5c3d0124106eb4e6fea1f50c73f4983e0
MD5 c675f437d36f9028b4cf191233c61738
BLAKE2b-256 050bb2bf9514e37abde509f2c1d9ac47a41cee1b2ae156c6da4760cc46922d2a

See more details on using hashes here.

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

Hashes for s2dl-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 24704ece047cea67b381d342ad310b062b4148f1d2f241b733e64e555a9dc00e
MD5 74de7712074271ae094f37d35a889917
BLAKE2b-256 26ddcc16a2ee8b17e9b98af4a3fa272528ef0f5d206e581f58083b00d5b54813

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page