PolynomialCshapedRH

class konrad.humidity.relative_humidity.PolynomialCshapedRH(*args, **kwargs)[source]

Defines a C-shaped polynomial model, that depends on T in the upper troposphere.

The RH increases linearly in the boundary layer from the surface. Between the top of the boundary layer and the freezing level (T=273.15K), the rh is a quadratic function of p, defined by its values at these to points, and a zero derivative at the freezing level. Above the freezing level, the rh is a quadratic function of T, defined by its values at the freezing level and at a chose upper-tropospheric T-value or at the cold point (see top_peak_T argument), and a zero derivative at the freezing level.

__init__(top_peak_T=200.0, top_peak_rh=0.75, freezing_pt_rh=0.4, bl_top_p=94000.0, bl_top_rh=0.85, surface_rh=0.75)[source]
Parameters
  • top_peak_T (float) – Temperature of the upper tropospheric peak. If None, coupled to the cold-point.

  • top_peak_rh (float in [0;1]) – value of relative humidity at the upper-tropospheric peak.

  • freezing_pt_rh (float in [0;1]) – value of relative humidity at the freezing point.

  • bl_top_p (float) – Pressure of the top of the boundary layer (bl) where the humidity peak is.

  • bl_top_rh (float in [0;1]) – value of the relative humidity at the top of the boundary layer.

  • surface_rh (float in [0;1]) – value of the relative humidity at the surface.

Methods

__init__([top_peak_T, top_peak_rh, ...])

param top_peak_T

Temperature of the upper tropospheric peak. If None, coupled to the cold-point.

create_variable(name[, data, dims])

Create a variable in the model component.

from_netcdf(ncfile[, timestep])

Load a model component from a netCDF file.

get(variable[, default, keepdims])

Get values of a given variable.

hash_attributes()

Create a hash from all hashable component attributes.

set(variable, value)

Set the values of a variable.

to_dataset()

Convert model component into an xarray.Dataset.

Attributes

attrs

Dictionary containing all attributes.

data_vars

Dictionary containing all data variables and their dimensions.

netcdf_subgroups

Define subgroups used when storing to netCDF file.