4.7.1.6. meteo_si.temperature

4.7.1.6.1. Module Contents

4.7.1.6.1.1. Functions

kelvin_2_celsius(T)

Convert the temperature from Kelvin to Celsius.

celsius_to_kelvin(C)

Convert the temperature from Celsius to Kelvin.

T_virt_rh(T, rh, p)

Calculate the virtual temperature from air temperature,

T_virt_q(T, q)

Calculate the virtual temperature from air temperature and specific

T_pot(T, p, p0=100000)

Calculate potential temperature

kelvin_2_celsius(T)[source]

Convert the temperature from Kelvin to Celsius.

Parameters

T – Temperature in Kelvin.

Returns

Temperature in Celsius.

Return type

C

celsius_to_kelvin(C)[source]

Convert the temperature from Celsius to Kelvin.

Parameters

C – Temperature in Celsius.

Returns

Temperature in Kelvin.

Return type

T

T_virt_rh(T, rh, p)[source]

Calculate the virtual temperature from air temperature, pressure, and relative humidity.

Parameters
  • T – Temperature in in K

  • rh – relative humidity in Pa/Pa

  • p – pressure in Pa

Returns

Virtual temperature in K

Return type

T_virt

T_virt_q(T, q)[source]

Calculate the virtual temperature from air temperature and specific humidity.

Parameters
  • T – Temperature in in K

  • q – specific humidity in kg/kg

Returns

Virtual temperature in K

Return type

T_virt

T_pot(T, p, p0=100000)[source]

Calculate potential temperature

Parameters
  • T – Temperature in in K

  • p – pressure in Pa

  • p0 – reference pressure in Pa (default 100000)

  • optional – reference pressure in Pa (default 100000)

Returns

Potential temperature in K

Return type

float