[GRASSLIST:2744] Re: Problem importing arc info file
Leonardo Lami
leo.lami at katamail.com
Wed Feb 25 10:51:15 EST 2004
I added the header at the beginning of w001001.adf file in this way:
ncols 2492
nrows 2272
xllcorner 4675800
yllcorner 1550000
cellsize 100
NODATA_value -9999
'
ÿÿü Xîè "#Ð#.»7A&'
èŠRAì ˆÈî 8A±Ù ŸÁœRA2 3 4 5 6 (7 08 89 @: H; P< X= `> h? p@ xA €B ˆC D
~E F šG °H žI ÀJ ÈK ÐL ØM àN èO ðP øQ R S T U V (W 0X 8Y @Z H[
P\ X] `^ h_ p` xa €b ˆc d ~e f šg °h ži Àj Èk Ðl Øm àn
èo ðp øq r s t u v (w 0x 8y @z H{ P| X} `~ h p€ x €,
ˆƒ " ~… † š‡ °ˆ ž‰ ÀŠ È< ÐŒ Ø àŽ è ð ø' ' " " * -
(- 0~ 8™ @š H> Pœ X `ž hŸ p x¡ €¢ ˆ£ € ~¥ Š š§ °š ž©
Àª È« Ь Ø à® è¯ ð° ø± ² ³ Ž µ ¶ (· 0ž 8¹ @º H» PŒ Xœ
`Ÿ h¿ pÀ xÁ €Â ˆÃ Ä ~Å Æ šÇ °È žÉ ÀÊ ÈË ÐÌ.......
I add part of the file because I'm not sure if it is data file.
But the output message now say:
r.in.arc input=/home/Documenti/AAA-verificare/DTM_nuovo/dtm/w001001x.adf
output=w001001 type=CELL mult=1.0 0%ERROR: data conversion failed at row 1,
col 1
Where do I wrong?
Thank you again
Leonardo Lami
Alle 14:31, martedì 24 febbraio 2004, hai scritto:
> The header must be positioned at the beginning of the data file, the
> entries for each point must be listed one per line and ALL headers must
> be present AND must have correct values.
>
> e.g.
>
> ncols 301
> nrows 301
> xllcorner -75.4421
> yllcorner 44.2576
> cellsize 0.0001
> NODATA_value -9999
> val1
> val2
> .
> .
> .
> val90601
> EOF
>
> For UTM or other coordinates in meters the values would be in
> appropriate units, not degress as in this example.
>
> Leonardo Lami wrote:
> >Sorry but I have never worked with arc/info files and so i have again
> >problems.
> >
> >I have seven files for my dtm layer:
> >dblbnd.adf
> >hdr.adf
> >log
> >prj.adf
> >sta.adf
> >w001001.adf
> >w001001x.adf
> >
> >I added:
> >
> >yllcorner:4675800
> >xllcorner:1550000
> >nrows:2492
> >ncols:2272
> >cellsize:100
> >
> >at the bottom of the w001001.adf file but when i run r.in.arc the output
> >message say:
> >
> >r.in.arc: ** errors detected in header section **
> > illegal line in header
> > "yllcorner:4675800"
> > "yllcorner" field missing from header
> > "xllcorner" field missing from header
> > "nrows" field missing from header
> > "ncols" field missing from header
> > "cellsize" field missing from header
> > "nodata_value" field missing from header
> >Can't proceed
> >
> >May be I mismatch the file where I add the header or its format.
> >Can you help me
> >
> >Thank you very much
> >
> >Leonardo Lami
More information about the grass-user
mailing list