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
VerticallyUniformrelative 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.
Create a hash from all hashable component attributes.
set(variable, value)Set the values of a variable.
Convert model component into an xarray.Dataset.
Attributes
attrsDictionary containing all attributes.
data_varsDictionary containing all data variables and their dimensions.
netcdf_subgroupsDefine subgroups used when storing to netCDF file.
rh_funcstratosphere_coupling