Skip to content

Instantly share code, notes, and snippets.

@jdbcode
Created February 3, 2019 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdbcode/15825f18d65df4a7efcfa5412727955a to your computer and use it in GitHub Desktop.
Save jdbcode/15825f18d65df4a7efcfa5412727955a to your computer and use it in GitHub Desktop.

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:,
  description:,
  folder:,
  fileNamePrefix:,
  crs:,
  maxPixels:
});```


All

```Export.image.toDrive({
  image:,
  description:,
  folder:,
  fileNamePrefix:,
  dimensions:,
  region:,
  scale:,
  crs:,
  crsTransform:,
  maxPixels:,
  shardSize:,
  fileDimensions:,
  skipEmptyTiles:,
  fileFormat:,
  formatOptions:
});```

Notes

`crsTransform` If working with USGS NLCD products, set as the following so that pixel corners line up.

crsTransform: `[30.0, 0, 15.0, 0, -30.0, 15.0]`

`crs`

CONUS Albers: 'EPSG:5070'

`maxPixels` the max is: `1e13`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment