This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""static.py | |
An example of fetching an image from the Mapbox Static Image API with a | |
matching "world file" for georeferencing the image. | |
""" | |
import os | |
import mercantile | |
import requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import glob | |
import pyproj | |
import shapely | |
import shapely.geometry | |
import shapely.ops | |
import fiona | |
import rasterio | |
import rasterio.mask | |
import rasterio.merge |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.