[GRASS5] Import NOAA AVHRR .dat files
Markus Neteler
neteler at itc.it
Fri May 6 11:18:23 EDT 2005
On Wed, May 04, 2005 at 05:08:50PM +0100, Ricardo Armas wrote:
> Hello.
> Im trying to import a .dat file with r.in.bin.
>
> r.in.bin input=/home/neb_15.dat output=neb_exp bytes=1 north=44.80
> south=35.01 east=-1.14 west=-12.20 rows=89 cols=79 -b
>
> However, I always get an error message like this:
>
> Bytes do not match File size
>
> File size 171262... Total Bytes 7031
>
> Try bytes=24 or adjusting input parameters
>
> The file header looks like this
>
> #LLMATRIX,
> NORTH = 44.80,
> WEST = 347.80,
> GRID = 0.14/0.11,
> NLAT = 89,
> NLON = 79
> #DATA
>
> Does anyone have a solution?
>
Calculating:
> 7031/(89 * 79)
[1] 1
suggests 1 byte. But the boundary box above doesn't seem to
match this:
g.region n=44.80 s=35.01 e=-1.14 w=-12.20 -p res=0:08
projection: 3 (Latitude-Longitude)
zone: 0
datum: wgs84
ellipsoid: a=6378137 es=0.00669438
north: 44:48N
south: 35:00:36N
west: 12:12W
east: 1:08:24W
nsres: 0:08:02.794521
ewres: 0:07:59.710843
rows: 73
cols: 83
I get close to 89x79 playing with 'res=' but don't get it
precisely. Are you sure about the n,s,e,w values?
Also: what's the projection of these data (I tried latLong/WGS84)?
Often it's Goode or something else.
Markus
More information about the grass-dev
mailing list