[GRASS-user] mapcalc - formula
Martin Schweizer
schweizermartin at students.unibe.ch
Mon Oct 26 08:19:30 EDT 2009
Hi
I (in cooperation with Ernst Lobsiger) found a working formula for my
problem:
water=water+eval(o=4.0, s=0.15, d=0.10, x=elev+water,\
if (x>(y=elev[-1,0]+water[-1,0]) && x>o,\
-s * min(water,x-y))+\
if (y>x && y>o,\
s * min(water[-1,0],y-x))+\
......
Thanks anyway and best regards
Martin
PS: My Problem was that I had to distribute water over an
elevation-raster, but only when the water level is over 4 (water+eval>4).
More information about the grass-user
mailing list