dapper.elm package

Submodules

dapper.elm.utils module

ELM MET helpers: humidity conversions, packing parameters, legacy tables.

dapper.elm.utils.compute_humidities(temp, dewpoint_temp, surf_pressure)[source]

Ported by JPS from code written by Ryan Crumley. temp - (np.array) - array of air temperature values (temperature_2m) dewpoint_temp : (np.array) - array of dewpoint temperature values (dewpoint_temperature_2m); must be same length as temp

Returns:

RH - relative humidity (%) Q - specific humidity (kg/kg)

dapper.elm.utils.compute_specific_humidity_from_rh(temp_c, rh_percent, surf_pressure_pa)[source]
Compute specific humidity (kg/kg) from:

temp_c : air temperature in °C rh_percent : relative humidity in % surf_pressure_pa : surface pressure in Pa

dapper.elm.utils.elm_data_dicts()[source]

Defines some dictionaries for ELM-expected variables.

dapper.elm.utils.elm_var_packing_params(elm_var, data=(), dtype=<class 'numpy.int16'>)[source]

Compute robust offset and scale factor for BYPASS packing. Uses the preset range if data is empty, else the data min/max. dtype can be np.int16, np.int32, np.uint16, etc.

Module contents

ELM-specific numerics and legacy helpers.