[GRASS-user] d.rast.edit increase the dimension of cell

I had to know that whether d.rast.edit allows us to increase the dimension of
each cell?
For example, if a cell is currently 0.001 x 0.001 m, is it possible to
multiply these dimensions and the z value for each cell by 1000, resulting
in a raster that preserves the morphology of the DEM but is at 1 m
resolution?

--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html

On Thu, 23 Aug 2018, jaindamini1111 wrote:

I had to know that whether d.rast.edit allows us to increase the dimension
of each cell? For example, if a cell is currently 0.001 x 0.001 m, is it
possible to multiply these dimensions and the z value for each cell by
1000, resulting in a raster that preserves the morphology of the DEM but
is at 1 m resolution?

   As a non-expert I would look at changing the cell size in the region. I'd
do this by reprojecting to a new region that was the same as the 1mm x 1mm
region but with cell sizes 1m x 1m. That way you have both maps.

Rich

It may be helpful if you describe what you are doing, but my guess is that d.rast.edit is not what you want. You may want to look either at some resampling modules (e.g. r.resamp.stats) or it actually sounds more like you want r.region which is good in case you actually want to preserve the number of cells but just change the resolution (and extent). To get the (cell) values to what you want, use r.mapcalc, something like:

r.mapcalc expression=“new = 1000 * old”

Let us know how that goes.

Vaclav

On Thu, Aug 23, 2018 at 9:42 AM jaindamini1111 <jaindamini1111@gmail.com> wrote:

I had to know that whether d.rast.edit allows us to increase the dimension of
each cell?
For example, if a cell is currently 0.001 x 0.001 m, is it possible to
multiply these dimensions and the z value for each cell by 1000, resulting
in a raster that preserves the morphology of the DEM but is at 1 m
resolution?


Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user