Google Earth Engine Python API: 地图函数

Google Earth Engine Python API: map function

是否使用地球引擎地图功能,例如在 Earth Engine 中 Python API 可以使用 Python 映射功能,在图像集合上映射波段列表?这两种类型之间是否有可能 Python 混淆?

Does the use of the Earth Engine map function, e.g. map a list of bands over an Image Collection, in the Earth Engine Python API have access to the Python map function?

如果你愿意,你当然可以在另一个里面使用一个。但这取决于 client vs. server 的常见 Earth Engine 编程考虑因素——例如,当您映射到特征集合,所以写 map(function, feature.get('p')) 永远行不通。

但是,如果您已经有了客户端 list(或其他序列),那么没有什么可以阻止您在 that[=] 上使用 Python map 27=] 在映射函数中。

Is there a possibility of Python mixing up between the two types?

没有。一个是全局内置函数,另一个是 ee.List 类型的方法。 Python,你用的是哪一个,总是很明确的;它们恰好拼写相同; x.mapmap 是完全分开的。