All Projects β†’ sentinelsat β†’ Sentinelsat

sentinelsat / Sentinelsat

Licence: gpl-3.0
Search and download Copernicus Sentinel satellite images

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Sentinelsat

Landsat578
Very simple API to download Landsat [1-5, 7, 8] data from Google
Stars: ✭ 54 (-90.62%)
Mutual labels:  remote-sensing, satellite-imagery
Torchsat
πŸ”₯TorchSat 🌏 is an open-source deep learning framework for satellite imagery analysis based on PyTorch.
Stars: ✭ 261 (-54.69%)
Mutual labels:  remote-sensing, satellite-imagery
open-impact
To help quickstart impact work with Satellogic [hyperspectral] data
Stars: ✭ 21 (-96.35%)
Mutual labels:  remote-sensing, satellite-imagery
spyndex
Awesome Spectral Indices in Python.
Stars: ✭ 56 (-90.28%)
Mutual labels:  remote-sensing, satellite-imagery
Notebooks
interactive notebooks from Planet Engineering
Stars: ✭ 339 (-41.15%)
Mutual labels:  remote-sensing, satellite-imagery
dea-coastlines
Extracting tidally-constrained annual shorelines and robust rates of coastal change from freely available Earth observation data at continental scale
Stars: ✭ 24 (-95.83%)
Mutual labels:  remote-sensing, satellite-imagery
shipsnet-detector
Detect container ships in Planet imagery using machine learning
Stars: ✭ 30 (-94.79%)
Mutual labels:  remote-sensing, satellite-imagery
Start maja
To process a Sentinel-2 time series with MAJA cloud detection and atmospheric correction processor
Stars: ✭ 47 (-91.84%)
Mutual labels:  remote-sensing, satellite-imagery
Awesome Sentinel
curated list of awesome tools, tutorials and APIs for Copernicus Sentinel satellite data
Stars: ✭ 335 (-41.84%)
Mutual labels:  open-data, satellite-imagery
Geospatial Machine Learning
A curated list of resources focused on Machine Learning in Geospatial Data Science.
Stars: ✭ 289 (-49.83%)
Mutual labels:  remote-sensing, satellite-imagery
ee extra
A ninja python package that unifies the Google Earth Engine ecosystem.
Stars: ✭ 42 (-92.71%)
Mutual labels:  remote-sensing, satellite-imagery
Serenata De Amor
πŸ•΅ Artificial Intelligence for social control of public administration
Stars: ✭ 4,367 (+658.16%)
Mutual labels:  hacktoberfest, open-data
awesome-spectral-indices
A ready-to-use curated list of Spectral Indices for Remote Sensing applications.
Stars: ✭ 357 (-38.02%)
Mutual labels:  remote-sensing, satellite-imagery
land-cover-to-land-use-classification
Satellite image processing pipeline to classify land-cover and land-use
Stars: ✭ 64 (-88.89%)
Mutual labels:  remote-sensing, satellite-imagery
eodag
Earth Observation Data Access Gateway
Stars: ✭ 183 (-68.23%)
Mutual labels:  remote-sensing, satellite-imagery
geoblaze
Blazing Fast JavaScript Raster Processing Engine
Stars: ✭ 80 (-86.11%)
Mutual labels:  remote-sensing, satellite-imagery
lightweight-temporal-attention-pytorch
A PyTorch implementation of the Light Temporal Attention Encoder (L-TAE) for satellite image time series. classification
Stars: ✭ 43 (-92.53%)
Mutual labels:  remote-sensing, satellite-imagery
Python-for-Remote-Sensing
python codes for remote sensing applications will be uploaded here. I will try to teach everything I learn during my projects in here.
Stars: ✭ 20 (-96.53%)
Mutual labels:  remote-sensing, satellite-imagery
Datacube Core
Open Data Cube analyses continental scale Earth Observation data through time
Stars: ✭ 285 (-50.52%)
Mutual labels:  hacktoberfest, remote-sensing
Label Maker
Data Preparation for Satellite Machine Learning
Stars: ✭ 377 (-34.55%)
Mutual labels:  remote-sensing, satellite-imagery

sentinelsat

.. image:: https://badge.fury.io/py/sentinelsat.svg :target: http://badge.fury.io/py/sentinelsat :alt: PyPI package

