Sentinel-2 data download

Set directory

Authentification to Copernicus Open Access Hub

The Copernicus Open Access Hub and probably most Data Hubs require authentication.

You can provide your credentials with SentinelAPI(your username , your password)

Set region of interest

1. Open ROI shapefile

2. Reproject to WGS 84 if necessary

3. Save ROI (WGS 84) as GeoJSON file

4. Set footprint

Set period of interest

Set cloud cover

To avoid downloading too cloudy images

Set product type

Choose between Level-1C (S2MSI1C) or Level-2A (S2MSI2A)

Search by polygon, time, and SciHub query keywords

Plot footprint of the products

Select products of a specific Sentinel-2 tile

Download products

Copernicus Open Access Hub no longer stores all products online for immediate retrieval. Offline products can be requested from the Long Term Archive (LTA) and should become available within 24 hours. Copernicus Open Access Hub’s quota currently permits users to request an offline product every 30 minutes.

A product’s availability can be checked by using the is_online() convenience method.

The retrieval of offline products from the LTA can be triggered using trigger_offline_retrieval().

Define the filter function to select files (to be excluded in this case)