Skip to main content

An ESA Sentinel data pipeline.

Project description

getsentinel

A download, process, and masking pipeline for ESA Sentinel-X data.

Author: G. Worrall

Requirements:

              Python 3.6
              requests
              clint
              pyshp
              geojson
              shapely
              osgeo
              numpy
              rasterio

Example Usage:

from getsentinel import gs_downloader, gs_stacker
from datetime import date

# download Sentinel-2 products for a region of interest.
start_date = date(2018, 5, 6)
end_date = date(2018, 5, 8)
ROI = '/path/to/roi.geojson'

query = gs_downloader.Query('S2', start_date, end_date, ROI)
query.product_details('BEST', cloudcoverlimit=50) 

# submit a query to the ESA database
hub = gs_downloader.CopernicusHubConnection()
total, products = hub.submit_query(query)
# download all the returned products
hub.download_products(products)

# process all the downloaded products
processed = gs_processor.batch_process(products)

# extract the data into a stack
stacker = gs_stacker.Stacker(products,
                             ROI,
                             start_date,
                             end_date)

# set the bands to extract from the S2 products
stacker.set_bands(s2_band_list=['TCI'], s2_resolution = 10)
# check the Sentinel weather masks for ROI coverage
stacker.check_weather(cloud=20, snow=20)

data = stacker.generate_stacks()

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

getsentinel-0.1.tar.gz (24.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

getsentinel-0.1-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

getsentinel-0.1-py2.py3-none-any.whl (26.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file getsentinel-0.1.tar.gz.

File metadata

  • Download URL: getsentinel-0.1.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for getsentinel-0.1.tar.gz
Algorithm Hash digest
SHA256 55afa6b359b9635bca9484f9150328fe6618dfaddbbcb0cb5d1652f8df897cc8
MD5 21150b5476291e26a3a451bc4f66139c
BLAKE2b-256 18fe6f27ec8ff2eae833d686ee0773001c9dce9d62917914875fbf26f923ec35

See more details on using hashes here.

File details

Details for the file getsentinel-0.1-py3-none-any.whl.

File metadata

  • Download URL: getsentinel-0.1-py3-none-any.whl
  • Upload date:
  • Size: 26.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for getsentinel-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5dd6910b0b418f157e25c80cbc7a0b1f0c389d30a01e91bb5afe3f644889fece
MD5 b58d50283c44cfc9385fe6d61a60ddbc
BLAKE2b-256 7fb47e8def5ee50180965e500fdf6627457c4779156aff7c0e5b881dccc6a8cf

See more details on using hashes here.

File details

Details for the file getsentinel-0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: getsentinel-0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 26.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for getsentinel-0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 35979187c341a4e1b907680be69ad0692de9516e329613f3819b0e7634425d5f
MD5 b939b360f56b89df5547fa2ab96f1935
BLAKE2b-256 c6e3332ce9bce2fc0f2e855a90febf65bce8eb96f18e2851ec32e5412e6dbdfd

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