Hello,
i`ve got a question about importing raster-data.
My raster-file is looking like this:
grd_sz xmin ymin xmax ymax n_cols n_rows
n_months
0.50 0.25 -89.75 359.75 89.75 720 360
12
-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-
9999-9999-9999-9999-9999
-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-
9999-9999-9999-9999-9999
-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-
9999-9999-9999-9999-9999
-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999
12 22 12 32-9999-9999
-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999 34 12
65 53-9999-9999-9999-9999
-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999 98
43 14-9999-9999-9999-9999
-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-
9999-9999-9999-9999-9999
-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-
9999-9999-9999-9999-9999
: : :
.
: : :
.
: : :
.
How can I import the Data?
All methods I tried out didn`t work.
Can anybody help me?
Thanks.
Maik Trömel
Hello Maik,
On Mon, 26 Sep 2005 17:43:45 +0200 Maik Trömel
<maik.troemel@maitro.net> wrote:
How can I import the Data?
All methods I tried out didn`t work.
Which methods?
AFAIK your data looks like Esris ARC INFO ASCII grids. (r.in.arc)
Best
Stephan
--
GDF Hannover - Solutions for spatial data analysis and remote sensing
Hannover Office - Mengendamm 16d - D-30177 Hannover
Internet: www.gdf-hannover.de - Email: holl@gdf-hannover.de
Phone : ++49-(0)511.39088507 - Fax: ++49-(0)511.39088508
If that doesn't work, I would give r.in.ascii a try. You will have to play around with the parameters there to get it to work.
-Ian
On Sep 26, 2005, at 8:56 AM, Stephan Holl wrote:
Hello Maik,
On Mon, 26 Sep 2005 17:43:45 +0200 Maik Trömel
<maik.troemel@maitro.net> wrote:
How can I import the Data?
All methods I tried out didn`t work.
Which methods?
AFAIK your data looks like Esris ARC INFO ASCII grids. (r.in.arc)
Best
Stephan
-------------------------------------------------------------
This message has been scanned by Postini anti-virus software.
H_B
4
i`ve got a question about importing raster-data.
My raster-file is looking like this:
..
grd_sz xmin ymin xmax ymax n_cols n_rows
n_months
0.50 0.25 -89.75 359.75 89.75 720 360
12
-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-9999-
9999-9999-9999-9999-9999 _
..
How can I import the Data?
reformat the header lines and use r.in.ascii:
http://grass.ibiblio.org/grass61/manuals/html61_user/r.in.ascii.html
Hamish
If that doesn't work, I would give r.in.ascii a try. You will have to
play around with the parameters there to get it to work.
I tried out with r.in.ascii:
r.in.ascii input=/testwnd.dat output=test3421 'mult=1.0 or read from header'
'nv=-9999 or read from header'
I got an error:
GRASS_INFO_ERROR(7780,1): data conversion failed at row 1046, col 673
I checked the file at row 1046, col 673. But there is no reason for an
error. Any idea what the problem could be?
-Ian
On Sep 26, 2005, at 8:56 AM, Stephan Holl wrote:
> Hello Maik,
>
> On Mon, 26 Sep 2005 17:43:45 +0200 Maik Trömel
> <maik.troemel@maitro.net> wrote:
>
>> How can I import the Data?
>>
>> All methods I tried out didn`t work.
>
> Which methods?
>
> AFAIK your data looks like Esris ARC INFO ASCII grids. (r.in.arc)
>
> Best
> Stephan
-------------------------------------------------------------
This message has been scanned by Postini anti-virus software.
H_B
6
I tried out with r.in.ascii:
r.in.ascii input=/testwnd.dat output=test3421 'mult=1.0 or read from
header' 'nv=-9999 or read from header'
make that:
r.in.ascii input=testwnd.dat output=test3421 mult=1.0 nv=-9999
the parser isn't so smart as to know "or read from header". That's just
there as a guide. Probably doesn't belong in parm->answer in the first
place.
Hamish