[STATSGRASS] NULL values and readRAST6

Hamish hamish_nospam at yahoo.com
Tue Oct 9 09:08:27 EDT 2007


Roger Bivand wrote:
> To make this a bit clearer - the raster layer in GRASS has missing values
> set to NULL, but NULL cannot be exported by r.out.bin. So r.out.bin is
> given a NODATA value to assign to NULL cells, which are then read into R,
> and the NODATA valued cells are set to NA. The only need for the value is
> to keep r.out.bin (and r.in.bin) happy, because they do not encode NULL
> directly.


IIUC there is a rgdal pacakge. Why not use it to directly read the GRASS map?
If GDAL's GRASS plugin is not present or the rgdal package is not loaded in R
it can fall back to using the r.{in|out}.bin or r.{in|out}.ascii methods.

(given the r.out.bin NULL restriction, maybe the r.out.ascii format is safer,
albeit a bit slower)

?,
Hamish



      ____________________________________________________________________________________
Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos.
http://autos.yahoo.com/index.html
 





More information about the grass-stats mailing list