[GRASS-stats] Heuristic assignment of NODATA value in package spgrass6

Rainer M Krug r.m.krug at gmail.com
Fri Aug 1 12:59:10 EDT 2008


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.

>
> 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
>
>



-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Faculty of Science
Natural Sciences Building
Private Bag X1
University of Stellenbosch
Matieland 7602
South Africa


More information about the grass-stats mailing list