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,
)
| 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. |