Skip to content
Prev 5365 / 29559 Next

spgrass6 : diferent values from original

On Sun, 29 Mar 2009, milton ruser wrote:

            
Thanks for including your sessionInfo() in the preceding mail. If you are 
still using 0.5-10, you have no choice but to cast the data to floating 
point using r.mapcalc (add 0.0 should do it). There have been many changes 
in readRAST6() since that version, for example to use a GRASS GDAL plugin 
if available, and to use GDAL to read and write GTiff temporary files. The 
older route using r.out.bin only offers 2-byte integers, so was a reason 
for making more formats available.

So the answer in general is to update sp, spgrass6 and rgdal if you can. 
Since you in addition on Windows, and probably using the Native Windows 
version, until a new release you will hit a snag that more recent GRASS 
r.out.gdal have a -c flag which is not in your release - here you can wait 
for the next release, and use the trick of casting to floating point until 
then.

Roger