VshapeT

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

Fix the relative humidity to a V-shaped profile in temperature space

The V-shape is defined by two linear segments in temperature space: One beingroughly between the top of the boundary layer and the freezing-level. And one between the freezing-level and the cold-point.

__init__(rh_surface=0.8, rh_minimum=0.4, rh_coldpoint=0.8, T_boundary=290, T_coldpoint=200)[source]
Parameters
  • rh_surface (float) – Relative humidity at T > T_boundary.

  • rh_minimum (float) – Mininmum RH at T = 250 K.

  • rh_coldpoint (float) – Relative humidity at jT < `T_coldpoint.

  • T_boundary (float) – Tropospheric temperature above which RH = rh_surface.

  • T_coldpoint (float) – Tropospheric temperature below which RH = rh_coldpoint.

Methods

__init__([rh_surface, rh_minimum, ...])

param rh_surface

Relative humidity at T > T_boundary.

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.