Skip to content

Python module to download and preprocess Sentinel-2 data from Theia platform at tile-level

Notifications You must be signed in to change notification settings

j-desloires/sentinel2-process

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The purpose of this module is to download and preprocess Sentinel-2 satellite imagery data directly from Theia-land from given dates and a tile name or bounding box.

Prerequisites

Environment configuration

Using anaconda, create the environment using :

cd sentinel2-process
conda env create -f environment.yml
conda activate sentinel2-process

Usage

Code to download and preprocess a tile for Land Use and Land Cover analysis is summarized into the script pipeline_land_cover.py.

You must provide the following paths to execute a code from the following files :

  • A vector folder where you have :

    • Ground truth shapefile : Objects ID and labels to use for land cover training. The projection should be in your UTM (e.g 'espg:32631' for the tile TC31J (France)).
    • Polygon of the Area of Interest : shapefile that we be used to cropping the images with respect to your study zone.
  • Folder where Orfeo Toolbox is installed

  • Path to save the output GEOTIFFS images

Description of the outputs

The tile is cropped with respect to the extent of a given shapefile (script main.py, with Haute-Garonne as example in the variable mask_data) :

  • mask_R10_crop.tif : Binary cloud masks at 10 meters (int16)
  • mask_R20_crop.tif : Binary cloud masks at 20 meters (int16)
  • GFstack_X_crop.tif : Gap filled images with a given band X at 10 meters using linear interpolation (OTB) (float32)
  • GFstack_SI_X_crop.tif : Gap filled images with a given band X at 20 meters, superimposed at 10 meters, using linear interpolation (OTB) (float32)
  • Class_ID_crop.tif : ID of the class from the training dataset to predict for supervised task (script main.py) (int16)
  • Object_ID_crop.tif : ID of the objects from the training dataset (int16)
  • dates.csv : Csv file with acquisition dates that corresponds to the time index of each .tif image (except Class_ID and Objects_ID)

About

Python module to download and preprocess Sentinel-2 data from Theia platform at tile-level

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages