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

Method select

python/ee/imagecollection.py:108–123  ·  view source on GitHub ↗

Select bands from each image in a collection. Args: selectors: An array of names, regexes or numeric indices specifying the bands to select. names: An array of strings specifying the new names for the selected bands. If supplied, the length must match the number of b

(
      self, selectors: Any, names: Any | None = None, *args
  )

Source from the content-addressed store, hash-verified

106 @_utils.accept_opt_prefix('opt_names')
107 # pylint: disable-next=keyword-arg-before-vararg
108 def select(
109 self, selectors: Any, names: Any | None = None, *args
110 ) -> ImageCollection:
111 """Select bands from each image in a collection.
112
113 Args:
114 selectors: An array of names, regexes or numeric indices specifying the
115 bands to select.
116 names: An array of strings specifying the new names for the selected
117 bands. If supplied, the length must match the number of bands selected.
118 *args: Selector elements as varargs.
119
120 Returns:
121 The image collection with selected bands.
122 """
123 return self.map(lambda img: img.select(selectors, names, *args))
124
125 # Disable argument usage check; arguments are accessed using locals().
126 # pylint: disable=unused-argument,g-bad-name

Callers 2

GetTrendyMapIdFunction · 0.95
ComputePolygonTimeSeriesFunction · 0.95

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected