[STATSGRASS] sp_0.9-16 source on CRAN

Roger Bivand Roger.Bivand at nhh.no
Tue Oct 16 05:46:19 EDT 2007


On Tue, 16 Oct 2007, Rainer M. Krug wrote:

> Hi
>
> I just upgraded to the new version, and I get an error message when importing 
> an existing raster. The output is below.

This is not related to the sp update. Please do debug(readRAST6) and 
re-run, stepping through until you pass the the setting of the command 
string for r.out.bin. Please then print the cmd variable to screen and 
copy&paste it. It should have a -b flag. Please also give the output of 
sessionInfo() for your system, and the output of system("g.version") too.

The *.wld file got put in the correct place, so the *.hdr ought to have 
been there too.

If you do debug(readBinGrid), you'll see where it fails now, about 4 lines 
in. You could also do list.files(dirname(fname)) just before it fails in 
readBinGrid(), to check whether there ia anything else odd going on. Have 
you checked to see whether it has been written anywhere else?

Roger

>
>
>>  readRAST6("Hakea_seeds_2007")
> Creating BIL support files ...
> Header File = ld
> World File = 
> /home/rkrug/Documents/Projects/AlienSpread/R/../grass/simulation/.tmp/rkrug-linux/Hakea_seeds_2007.wld
> Exporting Raster as double values(bytes=8)
> Using the Current Region settings ...
> north=6247000.000000
> south=6195000.000000
> east=270200.000000
> west=251000.000000
> r=520
> c=192
>
> Percent complete:
> r.out.bin complete.
> Error in readBinGrid(rtmpfl11, colname = vname[i], proj4string = p4, integer 
> = to_int) :
>  no such file: 
> /home/rkrug/Documents/Projects/AlienSpread/R/../grass/simulation/.tmp/rkrug-linux/Hakea_seeds_2007.hdr
>> 
>
> The contents of the folder are as follow:
>
> (grass):~/Documents/Projects/AlienSpread/grass/simulation/.tmp/rkrug-linux
>>  ll Hakea*
> -rw-r--r-- 1 rkrug users 798720 2007-10-16 11:10 Hakea_seeds_2007
> -rw-r--r-- 1 rkrug users     60 2007-10-16 11:10 Hakea_seeds_2007.wld
> -rw-r--r-- 1 rkrug users 798720 2007-10-16 10:52 Hakea_seedsDispersed_2007
> -rw-r--r-- 1 rkrug users     60 2007-10-16 10:52 
> Hakea_seedsDispersed_2007.wld
> [Raster MASK present]
> GRASS 6.2.2 
> (grass):~/Documents/Projects/AlienSpread/grass/simulation/.tmp/rkrug-linux 
>> 
>
> Is there something wrong in my paths or os there a bug?
>
> Thanks a lot,
>
>
> Rainer
>
>
> Roger Bivand wrote:
>>  A new version of the foundation sp package is reaching CRAN mirrors, and
>>  Windows and OSX binaries should follow within a day or so. There is a
>>  significant change in how SpatialGrid objects are created, which we hope
>>  will not affect users negatively, and which is giving a two orders of
>>  magnitude speedup for reading larger rasters (single band 900 by 3600 down
>>  from 12 minutes to 6 seconds on an older 1.5GHz machine).
>>
>>  If anyone sees any negative impacts, please contact the authors
>>  immediately directly.
>>
>>  Roger
>> 
>

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