[GRASS-dev] r.mapcalc - expression line to long

Helmut Kudrnovsky hellik at web.de
Wed Jul 2 12:19:49 PDT 2014


Helmut Kudrnovsky wrote
> hi,
> 
> given in a pynthon script:
> 
> 
>         offsets3 = [d
>              for j in xrange(1,6+1)
>              for i in [j,-j]
>              for d in
> [(i,0),(i,1),(i,2),(i,3),(i,4),(i,5),(i,6),(i,-1),(i,-2),(i,-3),(i,-4),(i,-5),(i,-6)]]	
> 		 
>         terms3 = ["(DEM_smoothed_step3_coarsed[%d,%d] <
> DEM_smoothed_step3_coarsed)" % d
>              for d in offsets3]	
> 		 
>         expr3 = "PCTL3 = (100.0 / 168.0) * (%s)" % " + ".join(terms3)
> 
>         grass.mapcalc( expr3 )

mmmhhh, in the script there are two steps before two calculation with the
same moving window; there's isn't the error message, that the expression
line is too long.



-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/r-mapcalc-expression-line-to-long-tp5149281p5149303.html
Sent from the Grass - Dev mailing list archive at Nabble.com.


More information about the grass-dev mailing list