[GRASS-stats] Heuristic assignment of NODATA value in package
Roger.Bivand at nhh.no
Fri Aug 1 12:50:50 EDT 2008
On Fri, 1 Aug 2008, Rainer M Krug wrote:
> I am confronted with the situation where a raster in grass has only
> NULL values.
> As I am using grass and R to do simulations, this can happen under
> certain situations.
> I am doing calculations with these layers also in R ands consequently
> I am loading these layers with readRAST6(). But when all values are
> NULL in the raster, I get an error message:
> ERROR: Invalid value for null (integers only)
> Error in readBinGrid(rtmpfl11, colname = vname[i], proj4string = p4,
> integer = to_int) :
> no such file:
> I would therefore suggest that in this case, an arbitrary value is
> assigned to the NODATA argument to avoid this error.
Please try the draft on the sourceforge r-spatial site, module spgrass6,
file R/bin_link.R, and let me know if it works, it seems to for me.
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no
More information about the grass-stats