extremeValues | R Documentation |
Returns the minimum or maximum value of an ee.Image. The return value will be an approximation if the polygon (area of the ee.Image) contains too many pixels at the native scale.
`ee$Image$Extra_maxValue(x, ...)`
`ee$Image$Extra_minValue(x, ...)`
x |
ee$Image to analyze. |
... |
Additional arguments for specifying the mode and sampling. See details for more information. |
The ...
argument can include the following:
modeCharacter. Indicates the geometry over which to reduce data. Options: "Rectangle" (default) or "Points".
sample_sizeNumeric. Number of points to be created. Relevant only if mode is "Points".
The "Rectangle" mode uses the Image system:footprint, while the "Points" mode samples points over the Image system:footprint.
A number representing the minimum or maximum value.
## Not run:
library(rgee)
library(rgeeExtra)
ee_Initialize()
extra_Initialize()
image <- ee$ImageCollection$Dataset$LANDSAT_LC08_C01_T1$first()[["B1"]]
# max values
ee$Image$Extra_maxValue(image)
ee$Image$Extra_maxValue(image, mode = "Points", sample_size = 2)
# min values
ee$Image$Extra_minValue(image)
ee$Image$Extra_minValue(image, mode = "Points")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.