[GRASS-stats] Heuristic assignment of NODATA value in package
spgrass6
Roger Bivand
Roger.Bivand at nhh.no
Fri Aug 1 13:04:49 EDT 2008
On Fri, 1 Aug 2008, Rainer M Krug wrote:
> On Fri, Aug 1, 2008 at 6:50 PM, Roger Bivand <Roger.Bivand at nhh.no> wrote:
>> 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:
>>>
>>>
>>>> readRAST6("HSericea_seedsDisperse_2007")
>>>
>>> ERROR: Invalid value for null (integers only)
>>> Error in readBinGrid(rtmpfl11, colname = vname[i], proj4string = p4,
>>> integer = to_int) :
>>> no such file:
>>>
>>> /home/rkrug/Documents/Projects/AlienSpread/R/../grass/simulation/.tmp/ecolmod/HSericea_seedsDisperse_2007
>>>
>>> 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.
>
> Thanks for the prompt reply.
>
> Sorry for being a little bit dumb today, but do you mean from the cvs?
> Otherwise I don't know where to look.
Yes, best to check out the spgrass6 module and do R CMD INSTALL spgrass6
from the directory "above".
cvs -d:pserver:anonymous at r-spatial.cvs.sourceforge.net:/cvsroot/r-spatial login
cvs -z3
-d:pserver:anonymous at r-spatial.cvs.sourceforge.net:/cvsroot/r-spatial co
-P spgrass6
R CMD INSTALL spgrass6
should do it.
Roger
>
>>
>> Roger
>>
>>>
>>> Thanks
>>>
>>> Rainer
>>>
>>>
>>>
>>
>> --
>> Roger Bivand
>> 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
>>
>>
>
>
>
>
--
Roger Bivand
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
mailing list