nsrdb.data_model.merra.RelativeHumidity

class RelativeHumidity[source]

Bases: BaseDerivedVar

Class to derive the relative humidity from other MERRA2 vars.

Methods

derive(air_temperature, specific_humidity, ...)

Derive the relative humidity from ancillary vars.

Attributes

DEPENDENCIES

static derive(air_temperature, specific_humidity, surface_pressure)[source]

Derive the relative humidity from ancillary vars.

Parameters:
  • air_temperature (np.ndarray) – Temperature in Celsius

  • specific_humidity (np.ndarray) – Specific humidity in kg/kg

  • surface_pressure (np.ndarray) – Pressure in Pa

Returns:

rh (np.ndarray) – Relative humidity in %.