H3 Earth Engine Image Export to Drive
A quick reference and format template for exporting raster data from Google Earth Engine to Google Drive.
Basic
Export.image.toDrive({
image:,
region:,
from PIL import Image | |
from PIL.ExifTags import TAGS, GPSTAGS | |
def get_exif_data(image): | |
"""Returns a dictionary from the exif data of an PIL Image item. Also converts the GPS Tags""" | |
exif_data = {} | |
info = image._getexif() | |
if info: | |
for tag, value in info.items(): | |
decoded = TAGS.get(tag, tag) |
H3 Earth Engine Image Export to Drive
A quick reference and format template for exporting raster data from Google Earth Engine to Google Drive.
Basic
Export.image.toDrive({
image:,
region:,
// Load VIIRS NDVI - to be summarized by longitude bins. | |
var viirsNdvi = ee.ImageCollection("NOAA/VIIRS/001/VNP13A1") | |
.select('NDVI').first(); | |
// Load lat/lon image - select the longitude band. | |
var latLon = ee.Image.pixelLonLat().select('longitude'); | |
// Make a list of longitude bin start values. | |
var step = 5; // longitude step | |
var lonStarts = ee.List.sequence(-90, 90-step, step); |
# This script relies on the magick library, see this vignette for more information: | |
# https://cran.r-project.org/web/packages/magick/vignettes/intro.html | |
# | |
# If you have Windows or Mac OS, I believe ImageMagick STL is integrated with the CRAN distribution | |
# of the R magick library. If on Linux, see the "Build from source" section of the above URL | |
# | |
# This script will add year annotations from GIF animations generated and downloaded from the | |
# LT-GEE Time Series Animator open access Earth Engine App: | |
# https://emaprlab.users.earthengine.app/view/lt-gee-time-series-animator | |
# |
# R script to add date annotations to a time series GIF created in Earth Engine. | |
library(magick) | |
gif = "C:/Users/braatenj/Downloads/africa.gif" | |
dates = c( | |
'Jan-08', | |
'Jan-24', | |
'Feb-09', | |
'Feb-25', |