Metadata-Version: 2.4
Name: s2downloader
Version: 1.4.6
Summary: Downloader for Sentinel-2 from aws.
Project-URL: Source code, https://git.gfz-potsdam.de/fernlab/products/s2downloader
Project-URL: Issue Tracker, https://git.gfz-potsdam.de/fernlab/products/s2downloader/-/issues
Project-URL: Documentation, https://fernlab.git-pages.gfz-potsdam.de/products/s2downloader/doc/
Project-URL: Change log, https://git.gfz-potsdam.de/fernlab/products/s2downloader/-/blob/main/HISTORY.rst
Project-URL: Zenodo, https://zenodo.org/record/13123061
Author-email: FernLab <fernlab@gfz.de>
License-Expression: EUPL-1.2
License-File: AUTHORS.rst
License-File: LICENSE
Keywords: copernicus,geospatial,mosaic,multispectral,remote sensing,s2downloader,satellite imagery,sentinel-2
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Science/Research
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.10
Requires-Dist: affine
Requires-Dist: geojson
Requires-Dist: geojson-pydantic
Requires-Dist: geopandas>=1.0
Requires-Dist: geopy
Requires-Dist: numpy>=2.0
Requires-Dist: pydantic
Requires-Dist: pyproj
Requires-Dist: pystac
Requires-Dist: pystac-client
Requires-Dist: rasterio
Requires-Dist: shapely
Provides-Extra: dev
Requires-Dist: numpydoc>=1.7; extra == 'dev'
Requires-Dist: pre-commit; extra == 'dev'
Requires-Dist: pytest-cov; extra == 'dev'
Requires-Dist: pytest-reporter-html1; extra == 'dev'
Requires-Dist: pytest>=3; extra == 'dev'
Requires-Dist: sphinx-argparse; extra == 'dev'
Requires-Dist: sphinx-autodoc-typehints; extra == 'dev'
Requires-Dist: sphinx-rtd-theme; extra == 'dev'
Requires-Dist: sphinx>=4.1.1; extra == 'dev'
Requires-Dist: twine; extra == 'dev'
Requires-Dist: urlchecker==0.0.34; extra == 'dev'
Provides-Extra: doc
Requires-Dist: numpydoc>=1.7; extra == 'doc'
Requires-Dist: sphinx-argparse; extra == 'doc'
Requires-Dist: sphinx-autodoc-typehints; extra == 'doc'
Requires-Dist: sphinx-rtd-theme; extra == 'doc'
Requires-Dist: sphinx>=4.1.1; extra == 'doc'
Provides-Extra: lint
Requires-Dist: pre-commit; extra == 'lint'
Provides-Extra: test
Requires-Dist: pytest-cov; extra == 'test'
Requires-Dist: pytest-reporter-html1; extra == 'test'
Requires-Dist: pytest>=3; extra == 'test'
Requires-Dist: urlchecker==0.0.34; extra == 'test'
Description-Content-Type: text/x-rst

======================
|s2logo| S2Downloader
======================

.. |s2logo| image:: https://fernlab.git-pages.gfz-potsdam.de/products/s2downloader/images/s2downloader_logo.svg
  :target: https://git.gfz-potsdam.de/fernlab/products/s2downloader
  :width: 50px

* Free software: EUPL 1.2
* **Documentation:** https://fernlab.git-pages.gfz-potsdam.de/products/s2downloader/doc/
* Information on how to **cite the S2Downloader Python package** can be found in the
  `CITATION <https://git.gfz-potsdam.de/fernlab/products/s2downloader/-/blob/main/CITATION>`__ file.
* Submit feedback by filing an issue `here <https://git.gfz-potsdam.de/fernlab/products/s2downloader/issues>`__

===============================
Downloader for Sentinel-2 data.
===============================

.. image:: https://git.gfz-potsdam.de/fernlab/products/s2downloader/badges/main/pipeline.svg
        :target: https://git.gfz-potsdam.de/fernlab/products/s2downloader/pipelines
        :alt: Pipelines
.. image:: https://git.gfz-potsdam.de/fernlab/products/s2downloader/badges/main/coverage.svg
        :target: https://fernlab.git-pages.gfz-potsdam.de/products/s2downloader/coverage/
        :alt: Coverage
.. image:: https://img.shields.io/static/v1?label=Documentation&message=GitLab%20Pages&color=orange
        :target: https://fernlab.git-pages.gfz-potsdam.de/products/s2downloader/doc/
        :alt: Documentation
.. image:: https://zenodo.org/badge/832612594.svg
        :target: https://zenodo.org/doi/10.5281/zenodo.13123060
        :alt: DOI
.. image:: https://img.shields.io/badge/Promo-8db427?label=HiRSE&labelColor=005aa0&link=https%3A%2F%2Fgo.fzj.de%2FCodePromo
        :target: https://rg-rse.pages.jsc.fz-juelich.de/hirse-code-promotion/public/HiRSE_Code_Promo_Slideshow.pdf
        :alt: Promo


Feature overview
----------------

The **S2Downloader** allows to download Sentinel-2 L2A data from the from the AWS Public Datasets, the [Sentinel-2 Cloud-Optimized GeoTIFFs](https://registry.opendata.aws/sentinel-2-l2a-cogs/) managed by [element84](https://www.element84.com/). 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, all bands are supported: ``"coastal"``, ``"blue"``, ``"green"``, ``"red"``, ``"rededge1"``, ``"rededge2"``, ``"rededge3"``, ``"nir"``, ``"nir08"``, ``"nir09"``, ``"cirrus"``, ``"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 <https://fernlab.git-pages.gfz-potsdam.de/products/s2downloader/doc/installation.html>`_ S2Downloader


Usage
-----

Run with relative or absolute path to config json file:
::

    s2downloader --filepath "absolute/path/to/config.json"

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

See `usage <https://fernlab.git-pages.gfz-potsdam.de/products/s2downloader/doc/usage.html>`_ 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 <https://fernlab.git-pages.gfz-potsdam.de/products/s2downloader/doc/usage.html>`_ for more details about the output files.

History / Changelog
-------------------

You can find the protocol of recent changes in the S2Downloader package
`here <https://git.gfz-potsdam.de/fernlab/products/s2downloader/-/blob/main/HISTORY.rst>`__.


Contribution
------------

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


Developed by
------------

.. image:: https://fernlab.git-pages.gfz-potsdam.de/products/s2downloader/images/fernlab_logo.svg
  :target: https://fernlab.gfz.de/
  :width: 10 %

S2Downloader has been developed by `FERN.Lab <https://fernlab.gfz.de/>`_, the Helmholtz Innovation Lab "Remote sensing for sustainable use of resources", located at the `GFZ Helmholtz Centre for Geosciences <https://www.gfz.de/en/>`_. FERN.Lab is funded by the `Initiative and Networking Fund of the Helmholtz Association <https://www.helmholtz.de/en/about-us/structure-and-governance/initiating-and-networking/>`_.


Credits
------------

This package was created with Cookiecutter_ and the `fernlab/cookiecutter-pypackage`_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`fernlab/cookiecutter-pypackage`: https://github.com/fernlab/cookiecutter-pypackage
.. _coverage: https://fernlab.git-pages.gfz-potsdam.de/products/s2downloader/coverage/
.. _pytest: https://fernlab.git-pages.gfz-potsdam.de/products/s2downloader/test_reports/report.html
.. _default_config.json: https://git.gfz-potsdam.de/fernlab/products/s2downloader/-/blob/main/data/default_config.json
