Utility for searching and downloading satellite images Dataspace Copernicus
Project description
Overview
sentinel2_downloader is a Python library that allows you to search, download, and retrieve metadata of Sentinel satellite images from the Copernicus Data Space.
Features
Search for Sentinel satellite images based on various parameters such as footprint, date range, product type, cloud cover percentage, and platform name.
Download Sentinel satellite images using their product IDs.
Save downloaded images to the specified directory.
Display a progress bar during the download process, showing the download speed, elapsed time, and percentage of completion.
Installation
You can install sentinel2_downloader using pip:
pip install sentinel2_downloader
Usage
Here’s an example of how to use sentinel2_downloader:
from sentinel2_downloader import SentinelAPI
# Create an instance of the SentinelAPI
api = SentinelAPI(username='your_username', password='your_password')
# Perform a search for Sentinel satellite images
products = api.query(footprint='POLYGON((longitude1 latitude1, longitude2 latitude2, longitude3 latitude3, ...))',
start_date='2020-01-01', end_date='2020-01-31', cloud_cover_percentage='20', product_type='MSIL1C',
platform_name='SENTINEL-2')
if len(products) > 1:
for product in products:
# Download the images
a = api.download(product_id=product['Id'], directory_path='output')
- Args:
footprint (str): The footprint to define the geographic area of interest. It should be in the Well-Known Text (WKT) format.
start_date (str): The start date of the data acquisition period in the format ‘yyyy-mm-dd’.
end_date (str): The end date of the data acquisition period in the format ‘yyyy-mm-dd’.
product_type (str): The type of Sentinel product to query.
cloud_cover_percentage (str): The maximum cloud cover percentage allowed.
platform_name (str): The name of the Sentinel platform.
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 Distributions
Built Distribution
File details
Details for the file sentinel2_downloader-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: sentinel2_downloader-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1408fedc98cf8aeec563b821ee705999f7394c3aeacdad2eddb6f1838fb061bd |
|
MD5 | b65d65d2bf924729af86d34718e9662c |
|
BLAKE2b-256 | c17dc6b2f322e6129be4cb8122b7b2991d9565626b4164022d5fde96d2d9840e |