Skip to content

Instantly share code, notes, and snippets.

@Quba1
Quba1 / comp_ecmwf_gepot_at_ml.py
Created December 13, 2022 14:45
High-level python script for computing geopotential, geopotential height, and geometric height on ECMWF model levels from a GRIB file
import cfgrib
import numpy
from typing import NamedTuple
import gc
"""
This script produces output within +/- 0.5 m2.s-2 of the ECMWF reference output
It is not optimised, so it is slower than the reference script
Variables naming follows the nomenclature used in the ECMWF documentation: