Open seisman opened 3 weeks ago
Yep. This works
C:\v>echo 60 110 | gmt plot -Rd -JQ10i -Baf -BWSen -N -Gred -Sc7p -png lixo
but this, not
Julia> plot([60 110], region="d", projection="Q10i", marker="c0.3c", fill="red", no_clip=true, Vd=1)
psxy -Rd -JQ10i -Baf -BWSen -N -Gred -Sc7p -P -K > c:\TMP/GMTjl_j.ps
psxy [WARNING]: Latitude (110) at line # 1 exceeds -|+ 90! - set to NaN
See https://forum.generic-mapping-tools.org/t/plotting-points-out-of-90-degree-range/5479 for the initial issue report.
To reproduce the issue:
The error
plot [WARNING]: Latitude (110) at line # 1 exceeds -|+ 90! - set to NaN
comes from thegmtlib_process_binary_input
function. https://github.com/GenericMappingTools/gmt/blob/65e0917c21ca5b159f32a87358468d3fe987cb26/src/gmt_io.c#L4839The equivalent CLI version works as expected. The reason is that, for GMT CLI,
gmtio_ascii_input
is called to read the data points, but for external wrappers, data are passed in binary buffers, so thegmtio_bin_input
is called instead.I guess the same issue exists for GMT.jl, so it should be declared as a GMT bug.