ConceptualCloud¶
- class konrad.cloud.ConceptualCloud(*args, **kwargs)[source]¶
- __init__(atmosphere, cloud_top, depth, cloud_fraction, water_path=0.1, particle_size=100.0, phase='ice', coupling='pressure')[source]
Initialize a conceptual cloud.
- Parameters
atmosphere (konrad.atmosphere.Atmosphere) – Atmosphere model.
cloud_top (float) – Pressure at cloud top [Pa].
depth (float) – Cloud depths in pressure units [Pa].
cloud_fraction (float) – Cloud fraction [0-1].
water_path (float) – Integrated water path [g m^-2].
particle_size (float) – Cloud particle size [microns].
phase (str) – Phase of cloud particles, either “ice” or “liquid”.
coupling (str) –
Mechanism with which the cloud top is coupled to the atmosphere profile:
”pressure”: Fixed at given pressure.
”convective_top”: Coupled to the convectio top.
”freezing_level”: Coupled to the freezing level.
”subsidence_divergence: Coupled to the maximum subsidence divergence.
”temperature:TTT”: Coupled to the level where the temperature falls below TTT K.
Methods
__init__
(atmosphere, cloud_top, depth, ...)Initialize a conceptual 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
attrs
Dictionary containing all attributes.
data_vars
Dictionary containing all data variables and their dimensions.
direct_input_parameters
netcdf_subgroups
Define subgroups used when storing to netCDF file.
num_longwave_bands
number of longwave bands used in the radiation scheme
num_shortwave_bands
number of shortwave bands used in the radiation scheme