If I use the -Dl, the Matlab will force to quit without any warning.
If use the -Dc, it will be ok.
I try the code in Linux shell, and the grdmath -R107/111/15/19 -A10000/0/4 -Dl -I2m LDISTG = ../temp/dist_to_gshhg_hn2.nc just gives lot of waring, but it will create the file.
So, guess this maybe a small problem in Matlab only.
OK.
I got the warning message after changing to other specific area:
yangleir@DESKTOP-FVRFATD MINGW64 ~/Desktop
$ gmt grdmath -R119/124/31/37 -A10000/0/4 -Dl -I2m LDISTG = dist_to_gshhg_hn2.nc
grdmath [WARNING]: Near- or actual antipodal points encountered. Precision may be reduced slightly.
grdmath [WARNING]: Near- or actual antipodal points encountered. Precision may be reduced slightly.
grdmath [WARNING]: Near- or actual antipodal points encountered. Precision may be reduced slightly.
grdmath [WARNING]: Near- or actual antipodal points encountered. Precision may be reduced slightly.
grdmath [WARNING]: Near- or actual antipodal points encountered. Precision may be reduced slightly.
grdmath [WARNING]: Near- or actual antipodal points encountered. Precision may be reduced slightly.
grdmath [WARNING]: Near- or actual antipodal points encountered. Precision may be reduced slightly.
...
a lot same messages
In my computer, I have two versions of GMT. One is from the released GMT6.1.1 exe, and other is built from source code GMT6.1.0 . Both under win10.
Since it not easy to built GMT in win10. I just tried one time and not update it after that.
In addition, I found the self-built GMT from source code is some slower than that from exe.
Those antipolda point warnings are indeed annoying. Only one should be displayed I think (or a summery of how many points). And I think warning is not needed - perhaps relegate to -V level of information.