Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

vector vapour_pressure(q: vector, p: vector)

fieldset vapour_pressure(q: fieldset)

fieldset vapour_pressure(q: fieldset, p: fieldset)

Computes the vapour pressure for a given specific humidity and pressure, where

...

The result is the vapour pressure in Pa units. On error  error nil is returned. The following rules are applied when q is a fieldset:

    • if q is a pressure level fieldset no second argument is needed
    • if q is defined on ECMWF model levels (hybrid/eta) p must be either a single LNSP (logarithm of surface pressure, identified by paramId=152) field or a fieldset defining the pressure on the levels of q
    • for other level types p must be a fieldset defining the pressure on the levels of q

The computation is based on the following formula:

...