Skip to main content

Utility to search and download Sentinel-1 Imagery

Project description

sentinelsat

https://badge.fury.io/py/sentinelsat.svg

Utility pack 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. It just needs your 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 by using:

api.download(<product_id>)

You can search products by specifying the coordinates of the area and a date interval:

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

You can query by using date or datetime objects too.

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

If you don’t specify the start and end dates, it will query in the last 24 hours.

Beyond area and date parameters, you can use any search keywords accepted by the SciHub API, for 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.2.1.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file sentinelsat-0.2.1.tar.gz.

File metadata

  • Download URL: sentinelsat-0.2.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sentinelsat-0.2.1.tar.gz
Algorithm Hash digest
SHA256 aa925f7dd1898b496c5d0f5afd7e2ea6008ed829b34aaa380841107a1667cffa
MD5 2fb7171bf09230108eeed57e36d9e4d5
BLAKE2b-256 f1f4c62f8d3ebb2602d3500850fb15ffa2540630e2114041f57b3bc6b6f906c1

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