operators.vertical_extrapolation

Vertical extrapolation operators.

Functions

extrapolate_geopotential_sfc2p(h_sfc, t_sfc, ...)

Extrapolate geopotential to a target pressure level.

extrapolate_k2p(field, p_target[, mode])

Extrapolate a field to a target pressure level.

extrapolate_temperature_sfc2p(t_sfc, h_sfc, ...)

Extrapolate temperature to a target pressure level.

meteodatalab.operators.vertical_extrapolation.extrapolate_geopotential_sfc2p(h_sfc: DataArray, t_sfc: DataArray, p_sfc: DataArray, p_target: float) DataArray[source]

Extrapolate geopotential to a target pressure level.

Implements the algorithm described in [1]_. The algorithm extrapolates geopotential from the surface to a target pressure level using a polynomial expression of a dimensionless variable y, which is a function of the surface temperature, surface pressure, and height. It assumes a constant lapse rate of 0.0065 K m^-1 and dry air gas constant.

Parameters:
  • h_sfc (xr.DataArray) – Surface height [m].

  • t_sfc (xr.DataArray) – Surface temperature [K].

  • p_sfc (xr.DataArray) – Surface pressure [Pa].

  • p_target (float) – Target pressure level [Pa].

Returns:

Extrapolated geopotential at the target pressure level.

Return type:

xr.DataArray

References

meteodatalab.operators.vertical_extrapolation.extrapolate_k2p(field: DataArray, p_target: float, mode: Literal['constant'] = 'constant') DataArray[source]

Extrapolate a field to a target pressure level.

Currently, only the ‘constant’ extrapolation mode is implemented, where the extrapolation is done by simply extending the values of the lowermost model level to the target pressure level.

Parameters:
  • field (xr.DataArray) – Field to extrapolate.

  • p_target (float) – Target pressure level [Pa].

  • mode (str, optional) – Extrapolation mode. Currently only ‘constant’ is implemented.

Returns:

Extrapolated field at the target pressure level.

Return type:

xr.DataArray

References

meteodatalab.operators.vertical_extrapolation.extrapolate_temperature_sfc2p(t_sfc: DataArray, h_sfc: DataArray, p_sfc: DataArray, p_target: float) DataArray[source]

Extrapolate temperature to a target pressure level.

Implements the algorithm described in [1]_. The algorithm extrapolates temperature from the surface to a target pressure level using a polynomial expression of a dimensionless variable y, which is a function of the surface temperature, surface pressure, and height. It assumes a constant lapse rate of 0.0065 K m^-1 and dry air gas constant.

Parameters:
  • t_sfc (xr.DataArray) – Surface temperature [K].

  • h_sfc (xr.DataArray) – Surface height [m].

  • p_sfc (xr.DataArray) – Surface pressure [Pa].

  • p_target (float) – Target pressure level [Pa].

Returns:

Extrapolated temperature at the target pressure level.

Return type:

xr.DataArray

References