MCPcopy
hub / github.com/google/earthengine-api / clipToCollection

Method clipToCollection

python/ee/image.py:1437–1453  ·  view source on GitHub ↗

Clips an image to a FeatureCollection. The output bands correspond exactly the input bands, except data not covered by the geometry of at least one feature from the collection is masked. The output image retains the metadata of the input image. Args: collection: The FeatureCo

(self, collection: _arg_types.FeatureCollection)

Source from the content-addressed store, hash-verified

1435 )
1436
1437 def clipToCollection(self, collection: _arg_types.FeatureCollection) -> Image:
1438 """Clips an image to a FeatureCollection.
1439
1440 The output bands correspond exactly the input bands, except data not covered
1441 by the geometry of at least one feature from the collection is masked. The
1442 output image retains the metadata of the input image.
1443
1444 Args:
1445 collection: The FeatureCollection to clip to.
1446
1447 Returns:
1448 An ee.Image.
1449 """
1450
1451 return apifunction.ApiFunction.call_(
1452 self.name() + '.clipToCollection', self, collection
1453 )
1454
1455 def cluster(
1456 self,

Callers 3

Calls 2

nameMethod · 0.95
call_Method · 0.80

Tested by 1