I think that user should do the conversion (in most cases it needs to be
reinterpolated).
I think that the current behavior is right for many reasons,
Helena
On Apr 30, 2015, at 8:25 AM, Paulo van Breugel p.vanbreu...@gmail.com wrote:
Hi,
When running r.relief (in GRASS7.1) on a integer
Hi,
When running r.relief (in GRASS7.1) on a integer DEM raster, the output
is an integer map. Is this intended behavior? Would it be possible to
have r.relief convert the layer to double precision / float
automatically if the DEM is of CELL type?
Paulo
On Thu, Apr 30, 2015 at 2:25 PM, Paulo van Breugel
p.vanbreu...@gmail.com wrote:
Hi,
When running r.relief (in GRASS7.1) on a integer DEM raster, the output is
an integer map. Is this intended behavior?
It appears to be hardcoded:
raster/r.relief/main.c
int out_type = CELL_TYPE;
...
but
In areas of low relief the integer DEMs have steps (you get alternating flat
and steep areas, with steep
areas along contours which you may be seeing in your shaded relief map), so
when you run
r.relief and you get a nice smooth map because the data were converted to float
using bilinear
Out of curiosity, what are those reasons? From a user perspective it
might not be that obvious (well, it wasn't for me at least). If the
current implementation is maintained, perhaps it would be useful to add
a note to the manual page?
Paulo
On 30-04-15 15:15, Helena Mitasova wrote:
I
Thanks for the explanation, and yes, it does makes sense to leave it as
an option to the user.
Rgds,
Paulo
On 30-04-15 16:44, Helena Mitasova wrote:
In areas of low relief the integer DEMs have steps (you get alternating flat
and steep areas, with steep
areas along contours which you may be