Bug #1216

grdmask incorrect selection of nodes inside the polygon

Added by Mark over 1 year ago. Updated about 1 year ago.

Status:ClosedStart date:2018-03-13
Priority:NormalDue date:
Assignee:-% Done:


Target version:Candidate for next bugfix release
Affected version:6.x-svn Platform:Linux


Running version 6.0.0 on Ubuntu 16.04

gmt grdmask -Rg -I0.1d mohns.ll -N1/NaN/NaN -Gmohns.grd

Attached plot is generated using:



gmt makecpt -T0/30/1 -Crainbow -D > age.cpt

gmt grdimage mohns.grd $rgn $proj -Cage.cpt -Q -K > $psfile
gmt psxy mohns.ll $rgn $proj -W0.5p,darkgreen -L -O -K >> $psfile
gmt pscoast $rgn $proj -A100 -W0.1p -Dh -O >> $psfile

mohns.ll - polygon (2.81 KB) Mark, 2018-03-13 11:07

age.jpg - plot (1.1 MB) Mark, 2018-03-13 11:07


#1 Updated by Joaquim over 1 year ago

  • Status changed from New to In Progress

Can't confirm this. It works fine here (Win) and I can also confirm with Mirone that the mohns.grd grid is correct.

#2 Updated by Paul over 1 year ago

Likewise on OSX. Looks good here (6.0.0-r19941). Maybe too aggressive compilation with -O3 or something?

#3 Updated by Paul about 1 year ago

Mark, any update on this? We have nothing to go on.

#4 Updated by Mark about 1 year ago

A complete wipe, update of all libraries and reinstall seems to have fixed the problem.

Still none the wiser as to why it was happening...

Apologies for the trouble!


#5 Updated by Joaquim about 1 year ago

  • Status changed from In Progress to Closed

Also available in: Atom PDF