Questions tagged [gmt]

Generic Mapping Tools (GMT) is an open source collection of about 80 command-line tools for manipulating geographic and Cartesian data sets (including filtering, trend fitting, gridding, projecting, etc.) and producing PostScript illustrations ranging from simple x–y plots via contour maps to artificially illuminated surfaces and 3D perspective views

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

Draw graticule lines using GTM 6 without drawing a border (frame) around the map

I'm using Generic Mapping Tool (version 6.4.0 on macOS) to create globe maps. Here's the command I'm using: gmt begin globe png gmt set MAP_GRID_PEN_PRIMARY 0.04p,140/140/180 gmt coast -Rd -S200/200/...
z80crew's user avatar
  • 153
1 vote
0 answers
28 views

Fill polygons with different colours in gmt6

I want to plot in gmt6 different polygons filled with different colours according to their attribute. The file containing this info starts like this: @VGMT1.0 @GPOLYGON @R-180/180/-89.999/90 ...
Claire's user avatar
  • 11
0 votes
0 answers
24 views

Clipping grid A using grid B where grid B != NaN using GMT

I have 2 grd files: A containing data of whole area. B containing a mask of a subset of the area, where 1 is what I want to keep from A, and NAN is what I don't need. I want to keep the whole grid ...
Steffan's user avatar
  • 518
0 votes
1 answer
2k views

QGIS problem loading NetCDF files

I recently installed QGIS 3.10 and have been unable to load a NetCDF file created by GMT. GMT *.grd and *.nc files are not listed the "Add Raster Layer" file type dropdown. The error I get when ...
Derrick's user avatar
1 vote
1 answer
118 views

Cut hole in raster with shapefile and sample at closest edges

I have a raster in which I'd like to cut a "hole" with a shapefile. I have points close to the boundary, but inside the hole, and I would like to find the closest point on the edge. To give a concrete ...
EduardH's user avatar
  • 31
1 vote
0 answers
91 views

Printing geological legend using Generic Mapping Tools?

I want to print a geological legend for a map on which I draw the lithology. I use this for drawing the lihtology: colornames="/GeologyMapColorCodesAndDocumentation/ColorCodesGeologicMap" gmt psxy "${...
Argent's user avatar
  • 41
0 votes
2 answers
134 views

GMT Pen name c not recognized - Trying to fill polygons

I am trying to fill my polygons like this person tried: Fill color in polygons using attribute variable in GMT (Generic Mapping Tool) with some hints here: https://gmt.soest.hawaii.edu/boards/1/topics/...
Argent's user avatar
  • 41
4 votes
2 answers
756 views

Save as to GMT in QGIS

I have a problem with saving as GMT in QGIS. There is no option in my QGIS version to save as in GMT. How I can add this option in QGIS?
ros's user avatar
  • 41
2 votes
1 answer
1k views

Fill color in polygons using attribute variable in GMT (Generic Mapping Tool)

I want to FILL colors of the polygon (converted from .shp ESRI shapefile) based on an attribute (here OBJECTID, Area) from lookup color (.cpt), but I am getting colored outline of each polygon. I ...
Amit's user avatar
  • 111
0 votes
1 answer
250 views

In GMT after adding scale bar , psxy plots are disappears

Here My script is !/bin/bash LATLON=30/130/-40/20 PROJ=M6i STASYM=t0.1 STACOLOR=255/0/0 FNAME=map.ps EPISYM=c0.1 EPICOLOR=255/255/0 gmt grdimage ../../ETOPO1.grd -R${LATLON} -J${PROJ} -C../.....
rehman's user avatar
  • 3
1 vote
0 answers
89 views

GMT instead GTiff while merging rasters: error message [duplicate]

My question is linked to that post (Saving an output file during merging on QGIS) as I have exactly the same issue but as the guy couldn't provide screenshots and the post is unachieved, I ask again ...
Thibthib's user avatar
1 vote
1 answer
112 views

Straight lines plotting as curves

I'm trying to do something really simple, plot a rectangle using psxy on a .cdf grid file. Something like: grdimage grid.cdf -JM20c -R-70/0/20/60 -Bf20g10 -K > image.ps psxy rectangle.dat -JM -R -B -...
Venres_13's user avatar
4 votes
2 answers
1k views

How to restore a scarp surface grid to calculate material loss

I would like to calculate the volume of material lost from a scarp like the one shown in the following image: Is there a way to do these calculations with open-source software such as GMT, QGIS and ...
Gery's user avatar
  • 2,122
1 vote
0 answers
88 views

Deriving Topographic Information from Geotagged Photos?

I wish to extract elevation data from geotagged photos? I have worked with DEM's and the open source CLI program: GMT for my graduate studies. I own a DJI Phantom 3 and used the trial version of ...
user98409's user avatar
3 votes
1 answer
205 views

Generic Mapping Tools: Weird lines created by pscoast

I'm creating maps using the Generic Mapping Tools (GMT) from the University of Hawaii. I get weird vertical and horizontal lines using pscoast. This is the command to reproduce the problem: gmt ...
z80crew's user avatar
  • 153
4 votes
1 answer
8k views

Clipping results show a GMT error

I've been trying to use the clipper tool in QGIS 2.18.0. However the following error message pops up; Output driver `GMT' not recognised or does not support direct output file creation. The following ...
Sibu's user avatar
  • 41
1 vote
1 answer
1k views

How to Convert from GMT Line files to Shapefile for QGIS?

I have several line text-files of (used in GMT) saved in the format (this is a small sample): -111.29 42.28 -111.29 42.31 -111.29 42.33 > -111.37 41.99 -111.38 42.02 I am trying to convert this ...
AlexGeorge's user avatar
2 votes
1 answer
417 views

Plot image on map based on corner coordinates

I have a color image and I know geographic coordinates of its 4 corners. Now I'd like to place this image on basemap in GMT using any projection. Any idea how to do that?
gozwei's user avatar
  • 121
1 vote
0 answers
41 views

Creating tiling scheme to get multiple extents before gridding elevation data

Looking to create 1 degree by 1 degree tiles with pixel overlap to get extents before I start gridding. So basically I would like to have a shapefile of the tiling scheme with extents before having ...
lbeazy's user avatar
  • 11
2 votes
1 answer
116 views

GRID-file: get max extent for all z-values above given value

I have a GRID-file with a quite large extent. For an automatic workflow I need the maximum extent/bounding-box for all z-values that are over a certain range. For example: Get the maximum extent for ...
Basti's user avatar
  • 175
2 votes
3 answers
1k views

Creating custom color ramp using "r.colors" GRASS GIS function

I am trying to assign a raster/grid a custom color palette in GRASS using the "r.colors" function. r.colors map=Consensus_BRT_RCP85 colors=rules This allows me to input my rules for my color palette:...
Edward's user avatar
  • 163
2 votes
1 answer
1k views

shapefile to gmt format

I have an ESRI shapefile of the contours of my study area, and I want to convert it into a format that is acceptable by GMT, so I can make an elevation map of my study area. Is that even possible? ...
Fotini_M's user avatar
0 votes
3 answers
8k views

How to convert *.shp files to *.gmt format type files?

I am new at using GMT (Generic Mapping Tools) and I am wondering if it can use a shapefile of a hydrographical network. Can I perhaps change my .shp to .gmt format and combine it with a GMT map? If ...
Fotini_M's user avatar
3 votes
1 answer
2k views

Converting GMT grid to ArcGIS readable format?

I am trying to convert a GMT grid data into a format that is readable in ArcGIS. I have already attempted to load the data into GRASS and use GDAL translate to convert into a tif with unwanted results....
GeoPy's user avatar
  • 593