Hello,

I have the same problem but I'm not sure how to use the transformRaster() function.

How to find the elevation.key for the DEM that should be subtracted from the active DEM ?

Also, do you have an example with this function (it might help me)

here is my unfinished code :

`chunk.buildDem(source_data=Metashape.PointCloudData, interpolation=Metashape.DisabledInterpolation) # first DEM`

chunk.elevation.label = "Initial Elevation"

chunk.buildDem(source_data=Metashape.PointCloudData, interpolation=Metashape.Extrapolated, classes=Metashape.Ground) # ground DEM to subtract to the other

chunk.elevation.label = "Ground Elevation"

chunk.elevation = None

chunk.transformRaster(source_data=Metashape.ElevationData, subtract=True, ...)