Skip to content

Instantly share code, notes, and snippets.

@ciskoh
ciskoh / download_dataset_gee.py
Last active March 30, 2021 11:47
function to download sentinel image ndvi and global land cover map for small areas
# -*- coding: utf-8 -*-
""""Functions to retrieve data from Google Earth Engine API
The main function to use is get_gee_data() that has 3 modes:
1_ sentinel_raw download cloud free sentinel image between given dates
and for given bands.
2_ global_land_cover download the Copernicus global land cover map at 100m resolution.
3_ ndvi downloads the monthly ndvi average between given period (still from sentinel, so only after 2017
You need to be registered with google earth engine to use it(Free and quick)