Skip to content

hybrid_pressure

Import path: earth2studio.utils.interp.hybrid_pressure

View source on GitHub

Documentation

Pressure on hybrid sigma-pressure levels, p = a + b * surface_pressure.

Parameters:

  • a (ArrayLike) –

    Pressure coefficient of each level in Pa.

  • b (ArrayLike) –

    Dimensionless surface-pressure coefficient of each level.

  • surface_pressure (Tensor) –

    Surface pressure in Pa, any shape.

  • interfaces (bool, default: False ) –

    Whether a and b are given at the n + 1 layer interfaces, as ECMWF publishes them, by default False. Each of the n levels then takes the mean of the pressures at its two interfaces.

Returns:

  • Tensor –

    Pressure in Pa with a trailing level dimension, (*surface_pressure.shape, level), in surface_pressure's dtype.