The positions of values from a raster are transformed to another position based on a scale factor

raster.transform(x, d_tx, scale_factor, return_sp = FALSE)

Arguments

x

a raster with values that should be transformed

d_tx

a data frame containing the transformation vectors from obtained from the bunwarpjDisplacementField() function

scale_factor

the scale factor (numeric) to adjust the displacement magnitudes

return_sp

(logical) TRUE to return a SpatialPointsDataFrame based on the CRS projection of the raster

Value

A data frame of the scaled displacements