Sentinel

In this example, we demonstrate how to retrieve Sentinel satellite data for a specific week in May and process it to generate true-color images.

Data Downoad¤

Python
from sipt.retrieval import CDSE, copy
import os

shapefile = './Landkreis_Wuerzburg.geojson'
start_date = '2024-05-10'
end_date = '2024-05-16'

cdse = CDSE('username', 'password')
cdse.retrieve("./data", CDSE.Collection.SENTINEL_2_L2A, shapefile, start_date, end_date)
copy("./data", "./src", shapefile, ["*_B0[234]_10m*", "*SCL_20m*"], start_date, end_date, 8)

Pre-Processing¤

Python
from sipt.pipeline import preprocess
from sipt.processing.mask import MaskType

files = ["*_B02_10m*", "*_B03_10m*", "*_B04_10m*"]
preprocess("./src", "./processed", shapefile, files, "*SCL_20m*", MaskType.VALUES, [3,8,9,10], num_processes=8)

Post-Processing¤

Python
from sipt.processing import enhance, combine

combine("./processed", "./final", [4, 3, 2])
enhance("./final", "./final")