Hi everyone,
I'm using Grass 7.4.4 on Windows 7 to perform a simple operation (division
by 10.0) of a raster map using r.mapcalc gui and I noticed that the obtained
results are not correct, e.g. 164 / 10.0 = 15 instead of 16.4.
I tried to do the same operation with Grass 6.4 and it went fine.
Then I switched to Grass 7.4.4 again and I tried to use the command line,
and it gives the correct results.
I think there is a problem in the r.mapcalc gui, has someone else
encountered this strange behavior?
P.S.: In the following lines, the results of a query on a point:
Hi everyone,
I’m using Grass 7.4.4 on Windows 7 to perform a simple operation (division
by 10.0) of a raster map using r.mapcalc gui and I noticed that the obtained
results are not correct, e.g. 164 / 10.0 = 15 instead of 16.4.
I tried to do the same operation with Grass 6.4 and it went fine.
Then I switched to Grass 7.4.4 again and I tried to use the command line,
and it gives the correct results.
I think there is a problem in the r.mapcalc gui, has someone else
encountered this strange behavior?
P.S.: In the following lines, the results of a query on a point:
Hi,
I tested using 7.4.4 on Win10 and worked as expected using the gui. I tested:
r.mapcalc expression="new_map = integer_map / 10.0"
r.info map=new_map
returns: "Data Type: DCELL " and query on one point gives the expected value.
If is not a problem of setting properly g.region before r.mapcalc, I have no idea of what can cause your wrong result.
cheers,
Andrea Balotti
Il 15/02/2019 17:28, Pilafin ha scritto:
Hi everyone,
I'm using Grass 7.4.4 on Windows 7 to perform a simple operation (division
by 10.0) of a raster map using r.mapcalc gui and I noticed that the obtained
results are not correct, e.g. 164 / 10.0 = 15 instead of 16.4.
I tried to do the same operation with Grass 6.4 and it went fine.
Then I switched to Grass 7.4.4 again and I tried to use the command line,
and it gives the correct results.
I think there is a problem in the r.mapcalc gui, has someone else
encountered this strange behavior?
P.S.: In the following lines, the results of a query on a point:
Hi,
I tested using 7.4.4 on Win10 and worked as expected using the gui. I
tested:
r.mapcalc expression="new_map = integer_map / 10.0"
r.info map=new_map
returns: "Data Type: DCELL " and query on one point gives the
expected value.
If is not a problem of setting properly g.region before r.mapcalc, I
have no idea of what can cause your wrong result.
cheers,
Andrea Balotti
Hi Andrea, thank you for your kind reply.
I exclude it's something related to the computational region, because I set
the region to match the input raster map, and then I did not change anything
in the settings.