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

Hashes for pyvgrid-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4657612a82253d85e6150b42ed5729cef8bbb19b94d4a6df69a86020a44b10bb
MD5 3800889d478b83369151fdf6353e557f
BLAKE2b-256 3d890f32a52166ae88e40f1b4a202a6e772d8fb28e072ef468fb6947d5e11103

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyvgrid-1.0.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f76112a130558344abb42fdf835d41b094f3f334cfce6a3f573e9326ad540d88
MD5 fb7f8098a1cd7f4f7f1ef33ba1b7b6f2
BLAKE2b-256 7dfb06736f0e01904a3beffbc092956138764eec722693c5dc6d392c3519393c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyvgrid-1.0.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 934eec46aa80573a7e049dd4863f4b5ab71fa0441a60537011b23ceeaae88d51
MD5 3612f82b24ba0ef8c721ca40b2dbd128
BLAKE2b-256 5cb9efb46951ce64d73463b72983678130c35bdabd04f8f87d3dc1834ad7641a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyvgrid-1.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d43299dd261cb06536ba5a6521e2b592e4532fa145c66dbb89c8c88723d58431
MD5 884ab2be63d7f73f054b7a75a6128666
BLAKE2b-256 257141c6337f8886d77162c7dc6512f35042a2c657f9693506141d1ced435d71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyvgrid-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e3fe440157b1ed4e66e82b5ea172b64ad8f8f242d8ac70dde5ca377bcdf5f759
MD5 579c2bb3de0e21712d9aee6537bdf4ed
BLAKE2b-256 e2021f071878077a24e8fdfe5cf39b3351ee229ea862678c9ed2f584df7b8537

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyvgrid-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0f1754d996355de6adbd1e6f6bd62102ab37e09dac09c5df00baa833469336e5
MD5 f436966e14d5604c58c83e3d0fd14ea1
BLAKE2b-256 eb0ab44511fac3e16cdd82db57a24f50afbf3d5eea45c903374f17f847682111

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