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:,
# 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', |
""" | |
Copyright 2020 Justin Braaten | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
https://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
/** | |
* @license | |
* Copyright 2020 Google | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |