geetools.List.ListAccessor.product#

geetools.List.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 (geetools.types.ee_list) – The list to compute the cartesian product with.

Returns:

A list of strings corresponding to the cartesian product.

Return type:

ee.List

Examples

import ee, geetools

ee.Initialize()

l1 = ee.List(["1", "2", "3"])
l2 = ee.List(["a", "b", "c"])

l1.geetools.product(l2).getInfo()