Multiple conditional statements in r.mapcalc?
Bill Hargrove
hnw at mtqgrass.ESD.ORNL.GOV
Thu Nov 13 07:00:00 EST 1997
Is there a way in r.mapcalc to execute multiple statements only if a test
is true?
I tried:
solarf = \
\
eval( \
\
t3 = 6., \
\
t2 = 5., \
\
if(t3<t2,eval( \
\
t3 = 3., \
\
t2 = 3. \
\
)), \
\
t3 \
)
but solarf contains all 3s ...
Bill H.
-------------------------------------------------------------------------------
-
William W. Hargrove GIS and Computer Modeling Group
Oak Ridge National Laboratory Bldg. 4500N, Room 125-S, M.S. 6274
P.O. Box 2008, M.S. 6274 (423) 241-2748
Oak Ridge, TN 37831-6274 (423) 574-4634 (fax)
hnw at mtqgrass.esd.ornl.gov http://www.esd.ornl.gov/~hnw
-------------------------------------------------------------------------------
-
More information about the grass-dev
mailing list