-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grdinfo -L doesn't work for external wrappers #8525
Comments
Hmm, it works for me in Julia
Shouldn't this be |
You're right. It's a typo in the original test. After changing to
|
If I change
|
Actually, For example, here is the original testapi_gmtgrid.c file in the
Its output is:
After changing
|
A yes, the pad. |
Once more: yes, the pad The example is correct without the -L0 because it only prints what's in the grid's header. But with it, it scans the grid and that's where the problem arises. With a
Now, is this a flaw of this simple example or is it a more fundamental issue in the API? I almost don't use the |
Or maybe the problem is in
|
I tried to comment out this line, and the new result is:
|
Which is the correct result. The NaNs originate in the test example that does not set the grid's z_min|max |
But |
Looking at the
Lines 823 to 840 in 206db56
The min/max in the grid header is only updated when Line 855 in 206db56
When output the grid information, Line 967 in 206db56
I think this is a bug. When
|
I agrre. Line 855 should become
|
Here is the C source codes that is modified from the
testapi_gmtgrid.c
function:Compiling and running the C program returns:
Without
-L0
, it returns:The text was updated successfully, but these errors were encountered: