Skip to content
Thomas Nipen edited this page Apr 9, 2020 · 1 revision

Gridpp can diagnose a number of humidity variables based on other variables. There are several humidity variables: dewpoint temperature, relative humidity, and wetbulb temperature. These can be diagnosed from each other in combination with temperature (and pressure for wetbulb).

Command-line examples

Diagnosing of humidity variables is implemented as a calibrator.

gridpp input.nc output.nc -v dewpoint -c diagnoseHumidity\
                                         temperature=air_temperature_2m\
                                         rh=relative_humidity_2m

Wetbulb temperature requires both RH and pressure. However, if pressure is not available, it can be approximated using a standard atmosphere and the elevation field. This is done automatically if pressure= is not supplied. For this to work, altitude must be designed in the output.

Options

  • compute (string): which variable to compute. One of "rh", "dewpoint", or "wetbulb".
  • temperature (string): name of temperature variable
  • rh (string): name of relative humidity variable
  • dewpoint (string): name of dewpoint variable
  • pressure (string): name of pressure variable

Python examples

value = gridpp.dewpoint(278.15, 0.9)
Clone this wiki locally