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

4 messages Options
Embed this post
Permalink
Rainer M Krug-6

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

Reply Threaded More More options
Print post
Permalink
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.

Thanks

Rainer


--
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
_______________________________________________
grass-stats mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-stats
Roger Bivand

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

Reply Threaded More More options
Print post
Permalink
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.

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: [hidden email]

_______________________________________________
grass-stats mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-stats
Roger Bivand
Economic Geography Section
Department of Economics
Norwegian School of Economics and Business Administration
Helleveien 30
N-5045 Bergen, Norway
Rainer M Krug-6

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

Reply Threaded More More options
Print post
Permalink
On Fri, Aug 1, 2008 at 6:50 PM, Roger Bivand <[hidden email]> 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: [hidden email]
>
>



--
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
_______________________________________________
grass-stats mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-stats
Roger Bivand

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

Reply Threaded More More options
Print post
Permalink
On Fri, 1 Aug 2008, Rainer M Krug wrote:

> On Fri, Aug 1, 2008 at 6:50 PM, Roger Bivand <[hidden email]> 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:[hidden email]:/cvsroot/r-spatial login

cvs -z3
-d:pserver:[hidden email]:/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: [hidden email]
>>
>>
>
>
>
>

--
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: [hidden email]

_______________________________________________
grass-stats mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-stats
Roger Bivand
Economic Geography Section
Department of Economics
Norwegian School of Economics and Business Administration
Helleveien 30
N-5045 Bergen, Norway