Skip to main content

Downloader for Sentinel-2 from aws.

Project description

Downloader for Sentinel-2 data.

Pipelines Coverage Documentation

For detailed information, refer to the documentation. See also the latest coverage report and the pytest HTML report.

Feature overview

The S2Downloader allows to download Sentinel-2 L2A data from the cost-free element84 AWS Amazon Cloud server. It specifically serves the purpose to download data for user-defined area of interests (AOI), defined by a bounding box or whole tiles which are the original data product provided by ESA.

Features

Features on Sentinel-2 tile level

  • download atmospheric corrected L2A Sentinel-2 thumbnail, overview, and data from AWS

  • provide single date or time range for finding data at the server

  • select which individual bands to download, the following bands are supported: "coastal", "blue", "green", "red", "rededge1", "rededge2", "rededge3", "nir", "nir08", "nir09", "swir16", "swir22"

  • provide UTM zone, latitude band and grid square to download whole tiles

Features on AOI level

  • input data: configuration json file

  • customizable filtering for noData

  • optional: customizable mask SCL classes (default masked classes: clouds shadow, clouds, cirrus -> 3, 7, 8, 9, 10), all available classes:

    • 0 - No data

    • 1 - Saturated / Defective

    • 2 - Dark Area Pixels

    • 3 - Cloud Shadows

    • 4 - Vegetation

    • 5 - Bare Soils

    • 6 - Water

    • 7 - Clouds low probability / Unclassified

    • 8 - Clouds medium probability

    • 9 - Clouds high probability

    • 10 - Cirrus

    • 11 - Snow / Ice

  • mosaic data from different tiles (same utm zone) into one tif file

  • resample bands to user-defined target resolution

  • select resampling method

Features for saving the results

  • define output location

  • save thumbnails for the available scenes

  • save overviews for the available scenes

Installation

Install S2Downloader

Usage

Run with relative or absolute path to config json file:

S2Downloader --filepath "path/to/config.json"

Relative paths in the config file are supposed to be relative to the location of the repository.

See usage for more details about the config file.

Expected Output

The downloaded raster files and overviews are saved in .tif format, the thumbnails are saved as .jpg. Additional information is saved in a.json and a logging file.

See usage for more details about the output files.

History / Changelog

You can find the protocol of recent changes in the S2Downloader package here.

Contribution

Contributions are always welcome. Please contact us, if you wish to contribute to the S2Downloader.

Credits

FERNLOGO

S2Downloader has been developed by FERN.Lab, the Helmholtz Innovation Lab “Remote sensing for sustainable use of resources”, located at the Helmholtz Centre Potsdam, GFZ German Research Centre for Geosciences. FERN.Lab is funded by the Initiative and Networking Fund of the Helmholtz Association.

This package was created with Cookiecutter and the fernlab/cookiecutter-pypackage project template.

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

s2downloader-1.2.1.tar.gz (61.6 kB view details)

Uploaded Source

File details

Details for the file s2downloader-1.2.1.tar.gz.

File metadata

  • Download URL: s2downloader-1.2.1.tar.gz
  • Upload date:
  • Size: 61.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for s2downloader-1.2.1.tar.gz
Algorithm Hash digest
SHA256 3124fa85a5d39e4ae262b411ee3642a5e119ca30d6a568a6cb63cfb84729b20f
MD5 3f089fdfe2f0d21e7e80c55f4b3cdfd9
BLAKE2b-256 f2bb026c11a00cba90137eaeeb7102cdc8215b4a6fa43db562e20aac0fd70085

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page