Earth Engine has introduced
noncommercial quota tiers to safeguard shared compute resources and ensure reliable performance for everyone. Noncommercial projects use the Community Tier by default, though you can change a project's tier at any time.
ee.Array.min
Stay organized with collections
Save and categorize content based on your preferences.
outlined_flag
The min function selects the minimum value between two arrays on an element-wise basis.
It takes two arrays, left and right, as arguments and returns an array.
Examples in both JavaScript and Python demonstrate the element-wise minimum selection.
On an element-wise basis, selects the minimum of the first and second values.
Usage Returns Array. min (right)Array
Argument Type Details this: left Array The left-hand value. rightArray The right-hand value.
Examples
Code Editor (JavaScript)
var empty = ee . Array ([], ee . PixelType . int8 ());
print ( empty . min ( empty )); // []
print ( ee . Array ([ 0 , 1 , 2 , 3 ]). min ( ee . Array ([ - 1 , 3 , 0 , 2 ]))); // [-1,1,0,2]
Python setup
See the
Python Environment page for information on the Python API and using
geemap for interactive development.
import ee
import geemap.core as geemap
Colab (Python)
empty = ee . Array ([], ee . PixelType . int8 ())
display ( empty . min ( empty )) # []
# [-1, 1, 0, 2]
display ( ee . Array ([ 0 , 1 , 2 , 3 ]) . min ( ee . Array ([ - 1 , 3 , 0 , 2 ])))
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],[]]