halodrops.helper#
Submodules#
Package Contents#
Functions#
convert RH from % to fraction |
|
convert pressure from hPa to Pa |
|
convert temperature from C to K |
|
get the function to convert a variable to SI units based on its name |
|
Calculate saturation water vapor pressure |
|
Input : |
|
Input : |
Data#
API#
- halodrops.helper.l2_variables#
None
- halodrops.helper.encoding_variables#
None
- halodrops.helper.variable_compression_properties#
‘dict(…)’
- halodrops.helper.path_to_flight_ids#
‘{platform}/Level_0’
- halodrops.helper.path_to_l0_files#
‘{platform}/Level_0/{flight_id}’
- halodrops.helper.l2_flight_attributes_map#
None
- halodrops.helper.l2_filename_template#
‘{platform}{launch_time}{flight_id}_{serial_id}_Level_2.nc’
- halodrops.helper.get_bool(s)#
- halodrops.helper.convert_rh_to_si(value)#
convert RH from % to fraction
- halodrops.helper.convert_pres_to_si(value)#
convert pressure from hPa to Pa
- halodrops.helper.convert_tdry_to_si(value)#
convert temperature from C to K
- halodrops.helper.get_si_converter_function_based_on_var(var_name)#
get the function to convert a variable to SI units based on its name
- halodrops.helper.calc_saturation_pressure(temperature_K, method='hardy1998')#
Calculate saturation water vapor pressure
Input
temperature_K : array array of temperature in Kevlin or dew point temperature for actual vapor pressure method : str Formula used for calculating the saturation pressure ‘hardy1998’ : ITS-90 Formulations for Vapor Pressure, Frostpoint Temperature, Dewpoint Temperature, and Enhancement Factors in the Range –100 to +100 C, Bob Hardy, Proceedings of the Third International Symposium on Humidity and Moisture, 1998 (same as used in Aspen software after May 2018)
Return
e_sw : array saturation pressure (Pa)
Examples
calc_saturation_pressure([273.15]) array([ 611.2129107])
calc_saturation_pressure([273.15, 293.15, 253.15]) array([ 611.2129107 , 2339.26239586, 125.58350529])
- halodrops.helper.calc_q_from_rh(ds)#
Input :
ds : Dataset
Output :
q : Specific humidity values
Function to estimate specific humidity from the relative humidity, temperature and pressure in the given dataset.
- halodrops.helper.calc_theta_from_T(dataset)#
Input :
dataset : Dataset
Output :
theta : Potential temperature values
Function to estimate potential temperature from the temperature and pressure in the given dataset.