<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://grasswiki.osgeo.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=%E2%9A%A0%EF%B8%8FGordonke</id>
	<title>GRASS-Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://grasswiki.osgeo.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=%E2%9A%A0%EF%B8%8FGordonke"/>
	<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/wiki/Special:Contributions/%E2%9A%A0%EF%B8%8FGordonke"/>
	<updated>2026-07-08T16:28:24Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=GRASS_and_GMT&amp;diff=6039</id>
		<title>GRASS and GMT</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=GRASS_and_GMT&amp;diff=6039"/>
		<updated>2008-03-13T01:58:33Z</updated>

		<summary type="html">&lt;p&gt;⚠️Gordonke: /* Importing from GMT */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= GMT (The Generic Mapping Tools) =&lt;br /&gt;
&lt;br /&gt;
GMT (Generic Mapping Tools) is a Free software package for creating publication quality cartography.&lt;br /&gt;
&lt;br /&gt;
GMT homepage:  http://gmt.soest.hawaii.edu&lt;br /&gt;
&lt;br /&gt;
== Importing from GMT ==&lt;br /&gt;
&lt;br /&gt;
* Reformat the GMT grid to the old format using 'grdreformat in.grd out.grd=bf' then use r.in.bin with the -h flag 'r.in.bin -hf in=out.grd out=raster', or try the [http://www.gdal.org/frmt_various.html#GMT netCDF GDAL driver] with r.in.gdal.&lt;br /&gt;
&lt;br /&gt;
* Import GMT style .cpt color table files with the r.cpt2grass script on the [[GRASS_AddOns|Add-ons]] page.&lt;br /&gt;
:For a large collection of GMT .cpt files see http://sview01.wiredworkplace.net/pub/cpt-city/&lt;br /&gt;
&lt;br /&gt;
== Exporting GRASS maps to GMT ==&lt;br /&gt;
&lt;br /&gt;
* Overview: http://169.237.35.250/~dylan/grass_user_group/#GMT_and_GRASS-overview&lt;br /&gt;
&amp;lt;BR&amp;gt;(Supplied by the GRASS Users Group of Davis, California)&lt;br /&gt;
&lt;br /&gt;
Currently there are several *.out.GMT permutations on the [[GRASS_AddOns|Add-ons]] page, in several different languages (bash, python, etc.), and each of which with relative pros/cons. An effort to unify these approaches would save much of the current difficulties in moving complex raster+vector data into a GMT-friendly format. A simple road map toward this goal is outlined:&lt;br /&gt;
&lt;br /&gt;
=== Proper conversion of GRASS raster color data into GMT compatible CPT files ===&lt;br /&gt;
David Finlayson's [http://david.p.finlayson.googlepages.com/gisscripts r.out.gmt.py] does a nice job of this. Once we decide on an optimal language to implement the routines in this may need translation.&lt;br /&gt;
&lt;br /&gt;
=== Proper conversion of GRASS raster data to GMT compatible binary grids ===&lt;br /&gt;
A combination of r.out.bin | xyz2grd can accomplish this. Several attempts at generalizing this procedure have been proposed: [http://david.p.finlayson.googlepages.com/gisscripts r.out.gmt.py], [http://bambi.otago.ac.nz/hamish/grass/r.out.gmt r.out.gmt] (Hamish and Dylan), [http://169.237.35.250/~dylan/grass_user_group/r.out.gmt.sh r.out.gmt.sh] (Dylan, based Hamish's work).&lt;br /&gt;
&lt;br /&gt;
=== Proper conversion of GRASS vector data to GMT compatible ascii files ===&lt;br /&gt;
There is currently an effort (with some funding!), see some of the chatter on the GRASS and GMT mailing lists:&lt;br /&gt;
[http://grass.itc.it/pipermail/grassuser/2006-April/033659.html GRASS-list]&lt;br /&gt;
[http://www.nabble.com/Ideas-needed-regarding-OGR-reformatter-for-GMT-vector-(point-multiline)-files.-t2605255.html GMT-help]&lt;br /&gt;
&lt;br /&gt;
=== Automatic conversion of symbology data stored in a gis.m or QGIS saved state to GMT options ===&lt;br /&gt;
&lt;br /&gt;
Ideas expressed on various mailing list, haven't seem much since. It ''should'' be a relatively simple excercise in XML parsing to convert symbology stored in a QGIS project file into something that GMT can use.&lt;br /&gt;
&lt;br /&gt;
=== General approach ===&lt;br /&gt;
Since GMT relies on a sequence of specialized programs to &amp;quot;build-up&amp;quot; a postscript file, some thought must be put into how the conversion should take place. As usual, form should follow function- maximum flexibility, robustness, and accuracy being primary objectives. However, a simple means of creating high quality 2D maps would be a tremendous (I think) addition to the GRASS toolset. Especially since this is something frequently cited by critics. --[[User:DylanBeaudette|DylanBeaudette]] 02:47, 10 December 2006 (CET)&lt;br /&gt;
&lt;br /&gt;
1. should we continue down the well troden path of single-use, highly efficient programs for the various conversion steps: i.e v.out.GMT, r.out.GMT, etc.?&lt;br /&gt;
&lt;br /&gt;
2. should there be a unified approach to the process: something akin to ps.map - ''GMT.map'' ?&lt;br /&gt;
&lt;br /&gt;
= Tutorials =&lt;br /&gt;
* [http://netgis.geo.uw.edu.pl/srtm/ Dane DEM uzyskane z radarowej misji promu kosmicznego - SRTM-3]: Tutorial in Polish&lt;/div&gt;</summary>
		<author><name>⚠️Gordonke</name></author>
	</entry>
</feed>