Home

Awesome

From GEE to NPY

A GEE python-api script for downloading parcel-level Sentinel-1 / Sentinel-2 time series as NumPy

Returns array of size T x C x N

Setup

Install earthengine-api using

pip install earthengine-api

Follow instructions here to authenticate

General processing workflow

Example

Requirements


# Sentinel-1 
get_data.py --rpg_file sample_farm.geojson --label_names ['CODE_GROUP'] --id_field ID_PARCEL --output_dir C:/downloads/s1_data --col_id COPERNICUS/S1_GRD --footprint_id [154] --start_date 2021-01-01 --end_date 2021-01-31 --speckle_filter mean 

# Sentinel-2
get_data.py --rpg_file sample_farm.geojson --label_names ['CODE_GROUP'] --id_field ID_PARCEL --output_dir C:/downloads/s2_data --col_id COPERNICUS/S2_SR  --footprint_id ["30UVU"] --start_date 2021-01-01 --end_date 2021-01-31 

Notes

Footprint argument is set to None by default. However to avoid using partly covered scenes when one can have full Sentinel-1/2 scenes, pre-run Example_findFootprint.ipynb

<img src="img/sample_footprint.jpg" alt="sample S1/S2 footprints" width="500">

Contributor

Credits