[GRASSLIST:4324] Re: r.out.bin -h (export GMT binary raster grids)
glynn.clements at virgin.net
Mon Aug 19 14:38:47 EDT 2002
Thomas Dewez wrote:
> I've just had an exchange with the GMT folks about importing GRASS
> raster grid into GMT. The following solution works well (for those
> who are interested):
> r.out.bin input=myraster output=- | xyz2grd -Rmylimits -ZTLf -F -I10
> -Dm/m/m/1/0/=/= -Gmygrid.grd
> The man page for r.out.bin says the -h switch should produce
> GMT ready files (netCDF grid files). Yet GMT doesn't recognize them as
> netCDF format. Is there something I should tune. I tried:
> r.out.bin -h input=myraster output=myraster.grd null=-9999
> Any hints on what's going on?
"r.out.bin -h" doesn't generate a netCDF file, but a "raw" grid with a
GMT header prepended. AFAICT, you can use e.g. "grdinfo myraster.grd=1"
(for FP maps) or "grdinfo myraster.grd=2" (for integer maps).
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-user