compute_relative_humidity#
- geobricks.compute_relative_humidity(*, dewpoint_input_file, temperature_input_file, pressure_input_file, method='Penman-Monteith')[source]#
Compute relative humidity from 2m dewpoint, 2m temperature and surface pressure.
Each input may be a file path, an
xarray.Dataset(with the historical short namesd2m/t2m/spor with any single data variable) or anxarray.DataArray(units must be K for temperatures and Pa for pressure, matching ERA5 conventions). Returns a Dataset with a singlerelative_humidityvariable in%. The pressure argument is currently unused by both formulas but is required by the signature for future use (e.g. wet-bulb extensions).Reference: https://en.wikipedia.org/wiki/Dew_point and FAO 56 chapter 3 (https://www.fao.org/3/X0490E/x0490e07.htm).