Skip to main content

Utility to search and download Sentinel-1 Imagery

Project description

sentinelsat

Utility to search and download Sentinel-1 imagery.

Installation

pip install sentinelsat

Usage

Sentinelsat provides a Python Library and a Command Line Interface to search and download Sentinel-1 products.

Command Line Interface

Download

sentinel download [OPTIONS] <user> <password> <productid>

Download a Sentinel-1 Product. Just needs you scihub user and password and the id of the product you want to download.

Options:

-p, --path PATH

Set the path where the file will be saved.

Python Library

Connect to the API:

from sentinelsat.sentinel import SentinelAPI
api = SentinelAPI('user', 'password')

If you know the id of the product you want to download, you can download it using:

api.download('079ed72f-b330-4918-afb8-b63854e375a5', path='.')

Search products specifying the coordinates of the area and date interval:

api.query('0 0,1 1,0 1,0 0', '20150531', '20150612')

You can query using date or datetime objects too.If you don’t specify the start and end dates, it will query in the last 24 hours.

api.query('0 0,1 1,0 1,0 0', datetime(2015, 5, 31, 12, 5), date(2015, 6, 12))

Beyond area and date parameters, you can use any search keywords accepted by the SciHub API, example:

api.query('0 0,1 1,0 1,0 0', producttype='SLC')

See the SciHub User Guide for all the Search Keywords.

To download all the results of your query, use:

api.download_all()

License

GPLv3+

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

sentinelsat-0.1.dev0.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file sentinelsat-0.1.dev0.tar.gz.

File metadata

File hashes

Hashes for sentinelsat-0.1.dev0.tar.gz
Algorithm Hash digest
SHA256 b2ebaf9817745b4169b2a4ddd29c5a0df907b0a45818a4293f48fefce5d7bfab
MD5 a3018f3c308b2745caa0a66b1a6e8913
BLAKE2b-256 faed12247fe5386ded4e8a42a76da570f89444673ac422e46c051a14c01a6bc2

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