MidLevelCloud¶
- class konrad.cloud.MidLevelCloud(*args, **kwargs)[source]¶
Representation of a mid-level cloud.
Mid-level clouds are coupled to the freezing level.
- __init__(atmosphere, *args, **kwargs)[source]
Initialize a conceputal mid-level cloud.
Methods
__init__(atmosphere, *args, **kwargs)Initialize a conceputal mid-level cloud.
create_variable(name[, data, dims])Create a variable in the model component.
from_atmosphere(atmosphere, **kwargs)Initialize a cloud component matching the given atmosphere.
from_netcdf(ncfile[, timestep])Load a model component from a netCDF file.
get(variable[, default, keepdims])Get values of a given variable.
get_cloud_optical_properties(water_content)get_p_data_array(values[, units])Return a DataArray of values.
get_waveband_data_array(values[, units, sw])Return a DataArray of values.
Create a hash from all hashable component attributes.
interpolation_function(cloud_parameter)Calculate the interpolation function, to be used to maintain the cloud optical properties and keep the cloud attached to a normalisation level (self._norm_index).
overcast()Set cloud fraction in cloud layers to
1(full overcast).set(variable, value)Set the values of a variable.
shift_cloud_profile(norm_new)shift_property(cloud_parameter, ...)Shift the cloud area fraction according to a normalisation level.
Convert model component into an xarray.Dataset.
update_cloud_profile(atmosphere[, ...])Update the cloud profile depending on the atmospheric state.
update_cloud_top_plev(atmosphere[, ...])Determine cloud top pressure depending on coupling mechanism.
update_cloud_top_temperature(atmosphere)Determine the cloud top temperature
Attributes
attrsDictionary containing all attributes.
data_varsDictionary containing all data variables and their dimensions.
direct_input_parametersnetcdf_subgroupsDefine subgroups used when storing to netCDF file.
num_longwave_bandsnumber of longwave bands used in the radiation scheme
num_shortwave_bandsnumber of shortwave bands used in the radiation scheme