earthkit.meteo.vertical.xarray.interpolate_sleve_to_theta_levels¶
- earthkit.meteo.vertical.xarray.interpolate_sleve_to_theta_levels(data, h, theta, target_theta, target_t_units='K', folding_mode='undef_fold', vertical_dim='z')¶
Interpolate a field from sleve levels to potential temperature coordinates.
- Parameters:
data (
xarray.DataArray) – field to interpolateh (
xarray.DataArray) – heighttheta (
xarray.DataArray) – potential temperature theta in Ktarget_theta (
listoffloat) – target coordinate valuestarget_t_units (
str) – target coordinate units, one of {“K”, “cK”}folding_mode (
str) – handle when the target is observed multiple times in a column, one of {“low_fold”, “high_fold”, “undef_fold”}vertical_dim (
str) – name of the vertical dimension
- Returns:
field on target (i.e., theta) coordinates
- Return type:
xarray.DataArray