Entrainment

class konrad.entrainment.Entrainment(*args, **kwargs)[source]

Base class to define abstract methods for all entrainment handlers.

__init__()

Methods

__init__()

create_variable(name[, data, dims])

Create a variable in the model component.

entrain(T, atmosphere)

Entrain air masses to the atmosphere column.

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.