Open bladwig1 opened 7 years ago
I'm working a module to visualize the wrf-domain with python using the plotgrids_new.ncl as example... I will share my module when I did finish.
Any update on this? I was trying to make an implementation with cartopy when I stumbled across this feature request. I made it in basemap, but I cannot figure out how to implement the same thing in cartopy. Thanks.
This hasn't been implemented. However, you should be able to get the cartopy CRS by using the getproj function (see https://wrf-python.readthedocs.io/en/latest/user_api/generated/wrf.getproj.html#wrf.getproj) to get the WrfProj subclass, and call .cartopy() on it to get the cartopy CRS. Then create a figure with this projection. You will need the lat/lon corner points to draw the line segments and use the plot function with 'transform=PlatteCarree()' to make the line segments (see the gray line for the example at the bottom: https://scitools.org.uk/cartopy/docs/v0.16/matplotlib/intro.html).
If that doesn't help, you can post your code or feel free to ask me how to do something. If you get a script that works, please contribute!
It would be nice to have a utility to view the domain nests, similar to plotgrids_new.ncl. This way wrf-python users would no longer need to install NCL just to view the domain (prior to running the model).