weatherbench2.derived_variables.RelativeHumidity

class weatherbench2.derived_variables.RelativeHumidity(temperature_name='temperature', specific_humidity_name='specific_humidity', pressure_name='level')

Calculate relativity humidity from specific humidity.

Parameters:
  • temperature_name (str) –

  • specific_humidity_name (str) –

  • pressure_name (str) –

__init__(temperature_name='temperature', specific_humidity_name='specific_humidity', pressure_name='level')
Parameters:
  • temperature_name (str) –

  • specific_humidity_name (str) –

  • pressure_name (str) –

Return type:

None

Methods

__init__([temperature_name, ...])

compute(dataset)

Compute derived variable, returning it in a new DataArray.

Attributes

all_input_core_dims

The set of all input core dimensions.

base_variables

Return a list of base variables.

core_dims

Return core dimensions needed for computing this variable.

pressure_name

specific_humidity_name

temperature_name