.. image:: https://travis-ci.com/sentinelsat/sentinelsat.svg?branch=master :target: https://travis-ci.com/sentinelsat/sentinelsat :alt: Travis-CI

.. image:: https://codecov.io/gh/sentinelsat/sentinelsat/branch/master/graph/badge.svg :target: https://codecov.io/gh/sentinelsat/sentinelsat :alt: codecov.io code coverage

.. image:: https://readthedocs.org/projects/sentinelsat/badge/?version=stable :target: http://sentinelsat.readthedocs.io/en/stable/?badge=stable :alt: Documentation

.. image:: https://img.shields.io/badge/gitter-join_chat-1dce73.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB4PSIwIiB5PSI1IiBmaWxsPSIjZmZmIiB3aWR0aD0iMSIgaGVpZ2h0PSI1Ii8%2BPHJlY3QgeD0iMiIgeT0iNiIgZmlsbD0iI2ZmZiIgd2lkdGg9IjEiIGhlaWdodD0iNyIvPjxyZWN0IHg9IjQiIHk9IjYiIGZpbGw9IiNmZmYiIHdpZHRoPSIxIiBoZWlnaHQ9IjciLz48cmVjdCB4PSI2IiB5PSI2IiBmaWxsPSIjZmZmIiB3aWR0aD0iMSIgaGVpZ2h0PSI0Ii8%2BPC9zdmc%2B&logoWidth=8 :target: https://gitter.im/sentinelsat/ :alt: gitter.im chat

.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.595961.svg :target: https://doi.org/10.5281/zenodo.595961 :alt: Zenodo DOI

Sentinelsat makes searching, downloading and retrieving the metadata of Sentinel <http://www.esa.int/Our_Activities/Observing_the_Earth/Copernicus/Overview4>_ satellite images from the Copernicus Open Access Hub <https://scihub.copernicus.eu/>_ easy.

It offers an easy-to-use command line interface

.. code-block:: bash

sentinelsat -u -p -g <search_polygon.geojson> --sentinel 2 --cloud 30

and a powerful Python API.

.. code-block:: python

from sentinelsat import SentinelAPI, read_geojson, geojson_to_wkt

api = SentinelAPI('user', 'password') footprint = geojson_to_wkt(read_geojson('search_polygon.geojson')) products = api.query(footprint, producttype='SLC', orbitdirection='ASCENDING') api.download_all(products)

Documentation is published at http://sentinelsat.readthedocs.io/.

Installation

Install sentinelsat through pip:

.. code-block:: bash

pip install sentinelsat

Usage

Sentinelsat provides a Python API and a command line interface to search, download and retrieve the metadata for Sentinel products.

Python Library

.. code-block:: python

from sentinelsat import SentinelAPI, read_geojson, geojson_to_wkt from datetime import date

connect to the API

api = SentinelAPI('user', 'password', 'https://scihub.copernicus.eu/dhus')

download single scene by known product id

api.download(<product_id>)

search by polygon, time, and Hub query keywords

footprint = geojson_to_wkt(read_geojson('map.geojson')) products = api.query(footprint, date = ('20151219', date(2015, 12, 29)), platformname = 'Sentinel-2', cloudcoverpercentage = (0, 30))

download all results from the search

api.download_all(products)

GeoJSON FeatureCollection containing footprints and metadata of the scenes

api.to_geojson(products)

GeoPandas GeoDataFrame with the metadata of the scenes and the footprints as geometries

api.to_geodataframe(products)

Get basic information about the product: its title, file size, MD5 sum, date, footprint and

its download url

api.get_product_odata(<product_id>)

Get the product's full metadata available on the server

api.get_product_odata(<product_id>, full=True)

Valid search query keywords can be found at the Copernicus Open Access Hub documentation <https://scihub.copernicus.eu/userguide/3FullTextSearch>_.

Command Line Interface

A basic search query consists of a search area geometry as well as the username and password to access the Copernicus Open Access Hub.

.. code-block:: bash

sentinelsat -u -p -g

Search areas are provided as GeoJSON files, which can be created with QGIS <http://qgis.org/en/site/>_ or geojson.io <http://geojson.io>_. If you do not specify a start and end date only products published in the last 24 hours will be queried.

