[STATSGRASS] cant read raster created with r.neighbours
Roger Bivand
Roger.Bivand at nhh.no
Thu Jul 26 12:58:17 EDT 2007
On Thu, 26 Jul 2007, Carlos "Guâno" Grohmann wrote:
> Yes, it works..
> I wonder why... I mean, who can't deal with long names? R?
Not R in principle, I think, but if you run debug(readBinGrid) first, and
repeat with the long names, you can step through and see whether the files
get created in the location temporary directory with the correct names,
pointing list.files() at the right place. It looks like a 128-byte buffer
somewhere, though GRASS filenames are GNAME_MAX (256) long, and the
offending string was only 104 characters. The temporary files get deleted
on exit.
list.files(dirname(fname))
within debug should show what is in the temporary directory.
Roger
>
> cheers
>
> On 7/26/07, Jarek Jasiewicz <jarekj at amu.edu.pl> wrote:
>> Carlos "Guâno" Grohmann wrote:
>> > Hi,
>> > some strange stuff happened today:
>> >
>> > in R:
>> > this works fine:
>> > elev<-readRAST6("dem3arcsec_srtm_reprojected")
>> > slope<-readRAST6("dem3arcsec_srtm_reprojected_slope")
>> >
>> > but this
>> > slope<-readRAST6("dem3arcsec_srtm_reprojected_slope_avg")
>> > gves
>> >
>> > Creating BIL support files ...
>> > Header File = wld
>> > World File =
>> > /home/guano/grassdata/srtm_krig_utm/death_valley/.tmp/eclipse/dem3arcsec_srtm_reprojected_slope_avg.wld
>> >
>> > Exporting Raster as floating values (bytes=4)
>> > Using the Current Region settings ...
>> > north=4031000.000000
>> > south=4002650.000000
>> > east=494850.000000
>> > west=466500.000000
>> > r=315
>> > c=315
>> > 100%
>> > Error in readBinGrid(rtmpfl11, colname = vname[i], proj4string = p4,
>> > integer = to_int) :
>> > no such file:
>> > /home/guano/grassdata/srtm_krig_utm/death_valley/.tmp/eclipse/dem3arcsec_srtm_reprojected_slope_avg.hdr
>> >
>> >
>> >
>> >
>> > the last map was created with
>> > r.neighbors input=dem3arcsec_srtm_reprojected_slope
>> > output=dem3arcsec_srtm_reprojected_slope_avg method=average size=3
>> > --overwrite
>> >
>> >
>> > I'm lost..
>> >
>> > tks
>> >
>> try to create a file with little shorter name....
>>
>
>
>
--
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