improver.psychrometric_calculations.cloud_condensation_level module

Module to contain CloudCondensationLevel plugin.

class CloudCondensationLevel(model_id_attr=None)[source]

Bases: PostProcessingPlugin

Derives the temperature and pressure of the convective cloud condensation level from near-surface values of temperature, pressure and humidity mixing ratio.

__init__(model_id_attr=None)[source]

Set up class

Parameters:

model_id_attr (Optional[str]) – Name of model ID attribute to be copied from source cubes to output cube

_abc_impl = <_abc_data object>
_iterate_to_ccl()[source]

Uses a Newton iterator to find the pressure level where the adiabatically-adjusted temperature equals the saturation temperature. Returns pressure and temperature arrays.

Return type:

Tuple[ndarray, ndarray]

_make_ccl_cube(data, is_temperature)[source]

Puts the data array into a CF-compliant cube

Return type:

Cube

process(cubes)[source]

Calculates the cloud condensation level from the near-surface inputs.

Parameters:

cubes (List[Cube]) – Cubes, in this order, of temperature (K), pressure (Pa) and humidity mixing ratio (kg kg-1)

Return type:

Tuple[Cube, Cube]

Returns:

Cubes of air_temperature_at_cloud_condensation_level and air_pressure_at_cloud_condensation_level