Skip to content

DerivedRHDewpoint

GlobalNVIDIAPyTorch

Import path: earth2studio.models.dx.DerivedRHDewpoint

View source on GitHub View install commands

Documentation

Bases: _DerivedDiagnostic

Calculates the surface relative humidity (RH) from dewpoint temperature and air temperature. This calculation is based on the August-Roche-Magnus approximation.

Note

For more details see the following references:

Parameters:

  • grid (str | GridDefinition, default: 'latlon-0.25deg' ) –

    Spatial grid configured before coordinate planning, by default "latlon-0.25deg"

__call__

__call__(x: DataArray) -> DataArray

Compute derived fields on the input device.

Parameters:

  • x (DataArray) –

    NumPy- or CuPy-backed input with the declared trailing dimensions.

Returns:

  • DataArray –

    Derived fields with the input name, encoding and unaffected metadata.