[nclpy-group] Python versions of WRF-NCL Fortran routines

Mary Haley haley at ucar.edu
Fri Nov 6 11:39:58 MST 2015


Hi folks,

I don't know if we have any WRF users in this group, but if we do, I wanted
to give you a heads up that we are planning to wrap all of the WRF-NCL
Fortran routines into Python.  This is something we've had requests for
over the years, but never got around to.

Bill Ladwig, who joined the NCL team two weeks ago, had already created a
Python version of "wrf_user_getvar" in his previous job, and has wrapped
most of the Fortran routines using a python tool called "f2py".

The f2py tool wraps the Fortran code directly, so it's not going to handle
the case of multiple time steps, like wrf_user_getvar does with the "-1"
option:

   slp = wrf_user_getvar(f,"slp",-1)

If any of you are users of the wrf_user_getvar routine, we would like to
know how important is the "-1" feature?  I'm thinking that we can get
something to users pretty quickly using "f2py", but then users will do the
time step looping themselves in their Python scripts.

We would appreciate hearing from any of you, if you have an opinion.  :-)
 If you know of any WRF users that may be interested in this Python
interface, feel free to forward my email to them.

Thanks,

--Mary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/nclpy-group/attachments/20151106/529713db/attachment.html 


More information about the nclpy-group mailing list