improver.psychrometric_calculations.temperature_saturated_air_parcel module#
module to calculate the temperature of a saturated air parcel that has ascended adiabatically from the cloud condensation level (CCL) to a pressure level.
- class TemperatureSaturatedAirParcel(pressure_level=50000.0)[source]#
Bases:
BasePluginPlugin to calculate the temperature of a saturated air parcel as it rises adiabatically from the cloud condensation level (CCL) to a pressure level. The default is set at 500 hPa for the Lifted Index (LI) calculations.
- __init__(pressure_level=50000.0)[source]#
Set up class
- Parameters:
pressure_level (
float) – The pressure level that the air parcel is lifted to adiabatically from the cloud condensation level. (Pa)
- _abc_impl = <_abc._abc_data object>#
- make_saturated_relative_humidity_cube()[source]#
Creates a cube of relative humidity at the cloud condensation level (CCL) with a value of 1.0, as by definition the relative humidity is 100 percent at the CCL.
The temperature cube is used as a template for the metadata of the relative humidity cube. Only the name and units will be replaced.
- Return type:
- Returns:
A cube of relative humidity at the CCL with a value of 1.0.
- make_temperature_cube(temp_after_saturated_ascent)[source]#
Puts the temperature information into a cube with appropriate metadata. Uses self.temperature as a template for the metadata of the temperature cube. Only the name and units will be replaced.
- Parameters:
temp_after_saturated_ascent (
ndarray) – An n dimensional array of the temperature after a saturated air parcel has been lifted adiabatically from the cloud condensation level (CCL) to a pressure level (K).- Return type:
- Returns:
A cube of the temperature of a saturated air parcel when it has been lifted adiabatically from the CCL to another pressure level (K)
- parcel_temp_after_ascent()[source]#
Calculates the temperature of a saturated air parcel when it has been lifted from the CCL to a pressure level. This has been set at 500 hPa for the easy calculation of Lifted Index (LI).
- Return type:
array- Returns:
Array of temperature of an air parcel at a pressure level (K)