Skip to content
Rodrigo E. Principe edited this page Nov 1, 2018 · 3 revisions

This module holds batch processes. It's divided in scopes. At the moment there is only one:

NOTE: Import the module:

var batch = require('users/fitoprincipe/geetools:batch');

Download

ImageCollection.toAsset(collection, assetFolder, options)

Download every image of an ee.ImageCollection to an Asset.

IMPORTANT: It can't create folders or collections in assets, so they must be created before executing this function

Argument options:

  • name: name of the ImageCollection (not the images inside)
  • scale
  • maxPixels
  • region: if this argument is not defined or null it will try to use each image footprint

ImageCollection.toDrive(collection, folder, options)

Download every image of an ee.ImageCollection to Google Drive.

Argument options:

  • name: If specified, every image will have it as a prefix (example: name_image_1, name_image_2, etc)
  • scale
  • maxPixels
  • region: if this argument is not defined or null it will try to use each image footprint
  • type: one of float, byte, int, double, long, short, int8, int16, int32, int64, uint8 , uint16, uint32
You can’t perform that action at this time.