<div dir="ltr"><div><div>Hi,<br><br></div>In the last few revisions of GRASS GIS 7.0 (on Ubuntu 13.04) I am experiencing this seemingly random errors with r.mapcalc. For example:<br><br></div><div>Running the following r.mapcalc computation gave me an ERROR:<br>
</div><div><br><span style="font-family:courier new,monospace">GRASS 7.0.svn (AEA):~ > r.mapcalc --overwrite "glc_influence = if(IIASA_crops==100,8.0, if((glc_change5 + glc_change6)==100, 4.0*IIASArev + 8.0*IIASA_crops/100.0, (glc_change1*IIASArev + 2.0*glc_change2*IIASArev + 3.0*glc_change3*IIASArev + 4.0*glc_change4*IIASArev + glc_div + 8.0*IIASA_crops) / 100.0))" --overwrite<br>
ERROR: Error reading raster data<br>[Raster MASK present]</span><br></div><div><br></div><div>Rerunning the same, and it goes through fine:<br><br><span style="font-family:courier new,monospace">GRASS 7.0.svn (AEA):~ > r.mapcalc --overwrite "glc_influence = if(IIASA_crops==100,8.0, if((glc_change5 + glc_change6)==100, 4.0*IIASArev + 8.0*IIASA_crops/100.0, (glc_change1*IIASArev + 2.0*glc_change2*IIASArev + 3.0*glc_change3*IIASArev + 4.0*glc_change4*IIASArev + glc_div + 8.0*IIASA_crops) / 100.0))" --overwrite<br>
100%<br>[Raster MASK present]</span><br><br></div><div>This is not always the second time, sometimes it runs fine the first time, but doesn't the second time, or it only runs fine the third time.<br><br></div><div>Initially I though it such errors are more likely to happen when the equation includes double precision / floating rasters and integer rasters. But in the example above all layers were converted to double precision first.<br>
<br>I am really puzzled as to what is going on here. Any idea what I am doing wrong here or what could be the cause?<br><br></div><div>Rgds<br><br>Paulo<br></div><div><br><br><br></div></div>