[GRASSLIST:2914] Puzzling mapcalc command
SWlab
swlab at cornell.edu
Thu Mar 11 20:00:52 EST 2004
Hello,
I want to compute some maps with mapcalc (GRASS53 v2004/03.. on a SuSE box).
Depending on the way I parse the info to the command I have results or none
If I have a file "tmp" with
Vold=V
V=V+Down.0
Down=1
V=V-Down
Out=2
In=100000.*On.NN*Out[-1,0]
the command "cat tmp | r.mapcalc" gives me:
parse error, unexpected '[', expecting $end
Parse error
The commands entered one by one gives satisfactory results (in particular,
r.mapcalc "In=100000.*On.NN*Out[-1,0]"
or
echo "In=100000.*On.NN*Out[-1,0]" | r.mapcalc
both works.
I'd be very happy to get any insight :)
Thx a lot in advance
P.
--
Soil & Water Laboratory
Dept. of Biological & Environmental Engineering
Cornell University
ITHACA, NY 14853
Tel: (607)255.2463
More information about the grass-user
mailing list