[GRASSLIST:3167] Re: grass to gmt

Alejandro Hinojosa alhinc at cicese.mx
Mon Feb 18 21:39:41 EST 2002


>Date: Mon, 18 Feb 2002 14:28:41 -0800
>To: zucco at dipteris.unige.it
>From: Alejandro Hinojosa <alhinc at cicese.mx>
>Subject: Re: [GRASSLIST:3164] grass to gmt
>
>There is also a module, grdraster 
>http://gmt.soest.hawaii.edu/gmt/doc/html/grdraster.html ,that comes in the 
>supplemental GMT packages http://gmt.soest.hawaii.edu/gmt/gmt_suppl.html 
>that extracts subsets of binary rasters (grass uncompressed format) and 
>writes it as a grd netcdf file. Netcdf  is the format used by GMT to read 
>rasters.  You have to :
>
>-Put your raster (or a link to it@) in the proper place 
>($GMTHOME/share/dbase) and
>-Prepare (or augment) a control file  called grdraster.info with a new 
>entry that describe  your  raster file. ( extents, cell size, cell type, etc..)
>
>grdraster operates mainly on binary lat/lon grid files. One additional 
>thing, Grass ascii vector format is almost ready for plotting with GMT 
>(removing the header). Grass and GMT are a good combination.
>
>It looks complicated but it is the way I've done it and works great, nice 
>outputs.
>
>Cheers
>
>Alejandro Hinojosa
>At 09:27 AM 2/18/02 +0100, you wrote:
>>Hello to all,
>>
>>nother way to export a and print clean grass raster map to gmt is
>>
>>r.out.ascii in=filein out=fileout null=NaN
>>xyz2grd fileout -Gfileout.grd -H14 -Rx/x/x/x -Ix/x -D/=/=/=/=/= -ZTLa -F -V
>>
>>where -H14 left out the raster's file header.
>>
>>I hope this help you
>>
>>marino
>>--
>>Marino Vetuschi Zuccolini
>>PESTO Group
>>DIPTERIS - Genova University
>>Corso Europa 26 - 16132 - Italy
>>email: zucco at dipteris.unige.it


---------------------------------------------------
Alejandro Hinojosa Corona
Depto. Geologia
Division de Ciencias de la Tierra
CICESE
Km. 107 Carretera Tijuana-Ensenada
Ensenada, Baja California CP 22800
Tel. (646) 174-5050   (ext 26045)
                174-4501 al 08
Fax. (646) 175-0557



More information about the grass-user mailing list