Google Earth Engine (GEE) - use of ee.image.cumulativeCost function (multi-band image value becomes 0)

Updated ee.Image.cumulativeCost to be able to handle multi-band cost images.
Data used:
Copernicus DEM GLO-30: Global 30m Digital Elevation Model
has five bands:
cumdem
Image (5 bands)
type: Image
bands: List (5 elements)
0: “DEM”, double, EPSG:4326, 3x3 px
1: “EDM”, double, EPSG:4326, 3x3 px
2: “FLM”, double, EPSG:4326, 3x3 px
3: “HEM”, double, EPSG:4326, 3x3 px
4: “WBM”, double, EPSG:4326, 3x3 px

The main purpose of this function is to remove all the multi-band image values ​​from the multi-band image to 0, that is, if
you input so many bands, you can select one of the bands as the mapping area, and then let it remove the area. Image value, make it 0.

cumulativeCost(source, maxDistance, geodeticDistance)
Computes a cumulative cost map based on an image containing costs to traverse each pixel and an image containing source locations.

Each output band represents the cumulative cost over the corresponding input cost band.

Arguments:
this:cost (Image):
An image representing the cost

Guess you like

Origin blog.csdn.net/qq_31988139/article/details/129645976