GenericMappingTools / gmt

The Generic Mapping Tools
https://www.generic-mapping-tools.org
Other
858 stars 359 forks source link

grdcontour hanging #8387

Closed macpurity closed 8 months ago

macpurity commented 8 months ago

grdcontour gets hung when fed a grid file that has values very close to zero, but not exactly zero.

Please see the post on the GMT forum page. Data and two-line script were posted there.

System information

anbj commented 8 months ago

Link to forum post with script that causes hang: https://forum.generic-mapping-tools.org/t/grdcontour-gets-hung/4697.

seisman commented 8 months ago

maybe related to https://github.com/GenericMappingTools/pygmt/issues/1927 and https://github.com/GenericMappingTools/gmt/issues/6738

joa-quim commented 8 months ago

Can you please try if my fix fixes it too?

macpurity commented 8 months ago

Joaquim, not sure if that was directed to me, but I updated GMT to 6.6.0_09d27ad_2024.03.03 and it still hangs on my system.

joa-quim commented 8 months ago

John, it was actually meant to Dongdong but meanwhile I checked that this fix also fixes #6738 so I'll be merging this soon. To test it you need to build the branch, not from master.