geetools.batch.image.toDriveByFeature#

geetools.batch.image.toDriveByFeature(image, collection, folder, namePattern, datePattern=None, scale=1000, dataType='float', verbose=False, **kwargs)#

Export an image clipped by features (Polygons). You can use the.

same arguments as the original function ee.batch.export.image.toDrive.

Parameters:

Parameters:
  • image (ee.Image) – image to clip

  • collection (ee.FeatureCollection) – feature collection

  • folder (str) – same as ee.Export

  • namePattern (str) – a name pattern using image and/or feature properties between brackets. Example: ‘{ID} {a_feat_prop} {an_image_prop}’

  • datePattern (str) – a date pattern to use for {system_date} pattern in name

  • scale (int) – same as ee.Export. Default to 1000

  • dataType – as downloaded images must have the same data

type in all

bands, you have to set it here. Can be one of: “float”, “double”, “int”, “Uint8”, “Int8” or a casting function like ee.Image.toFloat

Returns:

a list of all tasks (for further processing/checking)

Return type:

list