Helmut Kudrnovsky wrote:

> - working:
> 
> r.mapcalc
> ndvi3=float(lsat7_2002_40-lsat7_2002_30)/float(lsat7_2002_40+lsat7_2002_30)
> (Fri Feb 15 16:23:42 2013) Command finished (0 sec)  
> 
> r.mapcalc urban1_30m=if(landuse96_28m==1,1,0)+if(landuse96_28m==2,2,0)        
>   
> (Fri Feb 15 16:24:24 2013) Command finished (0 sec)   
> 
> - not working (as Anna mentioned caused by ||):
> 
> r.mapcalc urban2_30m=if(landuse96_28m==1 ||
> landuse96_28m==2,landuse96_28m,null()
> r.mapcalc MASK=if((elevation<100 && elevation>60) && (landuse96_28m==1 ||
> landuse96_28m==2),1,null())

Why do you think that the problem is caused by || rather than the
spaces?

-- 
Glynn Clements <gl...@gclements.plus.com>
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to