[GRASS-user] Re: grass-user Digest, Vol 65, Issue 49

2011-09-27 Thread Glynn Clements

Alexander Muriy wrote:

 And r.mapcalc expression is without any quotes like r.mapcalc na_dem_sub_20
 = na_dem_input - 20 or r.mapcalc 'na_dem_sub_20 = na_dem_input - 20'

In 6.x, the quotes are optional; in 7.0, they're required.

For forward compatibility:

1. The expression should be quoted.
2. There should be a space before the first = in the expression.

The reason for the change is that, in 7.0, r.mapcalc uses the GRASS
command-line parser, for consistency with other modules:

 r.mapcalc [expression=string] [file=name] [--overwrite] [--verbose] 
[--quiet]

The expression= option is the first (i.e. default) option, so the
expression= can be omitted, but the expression itself must be a
single argument (i.e. quoted), and must not resemble the option=... 
form used for non-default options (hence the requirement for a space
before the first =).

-- 
Glynn Clements gl...@gclements.plus.com
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Re: grass-user Digest, Vol 65, Issue 49

2011-09-26 Thread Alexander Muriy
*Jim

Trivially: did you do g.region rast=na_dem_sub_20 before raster
computations?
And r.mapcalc expression is without any quotes like r.mapcalc na_dem_sub_20
= na_dem_input - 20 or r.mapcalc 'na_dem_sub_20 = na_dem_input - 20'


Alexander
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user