-
Notifications
You must be signed in to change notification settings - Fork 224
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
OSError when using pygmt.grdimage with shading=True param #638
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. |
你好 @liwentao-319, thanks for raising the issue and the kind words! What you are experiencing with In the meantime, if you really want
I've not seen this error before, might be a Windows thing, and I'll only have access to a Windows machine to check this. My guess is that you're on the 'E:' drive but it's trying to write to the 'C:' drive and this doesn't work. You could try without the Also, in the future, please post your error messages as text instead of as a screenshot, this will help users in the future to more easily search for the same issue! |
OK, I will try it and post my codes and error messages as text next time. And thanks for your reply! |
@liwentao-319 As mentioned by @weiji14, this issue may be caused by an upstream GMT bug. In PR GenericMappingTools/gmt#4328, a related bug was fixed, and the PR may also fix the issue you're having. It would be good if you can try your scripts with the GMT development version. As an Anaconda user, you can run |
@seisman The command you advised works well. Thank you very much!! |
Description of the problem
Hi!
Yesterday I installed gmt6 and pygmt with conda on win10 system. It is very easy to use. I have ploted some figures with pygmt module. It is all fine until I add shading=True to pygmt.grdimage. Besides I can't pass the grid (xarray.DataArray) to call_module("grdgradient") using virtual_from_grid. The error is something about
"access violation reading", and I need some help to sovle this !!
code1 -> error1
code2->error2
System information
The text was updated successfully, but these errors were encountered: