José María Michia wrote:

> r.mapcalc 'prueba = pi()'
> r.mapcalc 'prueba = pi'
> r.mapcalc 'prueba = PI()'
> r.mapcalc 'prueba = PI'
> 
> With the following results:
> 
> Syntax error
> 
> Is this normal? Is IP defined within GRASS / r.mapcalc?

r.mapcalc doesn't have a definition for pi; you'll need to enter a
literal value.

Note that all of r.mapcalc's trigonometric functions accept or return
angles measured in degrees, so you don't need to explicitly multiply
or divide by pi/180.

-- 
Glynn Clements <[EMAIL PROTECTED]>
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to