FixedRH

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

Preserve the relative humidity profile under temperature changes.

__init__(rh_func=None, stratosphere_coupling=None)[source]

Create a humidity handler.

Parameters
  • rh_func (callable) – Callable that describes the vertical relative humidity distribution. If None, assume a VerticallyUniform relative humidity.

  • stratosphere_coupling (callable) – Callable that describes how the humidity should be treated in the stratosphere.

Methods

__init__([rh_func, stratosphere_coupling])

Create a humidity handler.

adjust_humidity(atmosphere, **kwargs)

Determine the humidity profile based on atmospheric state.

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.

rh_func

stratosphere_coupling