Skip to content

DerivedVPD

GlobalNVIDIAPyTorch

Import path: earth2studio.models.dx.DerivedVPD

View source on GitHub View install commands

Documentation

Bases: Module

Calculates the Vapor Pressure Deficit (VPD) in hPa from relative humidity and temperature fields. The calculation is based on the formula:

VPD = es * ((100 - rh) / 100)

The variable es is the saturation vapor pressure calculated using the formula:

es = 6.11 * exp((L / Rv) * ((1 / 273) - (1 / T)))

where L is the latent heat of vaporization (2.26e6 J/kg), Rv is the gas constant for water vapor (461 J/kg/K).

Note

For additional information on the VPD calculation in millibars, please refer to:

Parameters:

  • levels (list[int | str], default: [100] ) –

    Pressure / height levels to compute VPD for. The resulting expected input fields are temperature and relative humidity pairs for each level. E.g. for level 100 the input fields should be [t100, r100], by default [100]

__call__

__call__(
    x: Tensor, coords: CoordSystem
) -> tuple[Tensor, CoordSystem]

Forward pass of diagnostic