---
id: "relative_humidity"
kind: "datatype"
status: "draft"
is_pii: false
name: "Relative humidity"
regexp: "^(?:100(?:[.,]0+)?|\\d{1,2}(?:[.,]\\d+)?)\\s?%?$"
categories: ["environment", "science", "values"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/relative_humidity"
---

# Relative humidity (`relative_humidity`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Relative humidity of the air: the ratio of the partial pressure of water vapour to its saturation pressure at the same temperature, in percent from 0 to 100. Weather stations, environmental sensors and building monitors report it next to the temperature, as a bare number (94, 56.5) or with a percent sign; the 9 am and 3 pm readings of the Australian Bureau of Meteorology have columns of their own. A number from 0 to 100 can be any percentage, so a value is a humidity only in a field named after it (humidity observations of the City of Ballarat, Victoria).

- Parent datatype: [`numeric`](https://registry.apicrafter.io/datatype/numeric.md)
- Personal data (PII): no
- Categories: Environment (protected areas, biodiversity, water, weather, emissions, waste) (environment), Scientific (science), All measurable values (percentage, amount and e.t.c) (values)
- Countries: global
- Languages: Common to most languages (common)

## Detection

Regular expression (Python `re`):

```
^(?:100(?:[.,]0+)?|\d{1,2}(?:[.,]\d+)?)\s?%?$
```

## Examples

- `94` — percent
- `56.5` — one decimal
- `63 %` — with the percent sign
- `101` (invalid example) — above 100 percent

## Metacrafter rules

1 rules: 1 match the field name, 0 match values.

- `relativehumiditybyname` (field, `common/observations.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- ru: Относительная влажность воздуха

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Humidity>

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

JSON: <https://registry.apicrafter.io/api/v1/datatypes/relative_humidity.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/environment/relative_humidity.yaml>
