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

Method arrayFlatten

python/ee/image.py:853–876  ·  view source on GitHub ↗

Returns an image of scalar pixels with one band per element of the array. Converts a single-band image of equal-shape multidimensional pixels to an image of scalar pixels, with 1 band for each element of the array. Args: coordinateLabels: Name of each position along each axis. Fo

(
      self,
      coordinateLabels: _arg_types.List,  # pylint: disable=invalid-name
      separator: _arg_types.String | None = None,
  )

Source from the content-addressed store, hash-verified

851 )
852
853 def arrayFlatten(
854 self,
855 coordinateLabels: _arg_types.List, # pylint: disable=invalid-name
856 separator: _arg_types.String | None = None,
857 ) -> Image:
858 """Returns an image of scalar pixels with one band per element of the array.
859
860 Converts a single-band image of equal-shape multidimensional pixels to an
861 image of scalar pixels, with 1 band for each element of the array.
862
863 Args:
864 coordinateLabels: Name of each position along each axis. For example, 2x2
865 arrays with axes meaning 'day' and 'color' could have labels like
866 [['monday', 'tuesday'], ['red', 'green']], resulting in band
867 names'monday_red', 'monday_green', 'tuesday_red', and 'tuesday_green'.
868 separator: Separator between array labels in each band name.
869
870 Returns:
871 An ee.Image.
872 """
873
874 return apifunction.ApiFunction.call_(
875 self.name() + '.arrayFlatten', self, coordinateLabels, separator
876 )
877
878 def arrayGet(self, position: _arg_types.Image) -> Image:
879 """Returns the value at the given position in each band of the input image.

Callers 6

test_array_flattenMethod · 0.80
dcsFunction · 0.80
qualityMosaicFunction · 0.80

Calls 2

nameMethod · 0.95
call_Method · 0.80

Tested by 1

test_array_flattenMethod · 0.64