Vertical hybrid-pressure grids
Project description
VGRID
Vertical Hybrid-pressure grid generation
Components of the lib
This is composed of:
- A Fortran program (
src/mkvgrid/main.F90) for generating hybrid-pressure grid. - A Fortran library (
src/stdatm/) containing routines for standard atmosphere computations of altitude and pressure on grid levels. - A Python interface package
pyvgrid(src/pyvgrid/) to the Fortran program and library, including also utilities to plot grids usingbokeh. - Examples of namelists (
nam/) used to generate grids, including canonical ones.
Install
Using pip:
pip install pyvgrid
To recompile:
git clone https://github.com/ACCORD-NWP/vgrid.gitcd vgrid- for the python interface (incl. compilation):
python -m buildpip install dist/pyvgrid*.whl
- for the Fortran only:
0.
BUILD_DIR=<where you want to build>; INSTALL_DIR=<where you want to install>cmake -B $BUILD_DIR -DCMAKE_INSTALL_PREFIX=$INSTALL_DIRcmake --build $BUILD_DIRcmake --install $BUILD_DIR
Examples of use
-
Generation of a new grid from namelist and command-line:
- Prepare a namelist containing the parameters to tune, cf. examples in
nam/ mkvgrid <my_nam> [optionally_a_second_one_for_comparison]this will compute the grid, generate namelist blocks for NAMVV1 and NAMFPG, and open a html figure in your default browser- Option
-hto see other options of the command, especially to choose abscissa/ordinate among altitude, pressure, level number, level thickness (m or Pa).
- Prepare a namelist containing the parameters to tune, cf. examples in
-
Plot a grid from a FA file, and emulate its re-creation through
mkvgrid: cf.doc/test_vgrid_from_epygram.py
Documentation
- Scientific documentation by P.Benard (2008) is available on: http://www.umr-cnrm.fr/gmapdoc/IMG/pdf/memoeta0.pdf
- Examples of namelists (in
nam/) are auto-documented - Python interface is auto-documented
- More to come...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyvgrid-1.0.0.tar.gz.
File metadata
- Download URL: pyvgrid-1.0.0.tar.gz
- Upload date:
- Size: 26.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4657612a82253d85e6150b42ed5729cef8bbb19b94d4a6df69a86020a44b10bb
|
|
| MD5 |
3800889d478b83369151fdf6353e557f
|
|
| BLAKE2b-256 |
3d890f32a52166ae88e40f1b4a202a6e772d8fb28e072ef468fb6947d5e11103
|
File details
Details for the file pyvgrid-1.0.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: pyvgrid-1.0.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.13t, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f76112a130558344abb42fdf835d41b094f3f334cfce6a3f573e9326ad540d88
|
|
| MD5 |
fb7f8098a1cd7f4f7f1ef33ba1b7b6f2
|
|
| BLAKE2b-256 |
7dfb06736f0e01904a3beffbc092956138764eec722693c5dc6d392c3519393c
|
File details
Details for the file pyvgrid-1.0.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: pyvgrid-1.0.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
934eec46aa80573a7e049dd4863f4b5ab71fa0441a60537011b23ceeaae88d51
|
|
| MD5 |
3612f82b24ba0ef8c721ca40b2dbd128
|
|
| BLAKE2b-256 |
5cb9efb46951ce64d73463b72983678130c35bdabd04f8f87d3dc1834ad7641a
|
File details
Details for the file pyvgrid-1.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: pyvgrid-1.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d43299dd261cb06536ba5a6521e2b592e4532fa145c66dbb89c8c88723d58431
|
|
| MD5 |
884ab2be63d7f73f054b7a75a6128666
|
|
| BLAKE2b-256 |
257141c6337f8886d77162c7dc6512f35042a2c657f9693506141d1ced435d71
|
File details
Details for the file pyvgrid-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: pyvgrid-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3fe440157b1ed4e66e82b5ea172b64ad8f8f242d8ac70dde5ca377bcdf5f759
|
|
| MD5 |
579c2bb3de0e21712d9aee6537bdf4ed
|
|
| BLAKE2b-256 |
e2021f071878077a24e8fdfe5cf39b3351ee229ea862678c9ed2f584df7b8537
|
File details
Details for the file pyvgrid-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: pyvgrid-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f1754d996355de6adbd1e6f6bd62102ab37e09dac09c5df00baa833469336e5
|
|
| MD5 |
f436966e14d5604c58c83e3d0fd14ea1
|
|
| BLAKE2b-256 |
eb0ab44511fac3e16cdd82db57a24f50afbf3d5eea45c903374f17f847682111
|