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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

pyvgrid-1.0.2-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.2-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.2-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.2-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.2-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.2-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyvgrid-1.0.2-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5afd69ef647273f426c14978102838003f42c61f02c62a26ddd0fce9c2e5c472
MD5 1cb6e2c14a8b542aadb216fab731598a
BLAKE2b-256 5136f7874911a0942e4dd49b08c849f42e8449a4e933a7ccaa125e4ec5bb8358

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyvgrid-1.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 82802395e4d62a2f8a54e41f002a233ebe6c81dde2e4e7480cb9ce6e89a663da
MD5 5961ceff5551e465a0a1c9807864d973
BLAKE2b-256 7360025d5e6d61d279019a5ad68ac5e2e66e590fa72b304721deb5611541dc99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyvgrid-1.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0788163c4a9bb298a0db6d1060fdeb2203ee6a886650a3be8ab800e5b694bd88
MD5 016ba6bef2e4f3d519c4de3fa98f2b30
BLAKE2b-256 79ba8667f2d74ff9be6363bba3a3302761d41d2081ae52c6de03b3b7e67313ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyvgrid-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1e3ec1dce1023771f9f4664637742c59ee630d41998ff8a9abe8311bc676fad0
MD5 d7e39560fd2e06af92c0b3b5b9b064da
BLAKE2b-256 f9b53fc5e37b037ca4964614734b9060302c4d74fa40983f01b36c1e1198f32e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyvgrid-1.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 86c8e142326d71e4704f8154292cc4ca4c7caebc16bce428d92fb86db7ba4e93
MD5 cda7813b5586332c4375f2cff902c618
BLAKE2b-256 3afffce440cac20cbcc9f0c457e9c55648ca1280f23ddbcbd8bd92ac064b8a3f

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