vertical cross section strange result

61 views
Skip to first unread message

Evan Wellmeyer

unread,
May 19, 2024, 7:49:08 AM5/19/24
to wrfpython-talk
Hi everyone,  I am new to wrf-python and I was trying to plot a vertical cross section of theta_e through the eye of a hurricane and I got a weird result.  As a way to understand how I was supposed to do things, I tried to run the code for a vertical cross section of windspeed that is one the wrf-python website (changing only the in file and start/end points) and I get a weird result like before. It appears as though the grid orientation is somehow not being handled correctly.  Anyone seen the same issue or know what the problem is?

Thanks


windspeed_cross.pngcombined_plot.png

Will H

unread,
May 30, 2024, 1:01:41 PM5/30/24
to wrfpython-talk, evanwe...@gmail.com
Good morning. 

So the conda package hasn't been updated for a few years.  But the libraries that run it have.  This causes WRF python to break. 

Specifically it's netcdf that is causing it. 

WRF python needs older libraries then what is installed.  

So the way around it is to build a new environment but in a specific order. 

conda init bash
  conda activate base
  conda create -n wrf-python -y
  conda activate wrf-python
  conda install -c conda-forge netcdf4=1.5.8 -y --freeze-installed
  conda install -c conda-forge imageio=2.27.0 -y --freeze-installed
  conda install -c conda-forge basemap=1.3.6 -y --freeze-installed
  conda install -c conda-forge metpy=1.4.1 -y --freeze-installed
  conda install -c conda-forge wrf-python=1.3.4.1 -y --freeze-installed

  conda deactivate
  conda deactivate
  conda deactivate
Reply all
Reply to author
Forward
0 new messages