operators.theta

algorithm to compute the potential temperature theta in K.

Functions

compute_theta(p, t)

Potential temperature in K.

meteodatalab.operators.theta.compute_theta(p: DataArray, t: DataArray) DataArray[source]

Potential temperature in K.

Parameters:
  • p (xarray.DataArray) – pressure in Pa

  • t (xarray.DataArray) – air temperature in K

  • Constants

  • ---------

  • temperature (Reference surface pressure for computation of potential)

  • 1.0e5 (p0 =)

Returns:

potential temperature in K

Return type:

xarray.DataArray