Skip to content
Rodrigo E. Principe edited this page Oct 4, 2019 · 3 revisions

image

getValue(image, point, scale)

Get image band's values from point at certain scale. Return a ee.Dictionary

replaceBand(image, replace_band, add_band)

Replace an image band with another band. Arguments:

  • replace_band: the name of the band to replace (str)
  • add_band: the band that will replace the replace_band (one band ee.Image)

removeBands(image, bands)

Remove bands from an image.

addSuffix(suffix, bands)

Add a suffix to the specified bands. Return a function for mapping over an ImageCollection

addPrefix(prefix, bands)

Add a prefix to the specified bands. Return a function for mapping over an ImageCollection

makeName(image, pattern, datePattern)

Make a name with the given pattern. The pattern must contain the properties to replace between curly braces.

Parameters

  • pattern

    There are 2 special words:

    • system_date: replace with the date of the image formatted with datePattern
    • id or ID: the image id. If None, it'll be replaced with 'id'
  • datePattern: a pattern for dates. Defaults to yyyyMMdd

Pattern example (supposing each image has a property called city): 'image from {city} on {system_date}'