GenericMappingTools / gmt

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

More annoying warnings #7140

Closed joa-quim closed 1 year ago

joa-quim commented 1 year ago
julia> GMT.cornerplot(randn(500,3), hexbin=(inc=0.2,))
gmtbinstats [WARNING]: (y_max-y_min) must equal (NY + eps) * y_inc), where NY is an integer and |eps| <= 0.0001.
gmtbinstats (gmt_api.c:2071(gmtapi_init_grdheader)): Please select compatible -R and -I values
gmtbinstats [WARNING]: (y_max-y_min) must equal (NY + eps) * y_inc), where NY is an integer and |eps| <= 0.0001.
gmtbinstats (gmt_api.c:2071(gmtapi_init_grdheader)): Please select compatible -R and -I values
gmtbinstats [WARNING]: (y_max-y_min) must equal (NY + eps) * y_inc), where NY is an integer and |eps| <= 0.0001.
gmtbinstats (gmt_api.c:2071(gmtapi_init_grdheader)): Please select compatible -R and -I values

The problem here is trickier because the warnings are printed by a generic function used by several modules, but it doesn't make sense with binhex because for those the increment (-I) can only be a scalar (x_inc), so there is no way other than pass a fully satisfying -R, which is not that simple to compute.

PaulWessel commented 1 year ago

Can you elaborate on what CLI command might show this?

joa-quim commented 1 year ago

This happened with internally generated commands. Something like

gmtbinstats  -I0.2 -Cn -Th -R-3.782165717/3.241679265/-3.075370795/3.056730677