[GRASSLIST:7868] problems importing SRTM30plus files

Hello all, I'm trying to import some SRTM30plus (30 arcsec) data I get from
  http://topex.ucsd.edu/WWW_html/srtm30_plus.html
whitch have both land and ocean data,

but things are strange. r.in.gdal say the format is no recognised, and
r.in.bin can import, but the data range goes from
min=-32768
max=32767

what am I doing wrong?

thanks in advance

--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+

Carlos, I haven't played with this data specifically, but I think there are to possibilities. First, try byte switching the data from big to little endian (or vice versa) when you import it. If that doesn't work, I am guessing that null values are handled as -32767, and 32768. Use r.null to replace these values with null, then check out your data.

G'luck
-ian

On Aug 11, 2005, at 10:20 AM, Carlos Guâno Grohmann wrote:

Hello all, I'm trying to import some SRTM30plus (30 arcsec) data I get from
  http://topex.ucsd.edu/WWW_html/srtm30_plus.html
whitch have both land and ocean data,

but things are strange. r.in.gdal say the format is no recognised, and
r.in.bin can import, but the data range goes from
min=-32768
max=32767

what am I doing wrong?

thanks in advance

--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+

What happens if a big asteroid hits Earth? Judging from realistic simulations involving a sledge hammer and a common laboratory frog, we can assume it will be pretty bad.
  - Dave Barry

Thanks Ian!

the problem was the byte swapping
looks pretty good now.

Carlos

On 8/11/05, Ian MacMillan <ian_macmillan@umail.ucsb.edu> wrote:

Carlos, I haven't played with this data specifically, but I think there
are to possibilities. First, try byte switching the data from big to
little endian (or vice versa) when you import it. If that doesn't
work, I am guessing that null values are handled as -32767, and 32768.
Use r.null to replace these values with null, then check out your data.

G'luck
-ian

On Aug 11, 2005, at 10:20 AM, Carlos Guâno Grohmann wrote:

> Hello all, I'm trying to import some SRTM30plus (30 arcsec) data I get
> from
> http://topex.ucsd.edu/WWW_html/srtm30_plus.html
> whitch have both land and ocean data,
>
> but things are strange. r.in.gdal say the format is no recognised, and
> r.in.bin can import, but the data range goes from
> min=-32768
> max=32767
>
> what am I doing wrong?
>
> thanks in advance
>
> --
> +-----------------------------------------------------------+
> Carlos Henrique Grohmann - Guano
> Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
> Linux User #89721 - carlos dot grohmann at gmail dot com
> +-----------------------------------------------------------+
>
>
What happens if a big asteroid hits Earth? Judging from realistic
simulations involving a sledge hammer and a common laboratory frog, we
can assume it will be pretty bad.
  - Dave Barry

--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+

--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+

On Thu, Aug 11, 2005 at 05:20:08PM +0000, Carlos Guâno Grohmann wrote:

Hello all, I'm trying to import some SRTM30plus (30 arcsec) data I get from
  http://topex.ucsd.edu/WWW_html/srtm30_plus.html
whitch have both land and ocean data,

but things are strange. r.in.gdal say the format is no recognised, and
r.in.bin can import, but the data range goes from
min=-32768
max=32767

what am I doing wrong?

ftp://topex.ucsd.edu/pub/srtm30_plus/README.txt

DATA FORMATS
Data are provided as binary integers in exactly the same format
as SRTM30. The files must be uncompressed with gzip and are 16-bit
big endian byte order.

Example:
r.in.bin -sb input=e020n40.Bathmetry.srtm output=e020n40_topex bytes=2 north=40 south=-10 east=60 west=20 r=6000 c=4800
r.colors e020n40_topex rules=etopo2

Enjoy

Markus