Closed bonushenricus closed 1 year ago
Hello when I try to add my dem this is the response:
Error in !.all.equal(diff(terra::res(dem)), 0) : invalid argument type
My original raster come from GRASS with two different resolution for x and y In terra I made a resample
dem_granello <- read_RAST("dem") terra::res(dem_granello)
[1] 0.2000194 0.2000047
dem_granello_dynatop <- rast(res=0.2, xmin=terra::xmin(dem_granello), xmax=terra::xmax(dem_granello), ymin=terra::ymin(dem_granello), ymax=terra::ymax(dem_granello)) dem_granello_dynatop <- terra::resample(dem_granello,dem_granello_dynatop,method="bilinear") terra::res(dem_granello_dynatop)
[1] 0.2 0.2
Sorry. it actually works. i wrong dem added in dynatopgis
Hello when I try to add my dem this is the response:
My original raster come from GRASS with two different resolution for x and y In terra I made a resample