PhysicalCloud¶
- class konrad.cloud.PhysicalCloud(*args, **kwargs)[source]¶
Define a cloud based on physical properties.
The physical properties are cloud ice and liquid mass (per model level) and particle size. To be used with cloud_optical_properties=’liquid_and_ice_clouds’ in climt/RRTMG.
- __init__(numlevels, cloud_fraction, mass_water, mass_ice, ice_particle_size, droplet_radius)[source]
Initialize a cloud component.
- Parameters
numlevels (int) – Number of atmospheric levels.
cloud_fraction (float / ndarray / DataArray) – cloud area fraction
mass_ice (float / ndarray / DataArray) – mass content of cloud ice [kg m-2]
mass_water (float / ndarray / DataArray) – mass content of cloud liquid water [kg m-2]
ice_particle_size (float / ndarray / DataArray) – cloud ice particle size [micrometers]
droplet_radius (float / ndarray / DataArray) – cloud water droplet radius [micrometers]
Methods
__init__
(numlevels, cloud_fraction, ...)Initialize a cloud component.
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_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.
overcast
()Set cloud fraction in cloud layers to
1
(full overcast).set
(variable, value)Set the values of a variable.
Convert model component into an xarray.Dataset.
update_cloud_profile
(*args, **kwargs)Keep the cloud fixed with pressure.
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.
num_longwave_bands
number of longwave bands used in the radiation scheme
num_shortwave_bands
number of shortwave bands used in the radiation scheme