[GRASSLIST:5794] r.out.bin and GMT

I am trying to use r.out.bin with grass 5.0.3 and the -h switch to make
it export the GMT headers.

I get the following:

GRASS:~ > r.out.bin -h input=elevation output=elevation.bin
Exporting Raster as integer values (bytes=2)
Writing GMT integer format ID=2
Using the Current Region settings ...
north=90.000000
south=-90.000000
east=180.000000
west=-180.000000
r=2160
c=4320

Percent complete: 99%
Done !
GRASS:~ > grdinfo elevation.bin
grdinfo: Not a netCDF file [elevation.bin]
GRASS:~ >

Any ideas what I am doing wrong?

Ed

--

--------------------------
Ed Davison
Sr. Systems Analyst
McCombs School of Business
512-232-6620 voice

On Tuesday 15 February 2005 01:34 pm, bfdi533 wrote:

I am trying to use r.out.bin with grass 5.0.3 and the -h switch to make
it export the GMT headers.

[snip]

GRASS:~ > grdinfo elevation.bin
grdinfo: Not a netCDF file [elevation.bin]
GRASS:~ >

try this:
grdinfo elevation.bin=1

note that the output from r.out.bin is not a NetCDF file. GMT can still use
the file, but you have to tell GMT what kind of file: i.e. is it integer or
floating point data:

grid.bin=1 for floating point grids
grid.bin=2 for integer grids

here are some other GRASS-GMT ideas:
http://169.237.35.250/~dylan/grass_user_group/

cheers,

--
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341