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

Method arrayAccum

python/ee/image.py:771–797  ·  view source on GitHub ↗

Accumulates elements of each array pixel along the given axis. Accumulates elements of each array pixel along the given axis, by setting each element of the result array pixel to the reduction of elements in that pixel along the given axis, up to and including the current position on th

(
      self,
      axis: _arg_types.Integer,
      reducer: _arg_types.Reducer | None = None,
  )

Source from the content-addressed store, hash-verified

769 return apifunction.ApiFunction.call_(self.name() + '.and', self, image2)
770
771 def arrayAccum(
772 self,
773 axis: _arg_types.Integer,
774 reducer: _arg_types.Reducer | None = None,
775 ) -> Image:
776 """Accumulates elements of each array pixel along the given axis.
777
778 Accumulates elements of each array pixel along the given axis, by setting
779 each element of the result array pixel to the reduction of elements in that
780 pixel along the given axis, up to and including the current position on the
781 axis.
782
783 May be used to make a cumulative sum, a monotonically increasing sequence,
784 etc.
785
786 Args:
787 axis: Axis along which to perform the cumulative sum.
788 reducer: Reducer to accumulate values. Default is SUM, to produce the
789 cumulative sum of each vector along the given axis.
790
791 Returns:
792 An ee.Image.
793 """
794
795 return apifunction.ApiFunction.call_(
796 self.name() + '.arrayAccum', self, axis, reducer
797 )
798
799 def arrayArgmax(self) -> Image:
800 """Returns the positional indices of the maximum value of array values.

Callers 1

test_array_accumMethod · 0.80

Calls 2

nameMethod · 0.95
call_Method · 0.80

Tested by 1

test_array_accumMethod · 0.64