Example ^^^^^^^

Search and download all Sentinel-1 scenes of type SLC, in descending orbit, for the year 2015.

.. code-block:: bash

sentinelsat -u -p -g <search_polygon.geojson> -s 20150101 -e 20151231 -d
--producttype SLC -q "orbitdirection=Descending"
--url "https://scihub.copernicus.eu/dhus"

Username, password and DHuS URL can also be set via environment variables for convenience.

.. code-block:: bash

same result as query above

export DHUS_USER="" export DHUS_PASSWORD="" export DHUS_URL="https://scihub.copernicus.eu/dhus"

sentinelsat -g <search_polygon.geojson> -s 20150101 -e 20151231 -d
--producttype SLC -q "orbitdirection=Descending"

Options ^^^^^^^

.. list-table::

    • -u
    • --user
    • TEXT
    • Username [required] (or environment variable DHUS_USER)
    • -p
    • --password
    • TEXT
    • Password [required] (or environment variable DHUS_PASSWORD)
    • -s
    • --start
    • TEXT
    • Start date of the query in the format YYYYMMDD.
    • -e
    • --end
    • TEXT
    • End date of the query in the format YYYYMMDD.
    • -g
    • --geometry
    • PATH
    • Search area geometry as GeoJSON file.
    • --uuid
    • TEXT
    • Select a specific product UUID instead of a query. Multiple UUIDs can separated by commas.
    • --name
    • TEXT
    • Select specific product(s) by filename. Supports wildcards.
    • --sentinel
    • INT
    • Limit search to a Sentinel satellite (constellation).
    • --instrument
    • TEXT
    • Limit search to a specific instrument on a Sentinel satellite.
    • --producttype
    • TEXT
    • Limit search to a Sentinel product type.
    • -c
    • --cloud
    • INT
    • Maximum cloud cover in percent. (requires --sentinel to be 2 or 3)
    • -o
    • --order-by
    • TEXT
    • Comma-separated list of keywords to order the result by. Prefix '-' for descending order.
    • -l
    • --limit
    • INT
    • Maximum number of results to return. Defaults to no limit.
    • -d
    • --download
    • Download all results of the query.
    • --path
    • PATH
    • Set the path where the files will be saved.
    • -q
    • --query
    • TEXT
    • Extra search keywords you want to use in the query. Separate keywords with comma. Example: 'producttype=GRD,polarisationmode=HH'.
    • -f
    • --footprints
    • Create geojson file search_footprints.geojson with footprints of the query result.
    • --info
    • Display DHuS server information.
    • --version
    • Show version number and exit.
    • -h
    • --help
    • Show help message and exit.

Tests

To run the tests on sentinelsat:

.. code-block:: bash

git clone https://github.com/sentinelsat/sentinelsat.git
cd sentinelsat
pip install -e .[dev]
pytest -v

By default, prerecorded responses to Copernicus Open Access Hub queries are used to not be affected by its downtime. To allow the tests to run actual queries against the Copernicus Open Access Hub set the environment variables

.. code-block:: bash

export DHUS_USER=<username>
export DHUS_PASSWORD=<password>

and add --disable-vcr to pytest arguments. To update the recordings use --vcr-record with once, new_episodes or all. See vcrpy docs <https://vcrpy.readthedocs.io/en/latest/usage.html#record-modes>_ for details.

Documentation

To build the documentation:

.. code-block:: bash

git clone https://github.com/sentinelsat/sentinelsat.git
cd sentinelsat
pip install -e .[dev]
cd docs
make html

The full documentation is also published at http://sentinelsat.readthedocs.io/.

Changelog

See CHANGELOG <CHANGELOG.rst>. You can also use GitHub's compare view to see the changes in the master branch since last release <https://github.com/sentinelsat/sentinelsat/compare/v0.14...master>.

Contributors

We invite anyone to participate by contributing code, reporting bugs, fixing bugs, writing documentation and tutorials and discussing the future of this project. Please check CONTRIBUTE.rst <CONTRIBUTE.rst>_.

For a list of maintainers and contributors please see AUTHORS.rst <AUTHORS.rst>_ and the contributor graph <https://github.com/sentinelsat/sentinelsat/graphs/contributors>_.

License

GPLv3+

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].