### Navigation

- index
- modules |
- next |
- previous |
- pywws 14.03.dev1177 documentation »
- Python programs and modules »

# pywws.conversions

conversions.py - a set of functions to convert pywws native units (Centigrade, mm, m/s, hPa) to other popular units

Functions

`apparent_temp`(temp, rh, wind) | Compute apparent temperature (real feel), using formula from
`cadhumidex`(temp, humidity) | Calculate Humidity Index as per Canadian Weather Standards
`dew_point`(temp, hum) | Compute dew point, using formula from
`illuminance_wm2`(lux) | Approximate conversion of illuminance in lux to solar radiation in W/m2
`pressure_inhg`(hPa) | Convert pressure from hectopascals/millibar to inches of mercury
`pressure_trend_text`(trend) | Convert pressure trend to a string, as used by the UK met
`rain_inch`(mm) | Convert rainfall from millimetres to inches
`temp_f`(c) | Convert temperature from Celsius to Fahrenheit
`usaheatindex`(temp, humidity, dew) | Calculate Heat Index as per USA National Weather Service Standards
`wind_bft`(ms) | Convert wind from metres per second to Beaufort scale
`wind_chill`(temp, wind) | Compute wind chill, using formula from
`wind_kmph`(ms) | Convert wind from metres per second to kilometres per hour
`wind_kn`(ms) | Convert wind from metres per second to knots
`wind_mph`(ms) | Convert wind from metres per second to miles per hour
`winddir_degrees`(pts) | Convert wind direction from 0..15 to degrees
`winddir_text`(pts) | Convert wind direction from 0..15 to compass point text

`pywws.conversions.``illuminance_wm2`(lux)

  Approximate conversion of illuminance in lux to solar radiation in W/m2

`pywws.conversions.``pressure_inhg`(hPa)

  Convert pressure from hectopascals/millibar to inches of mercury

`pywws.conversions.``pressure_trend_text`(trend)

  Convert pressure trend to a string, as used by the UK met office.

`pywws.conversions.``rain_inch`(mm)

  Convert rainfall from millimetres to inches

`pywws.conversions.``temp_f`(c)

  Convert temperature from Celsius to Fahrenheit

`pywws.conversions.``winddir_degrees`(pts)

  Convert wind direction from 0..15 to degrees

`pywws.conversions.``winddir_text`(pts)

  Convert wind direction from 0..15 to compass point text

`pywws.conversions.``wind_kmph`(ms)

  Convert wind from metres per second to kilometres per hour

`pywws.conversions.``wind_mph`(ms)

  Convert wind from metres per second to miles per hour

`pywws.conversions.``wind_kn`(ms)

  Convert wind from metres per second to knots

`pywws.conversions.``wind_bft`(ms)

  Convert wind from metres per second to Beaufort scale

`pywws.conversions.``dew_point`(temp, hum)

  Compute dew point, using formula from http://en.wikipedia.org/wiki/Dew_point.

`pywws.conversions.``cadhumidex`(temp, humidity)

  Calculate Humidity Index as per Canadian Weather Standards

`pywws.conversions.``usaheatindex`(temp, humidity, dew)

  Calculate Heat Index as per USA National Weather Service Standards

  See http://en.wikipedia.org/wiki/Heat_index, formula 1. The formula is not valid for T < 26.7C, Dew Point < 12C, or RH < 40%

`pywws.conversions.``wind_chill`(temp, wind)

  Compute wind chill, using formula from http://en.wikipedia.org/wiki/wind_chill

`pywws.conversions.``apparent_temp`(temp, rh, wind)

  Compute apparent temperature (real feel), using formula from http://www.bom.gov.au/info/thermal_stress/

### Navigation

- index
- modules |
- next |
- previous |
- pywws 14.03.dev1177 documentation »
- Python programs and modules »