ee_extra.Image.basic.maxvalue#
- ee_extra.Image.basic.maxvalue(x, scale=None)[source]#
Get a maximum value.
Returns the maximum value of an ee.Image. The return value will be an approximation if the polygon (x.geometry()) contains too many pixels at the native scale.
- Parameters:
x (
Image
) – An ee.Image.scale (
Optional
[float
]) – A nominal scale in meters of the projection to work in. Defaults image x$geometry()$projection()$nominalScale().
- Return type:
float
- Returns:
An float number describing the x (ee.Image) maximum value.
Examples
>>> import ee >>> import ee_extra >>> ee.Initialize() >>> img = ee.Image.random() >>> maxvalue(img)