product#
- geetools.ListAccessor.product(other)#
Compute the cartesian product of 2 list.
Values will all be considered as string and will be joined with no spaces.
- Parameters:
other (list | ee.List) – The list to compute the cartesian product with.
- Returns:
A list of strings corresponding to the cartesian product.
- Return type:
Examples
import ee, geetools from geetools.utils import initialize_documentation initialize_documentation() l1 = ee.List(["1", "2", "3"]) l2 = ee.List(["a", "b", "c"]) l1.geetools.product(l2).getInfo()
['1a', '1b', '1c', '2a', '2b', '2c', '3a', '3b', '3c']