ee.Image.clipToBoundsAndScale

Clips an image to the bounds of a Geometry, and scales the clipped image to a particular size or scale.

UsageReturns
Image.clipToBoundsAndScale(geometry, width, height, maxDimension, scale)Image
ArgumentTypeDetails
this: inputImage

The image to clip and scale.

geometryGeometry, default: null

The Geometry to clip the image to. The image will be clipped to the bounding box, in the image's projection, of this geometry.

widthInteger, default: null

The width to scale the image to, in pixels. Must be provided along with "height". Exclusive with "maxDimension" and "scale".

heightInteger, default: null

The height to scale the image to, in pixels. Must be provided along with "width". Exclusive with "maxDimension" and "scale".

maxDimensionInteger, default: null

The maximum dimension to scale the image to, in pixels. Exclusive with "width", "height" and "scale".

scaleFloat, default: null

If scale is specified, then the projection is scaled by dividing the specified scale value by the nominal size of a meter in the image's projection. Exclusive with "width", "height" and "maxDimension".

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!