Cess76

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

Relative humidity model following Cess (1976).

The relative humidity profile depends on the surface temperature. This results in moister atmospheres at warmer temperatures.

__init__(rh_surface=0.8, T_surface=288)[source]

Initialize a humidity model.

Parameters
  • rh_surface (float) – Relative humidity at the surface.

  • T_surface (float) – Surface temperature [K].

Methods

__init__([rh_surface, T_surface])

Initialize a humidity model.

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.

omega

Temperature dependent scaling factor for the RH profile.