Skip to content

SebastienRietteMTO/phyex1d

Repository files navigation

phyex1d: 1D model using PHYEX

Description

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.

Usage

Installation

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'.

Experiment

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.

Creating a case from xarray data

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.

Main references

About

1D model using PHYEX

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENCE-fr.txt
Unknown
LICENSE-en.txt

Stars

1 star

Watchers

1 watching

Forks

Packages

 
 
 

Contributors