What are required variables in wrfout file for wrf-python run

166 views
Skip to first unread message

Linh Tran

unread,
Jul 23, 2019, 1:48:24 AM7/23/19
to wrfpython-talk
Hi everyone, I have limited the variables in the wrfout files to reduce the size, however  when I used wrf-python to plot sea level pressure field, an error message was informed as below
"Traceback (most recent call last):
  File "
2pwrfout_slp.py", line 82, in <module>
    slp = getvar(ncfile, "
slp",timeidx=desired_time_index)
  File "
/g/data3/hh5/public/apps/miniconda3/envs/analysis3-19.04/lib/python3.6/site-packages/wrf/routines.py", line
    meta, _key, **kwargs)
  File "
/g/data3/hh5/public/apps/miniconda3/envs/analysis3-19.04/lib/python3.6/site-packages/wrf/metadecorators.py"
    result = wrapped(*new_args)
  File "
/g/data3/hh5/public/apps/miniconda3/envs/analysis3-19.04/lib/python3.6/site-packages/wrf/decorators.py", li
    return do_conversion(wrapped(*args, **kwargs), unit_type,
  File "
/g/data3/hh5/public/apps/miniconda3/envs/analysis3-19.04/lib/python3.6/site-packages/wrf/g_slp.py", line 79
    meta=False, _key=_key)
  File "
/g/data3/hh5/public/apps/miniconda3/envs/analysis3-19.04/lib/python3.6/site-packages/wrf/util.py", line 229
    for var in varlist}
  File "
/g/data3/hh5/public/apps/miniconda3/envs/analysis3-19.04/lib/python3.6/site-packages/wrf/util.py", line 229
    for var in varlist}
  File "
/g/data3/hh5/public/apps/miniconda3/envs/analysis3-19.04/lib/python3.6/site-packages/wrf/util.py", line 222
    result = wrfin.variables[varname][timeidx, :]
KeyError: 'QVAPOR'
"
Actually, there is no QVAPOR in my wrfout files. I would like to ask how to know all required variables in the output file of WRF to let wrf-python run successfully.  Any suggestion is much appreciated!

Thomas Owen Mazzetti

unread,
Feb 22, 2021, 5:18:17 PM2/22/21
to wrfpython-talk
I could use the answer to this question too.
Reply all
Reply to author
Forward
0 new messages