Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 1.8 KB

README.md

File metadata and controls

37 lines (22 loc) · 1.8 KB

Sentinel download script

This script is an example how to find and download large quantities of Sentinel-2 images using Python and the sentinelsat library.

The script works only for the Finnish Finhub API, or other national mirrors that use the same API. It does however not work for the Copernice Space Data Ecosystem. Check CSC Earth Observation guide for alternative ways of downloading Sentinel data from the CDSE.

Another option for similar task is to use STAC .

Running

On local computer just install the sentinelsat library first.

In Puhti sentinelsat is included in the geoconda module, which must be loaded before running the script.

module load geoconda
python sentinelsat_download_from_finhub.py

You can run the script simply on login-node for smaller amounts of data.

For bigger amounts of data you can use screen or interactive session.

Unzipping

As the Python unzipping is a little complicated with files over 1GB, we recommend using bash commands to unzip the files

Unzip all files to the current directory unzip '*.zip

Unzip all files to current directory and delete them at the same time find . -depth -name '*.zip' -execdir unzip -n {} \; -delete

Things to consider

  • Finhub API has data limited to Nordics only, as well as only some chosen data products. For more options, check the Copernicus Data Space ecosystem
  • If the area of interest is in the middle of two UTM zones, the script often downloads the same image in two different projections. You can specify the UTM zone if you do not want to download duplicates