[GRASS5] strange r.mapcalc results
Markus Neteler
neteler at itc.it
Wed Feb 13 16:21:37 EST 2002
On Wed, Feb 13, 2002 at 08:19:45PM +0000, Glynn Clements wrote:
>
> Markus Neteler wrote:
>
> > so far, so nice. Now I want to "normalize" the DEM to zero elevation
> > (-1200m) and substract 5 meters more (excavation for a big building).
> > elevation.dem is an INT map. See the very different results wether I
> > calculate FP or INT:
> >
> > r.mapcalc elevmod="elevation.dem - 1120 - 5"
> > EXECUTING elevmod = ... 100%
> > CREATING SUPPORT FILES FOR elevmod
> > range: -5 14
> >
> > r.mapcalc elevmod="elevation.dem - 1120.0 - 5.0"
> > EXECUTING elevmod = ... 100%
> > CREATING SUPPORT FILES FOR elevmod
> > range: -3 14
> >
> > The 2 meters difference looks quite much to me.
> > Comments are welcome,
>
> I don't see this behaviour; I get "-5 14" in both cases.
Thanks for testing. I was using the release_branch version.
Above was a copy-paste..., no commands in between (having a colleague
by my side). Well, I try again.
Markus
More information about the grass-dev
mailing list