[GRASSLIST:1609] Re: gtopo30.dem

Glynn Clements glynn at sensei.co.uk
Tue Mar 13 14:08:33 EST 2001


Seppo Kaitala wrote:

> I am working with grass5.0v11beta.
> I am importing  gtopo file with the command
> 
> r.in.bin -s input=E020N90.DEM output=gtopo30 bytes=2 north=90
> south=40
> east=60
> west=20 r=6000 c=4800
> 
> It seems to import correctly, but when I explore the dem for
> elevation
> with the command
> d.what.rast it gives correct  cordinates but the elevation values
> are
> just nonsense, although for instance the coastline is correct.  I
> import
> the dem file directly form cd-rom, which I got from US Geological
> Survay.

GTOPO30 DEMs are normally in MSB (Motorola) byte-order. If you're
using an LSB (Intel) platform, you need to use the "-b" switch to
byte-swap the data.

-- 
Glynn Clements <glynn at sensei.co.uk>




More information about the grass-user mailing list