NCAR / wrf-python

A collection of diagnostic and interpolation routines for use with output from the Weather Research and Forecasting (WRF-ARW) Model.
https://wrf-python.readthedocs.io
Apache License 2.0
410 stars 155 forks source link

Make a Utility Similar to NCL's plotgrids_new.ncl #17

Open bladwig1 opened 7 years ago

bladwig1 commented 7 years ago

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).

palexandremello commented 6 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.

gbromley commented 6 years ago

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.

bladwig1 commented 6 years ago

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!