Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

definition thermo_parcel_path(vector t_profile, vector td_profile, vector p_profile, definition start_condition)

...

Computes the path of an ascending thermodynamic parcel with the given start condition for the given vertical profile. It returns a definition suitable for plotting all the details of the parcel path into a thermodynamic diagram. The vertical profile is either specified as a set of vectors where:

    • t_profile: the temperature profile (in K or °C)
    • td_profile: the dew point temperature profile (in K or °C)
    • p_profile: the pressure profile (in Pa or hPa)

...

The start_condition is a definition that specifying the release can specify these four different modes:

...

The parcel is started from the surface, i.e. the lowest point of the profile. The format is as follows:

(mode: 'surface')

Custom

The parcel is started from the given temperature, dewpoint and pressure. The format is as follows:

(mode: 'custom', t: start_temperature, td: start_dewpoint, p: start_pressure)

Mean layer

The parcel is started from the mean temperature, dew point and pressure of a given pressure layer. The format is as follows:

(mode: 'mean_layer', p_top: layer_top, p_bottom: layer_bottom )

Please note that when p_bottom is omitted the layer starts at the surface.

...

The parcel is started from the most unstable condition. To determine this, a parcel is started from all the points along the profile in the specified pressure layer. The start position of the parcel that results in the highest CAPE value defines the most unstable start condition.

(mode: 'most_unstable', p_top: layer_top, p_bottom: layer_bottom )

Please note that when p_bottom is omitted the pressure layer starts at the surface.

...

Surface

The parcel is started from the surface, i.e. the lowest point of the profile.

...

Custom

The parcel is started from the given temperature, dewpoint and pressure.

Code Block
languagepy
(mode: 'custom',
t: start_temperature, 
td: start_dewpoint,  
p: start_pressure)

...

Mean layer

The parcel is started from the mean temperature, dew point and pressure of a given pressure layer.

Please note that when p_bottom is omitted the layer starts at the surface.

Code Block
languagepy
(mode: 'mean_layer',
p_top: layer_top,
p_bottom: layer_bottom )

Most unstable

...

The format is as follows:

(mode: 'most_unstable', p_top: layer_top, p_bottom: layer_bottom )

...

Please note that when p_bottom is omitted the pressure layer starts at the surface.

...

...

(mode: 'most_unstable',
p_top: layer_top,
p_bottom: layer_bottom )


The result is The function returns a definition with the following members:

...