-
Notifications
You must be signed in to change notification settings - Fork 213
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
pygmt.Figure.grdcontour kills kernel after running for a long time #1927
Comments
👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. You might also want to take a look at our contributing guidelines and code of conduct. |
@saeedmohanna Can you share with us the "src_inversion_5.nc" file, so that we can try to reproduce the issue? |
@seisman Unfortunately github doesn't let me attach the file directly. Here is a google drive link: https://drive.google.com/file/d/1Ll2qYqeOM882mV3wrjuwYFSSSgSFwyDR/view?usp=sharing |
Running the following GMT command, it also takes forever for me. @PaulWessel Is this an upstream bug or is there something wrong with the grid. I see something weird like:
|
I will have a look on the flight. It is probably a non-COARDS-compliant grid of some sort. |
@saeedmohanna FYI, the upstream bug is being tracked in GenericMappingTools/gmt#6738 |
I believe the upstream bug has been fixed in GenericMappingTools/gmt#6738, and the command at #1927 (comment) now works for me using the GMT dev version. Closing the issue. |
I am reading in a 722x480 array and trying to plot it with pygmt.Figure.grdcontour. The code runs for a long time before killing the kernel. I don't think this is a memory issue because I was able to plot a 360x240 array with grdcontour instantly. Is it stuck in some loop somewhere in the source code?
Please see attached. One shows the code outputting the desired result without contours (blocked out by white rectangle ) and the other shows the case with grdcontour being used.
Any help on this issue would be appreciated.
Without grdcontour:
![Screen Shot 2022-05-22 at 12 40 00 AM](https://user-images.githubusercontent.com/51676976/169684306-3103ab7c-bcd7-4888-b12d-aa79195cdfff.png)
With grdcontour:
![Screen Shot 2022-05-22 at 12 41 41 AM](https://user-images.githubusercontent.com/51676976/169684351-75adc530-6f86-4484-874a-85e901383249.png)
The text was updated successfully, but these errors were encountered: