-
Notifications
You must be signed in to change notification settings - Fork 156
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
using the data output by wrf ,an exception occurs when plotting the rain distribution #167
Comments
Hi @xpji, Overall, NCL does a lot of things somewhat "behind the scenes", so I assume that the issue may be something to do with how you are defining the bounds of this data projection in Python (based on |
hello,@michaelavs
Looking forward to your reply!! |
Hi @xpji, |
hi@michaelavs ,of course,the code of NCL show as below:
|
Hello,@michaelavs, have you found the cause of the above problem? I use other wrf output files to find that I still get the same problem. I don't know if it is the problem of the drawing code or the file. Look forward to your reply. |
Hi @xpji,
Overall, I think the biggest culprit is that the data file is HDF5 formatted and that is causing some confusion for wrf-python and matplotlib overall. Another aspect to back this up is that I ran your code using a two different wrfout files, one being a different time step of the datafile used in the NCL-WRF example you were following, and did not have a problem with plotting the data, however, both of those wrfout files were pure netCDF files (i.e. the formatting wasn't HDF5, but netcdf). If this was an issue with wrf-python overall, I would not expect to have been able to successfully plot the data using your code, and should have seen the same issues we are seeing when using your dataset. Here is the working code I was able to create:
Output projection: You can definitely play around with the levels/ticks parameters, but from what I have seen, this is the most resolved version of the dataset that does not cause the lines through the projection. |
hi,@michaelavs
In any case, thank you very much for communicating with you and wishing you a happy life. |
Using ERA5 data as the initial field, after wrf simulation, the output file has an error in plotting the precipitation distribution, and a white line appears in the figure. But there is no problem using NCL
result and code show as below:
The text was updated successfully, but these errors were encountered: