getMany#

geetools.ee_dictionary.DictionaryAccessor.getMany(list)#

Extract values from a list of keys.

Parameters:

list (DictionaryAccessor.getMany.list | ee.List) – A list of keys.

Returns:

A list of values.

Return type:

ee.List

Examples

import ee, geetools
from geetools.utils import initialize_documentation

initialize_documentation()

d = ee.Dictionary({"foo": 1, "bar": 2, "baz": 3})
d = d.geetools.getMany(["foo", "bar"])
d.getInfo()
[1, 2]