[GRASSLIST:5511] Re: A problem with computation in r.mapcalc

Eric G. Miller egm2 at jps.net
Sat Feb 8 17:29:49 EST 2003


On Sat, Feb 08, 2003 at 08:59:47PM +0000, Miha STAUT wrote:
> Hi all,
> 
> I have a problem computing this with r.mapcalc:
> 
> r.mapcalc < avg # piping
> avg=10*log((
> 10^(rast1/10-12)*6.863636
> +10^(rast2/10-12)*2.909091
> +10^(rast3/10-12)*3.742424
> +10^(rast4/10-12)*2.333333
> +10^(rast5/10-12)*2.318182
> +10^(rast6/10-12)*3.590909
> +10^(rast7/10-12)*0.969697
> +10^(rast8/10-12)*2.435484
> )
> *10^12/30.84457
> ,10)

10^12 exceeds the range of an integer.  You might want '10.^12.' to
prevent integer overflow.

-- 
echo ">gra.fcw at 2ztr< eryyvZ .T pveR" | rot13 | reverse




More information about the grass-user mailing list