Skip to main content

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 using bokeh.
  • 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.git
  • cd vgrid
  • for the python interface (incl. compilation):
    1. python -m build
    2. pip install dist/pyvgrid*.whl
  • for the Fortran only: 0. BUILD_DIR=<where you want to build>; INSTALL_DIR=<where you want to install>
    1. cmake -B $BUILD_DIR -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR
    2. cmake --build $BUILD_DIR
    3. cmake --install $BUILD_DIR

Examples of use

  1. 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 -h to see other options of the command, especially to choose abscissa/ordinate among altitude, pressure, level number, level thickness (m or Pa).
  2. Plot a grid from a FA file, and emulate its re-creation through mkvgrid: cf. doc/test_vgrid_from_epygram.py

Documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyvgrid-1.0.1.tar.gz (26.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyvgrid-1.0.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ x86-64

pyvgrid-1.0.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

pyvgrid-1.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

pyvgrid-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pyvgrid-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

File details

Details for the file pyvgrid-1.0.1.tar.gz.

File metadata

  • Download URL: pyvgrid-1.0.1.tar.gz
  • Upload date:
  • Size: 26.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for pyvgrid-1.0.1.tar.gz
Algorithm Hash digest
SHA256 462a5b690294119f25dd415e7637682cdc1146f4aea7fd01ce07d1c2da6ef072
MD5 f166ba674cef426ecafd3559b1b3f82a
BLAKE2b-256 f56086cff1ba0a43f075e933099107cfe9ae08100da8b6bd52b1489966697df2

See more details on using hashes here.

File details

Details for the file pyvgrid-1.0.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyvgrid-1.0.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 269019e03b4fa739fc6060ee65cf6c26ad755dcef42b5f5441c1195e88a527bf
MD5 18ac73314cb177cf852d20947710068b
BLAKE2b-256 8e719954d4f030545977b981ffab5389897d39e547b894fae172613d587ff2f4

See more details on using hashes here.

File details

Details for the file pyvgrid-1.0.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyvgrid-1.0.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8ca667e62056ef5823ea921f6aa35d590f336df46ae8dffbca1292cc7b58dc5a
MD5 19c4c3c3753ef436c41f8a22933a614e
BLAKE2b-256 2b1d3c4a49ca54805abf79686e7d62cab897061c7847ffca80c65cdaec014af7

See more details on using hashes here.

File details

Details for the file pyvgrid-1.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyvgrid-1.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d355d59be4da1aa2f32927f94891ea690162686658f5a8d1fdb7780f8a7e7d9f
MD5 0876d8d520dd4fea2434de750bcbfc3d
BLAKE2b-256 5be12b32f4b3d2fb4a9ed6804769b1b659cede268145ea013ed83cc78d64b59f

See more details on using hashes here.

File details

Details for the file pyvgrid-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyvgrid-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9a88187406f260dea3cc0fdcc765a4ba342b459c488a090813db2fed3b918132
MD5 75cf6cc935bd2054a8651d89114a5963
BLAKE2b-256 31c21c23d073179d27769009f289501f893ed9de74306328cb71d1f9363bbac0

See more details on using hashes here.

File details

Details for the file pyvgrid-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyvgrid-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f89b1f81c32d0b6822aed71dc5e3931510efc43c66b202238db7528bcf7bb856
MD5 f872bc9f4d352e6e5b8ad84065eecc4e
BLAKE2b-256 1f167e5bb4e540780eee9bac94102ba79f19f5ee18528ea62274a561f120cf35

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page