hybrid_pressure¶
Import path: earth2studio.utils.interp.hybrid_pressure
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
aandbare given at then + 1layer interfaces, as ECMWF publishes them, by default False. Each of thenlevels 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), insurface_pressure's dtype.