<div>I had made a number of scripts that worked fine in the 6.4.0 build 6 but appear to have problems with the same code in later revisions: </div><div><br></div><div>The method used to take about 6-8 secs and produce about what you would expect on the screen. Now the same calculation takes 0 seconds the file is radically changed. See the before and after below.</div>
<div><br></div><div>Any help would be greatly appreciated.</div><div>Thanks</div><div>Jim Mochel</div><div><br></div><div>r.mapcalc na_dem_sub_20 = na_dem_input - 20 </div><div><br></div><div><br></div><div>+----------------------------------------------------------------------------+</div>
<div> | Layer: na_dem Date: Sat Sep 24 17:37:59 2011 |</div><div> | Mapset: PERMANENT Login of Creator: jmochel |</div>
<div> | Location: wgs84 |</div><div> | DataBase: /home/jmochel/grassdata |</div><div> | Title: ( na_dem ) |</div>
<div> | Timestamp: none |</div><div> |----------------------------------------------------------------------------|</div><div> | |</div>
<div> | Type of Map: raster Number of Categories: 65535 |</div><div> | Data Type: CELL |</div><div> | Rows: 8384 |</div>
<div> | Columns: 9102 |</div><div> | Total Cells: 76311168 |</div><div> | Projection: x,y |</div>
<div> | N: 4384500 S: -3999500 Res: 1000 |</div><div> | E: 4639500 W: -4462500 Res: 1000 |</div><div> | Range of data: min = 0 max = 65535 |</div>
<div> | |</div><div> | Data Description: |</div><div> | generated by r.in.gdal |</div>
<div> | |</div><div> | Comments: |</div><div> | r.in.gdal input="/home/jmochel/gis/raw-data/hydo1k/na_dem.bil" outpu\ |</div>
<div> | t="na_dem" |</div><div> | |</div><div> +----------------------------------------------------------------------------+</div>
<div><br></div><div><br></div>
<div><a href="http://r.info" target="_blank">r.info</a> map=na_dem_sub_20 </div><div> +----------------------------------------------------------------------------+</div>
<div> | Layer: na_dem_sub_20 Date: Mon Sep 26 23:06:03 2011 |</div>
<div> | Mapset: PERMANENT Login of Creator: jmochel |</div><div> | Location: wgs84 |</div><div> | DataBase: /home/jmochel/grassdata |</div>
<div> | Title: ( na_dem_sub_20 ) |</div><div> | Timestamp: none |</div><div> |----------------------------------------------------------------------------|</div>
<div> | |</div><div> | Type of Map: raster Number of Categories: 610 |</div><div> | Data Type: CELL |</div>
<div> | Rows: 1 |</div><div> | Columns: 1 |</div><div> | Total Cells: 1 |</div>
<div> | Projection: x,y |</div><div> | N: 1 S: 0 Res: 1 |</div><div> | E: 1 W: 0 Res: 1 |</div>
<div> | Range of data: min = 610 max = 610 |</div><div> | |</div><div> | Data Description: |</div>
<div> | generated by r.mapcalc |</div><div> | |</div><div> | Comments: |</div>
<div> | na_dem_input@PERMANENT - 20 |</div><div> | |</div><div> +----------------------------------------------------------------------------+</div>