The phyex1D python module runs 1D atmospheric simulations using ideal cases described in a "common format" file. The physics is provided by the PHYEX package, also used by the Meso-NH and AROME models.
Online documentation is here.
The installation procedure is as follows:
# phyex1d and DEPHY-SCM installation
pip install phyex1d
git clone https://github.com/GdR-DEPHY/DEPHY-SCM.git
# PHYEX compilation
git clone https://github.com/UMR-CNRM/PHYEX.git
pip install -r PHYEX/requirements.txt
. PHYEX/tools/env.sh
cd PHYEX/build/with_ecbuild
./make_ecbuild.sh
cd ../../..
An easy install procedure also exists:
wget https://github.com/SebastienRietteMTO/phyex1d/raw/refs/heads/main/easy_install.sh
chmod +x easy_install.sh
./easy_install.sh INSTALL_DIR MODE
with MODE being 'maxidev', 'dev' or 'user'.
The ARMCU case can be run with the following command:
. PHYEX/tools/env.sh
phyex1d ./DEPHY-SCM/ARMCU/REF/ARMCU_REF_SCM_driver.nc --exp dt=60 --plot rc.png rc y_var=P
And a rc plot is available in the rc.png file.
Instead of using a netCDF driver file, you can build a case programmatically
from an xarray Dataset using CaseXarray. A complete example with profiles,
forcing and plots is available at
examples/case_xarray_demo.py.
- PHYEX:
- MesoNH:
- AROME:
- Common format: