Hello everyone.
I want to add a new variable “dbz” which represents the simulated radar reflectivity.
The python script consists of the following two lines:
import vapor_wrf
dbz = vapor_wrf.DBZ(P,PB,QRAIN,QGRAUP,QSNOW,T,QVAPOR)
However, there was error message as below:
Vapor 3.3.0.
OS: Windows 6.2 (9200)
Failed to calculate variable dbz
Failed to read variable “dbz” at time step (0), and
refinement level (-1) and level-of-detail (-1)
Failed to read region from variable/timestep/level/lod (dbz, 0, -1, -1)
PyRun_String() : Traceback (most recent call last):
File “”, line 1, in
File “C:\Program Files\VAPOR\share\python\vapor_wrf.py”, line 18, in
import vapor
ModuleNotFoundError: No module named ‘vapor’
Unfortunately, support for the vapor_wrf module has not yet been added to VAPOR3. There is an open issue for it on GitHub here:
Feel free to comment or upvote. That said, the VAPOR2 vapor_wrf Python module is included with VAPOR3. I was able to get the DBZ code to work with the following change: