Download Sentinel-2 data from Microsoft Planetary Computer
Project description
Sentinel Downloader
This Python library allows you to download Sentinel-2 data from Microsoft Planetary Computer.
Installation
pip install sen2p
Usage
Using a Point Location [lon, lat]
from sen2p import download
location = [172.1, -43.5]
results = download(
start_date="2023-06-01",
end_date="2023-06-10",
location=location,
bands=["B02", "B03", "B04"],
output_dir="test_outputs",
merge_bands=True,
max_items=3 # download up to 3 images
)
for r in results:
print("Downloaded:", r)
Using a Polygon Shapefile
from sen2p import download
# Path to your shapefile
shapefile_path = "Site.shp" # Update with your actual shapefile path
# Call the function
results = download(
start_date="2023-06-01",
end_date="2023-06-30",
location=shapefile_path,
bands=["B02", "B03", "B04"],
output_dir="test_output",
merge_bands=True,
max_items=5 # Download up to 5 matching images
)
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
sen2p-0.0.2.tar.gz
(4.0 kB
view details)
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
sen2p-0.0.2-py3-none-any.whl
(4.0 kB
view details)
File details
Details for the file sen2p-0.0.2.tar.gz.
File metadata
- Download URL: sen2p-0.0.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa9df711da8b74aed31e407e5d5cf85cf7837feb8fb08768cf5786e0770003a1
|
|
| MD5 |
8cafdf5015a063bfabc169d481cc2a03
|
|
| BLAKE2b-256 |
1be76423a9de30de0dc0204baad2bfdc70ee5eeba6508a2eb454ecc5ced5cfe4
|
File details
Details for the file sen2p-0.0.2-py3-none-any.whl.
File metadata
- Download URL: sen2p-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1328a96ad6ad6df5b87054dbd0283c7df6334b3f283254cc9ea4fedbff4f1f74
|
|
| MD5 |
42db8f433ea016c27c6f06f5f38d3137
|
|
| BLAKE2b-256 |
7ecebe6ccfef9065a54fffd5cf1e1edc728b35f34f8d63bb5967c8656b9e5674
|