Created
July 26, 2026 20:37
-
-
Save ellcom/eb99729329b3a8e5d30e76b4c6046e91 to your computer and use it in GitHub Desktop.
Met office significant weather codes php dictionary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Met office significant weather codes | |
| // https://datahub.metoffice.gov.uk/definition-of-codes | |
| // Convert Met Office weather codes | |
| $weather = [ | |
| "NA" => "Not available", | |
| 4 => "Not used", | |
| -1 => "Trace rain", | |
| 0 => "Clear night", | |
| 1 => "Sunny", | |
| 2 => "Partly cloudy (night)", | |
| 3 => "Partly cloudy (day)", | |
| 5 => "Mist", | |
| 6 => "Fog", | |
| 7 => "Cloudy", | |
| 8 => "Overcast", | |
| 9 => "Light rain shower (night)", | |
| 10 => "Light rain shower (day)", | |
| 11 => "Drizzle", | |
| 12 => "Light rain", | |
| 13 => "Heavy rain shower (night)", | |
| 14 => "Heavy rain shower (day)", | |
| 15 => "Heavy rain", | |
| 16 => "Sleet shower", | |
| 17 => "Sleet shower (day)", | |
| 18 => "Sleet", | |
| 19 => "Hail shower (night)", | |
| 20 => "Hail shower (day)", | |
| 21 => "Hail", | |
| 22 => "Light snow shower (night)", | |
| 23 => "Light snow shower (day)", | |
| 24 => "Light snow", | |
| 25 => "Heavy snow shower (night)", | |
| 26 => "Heavy snow shower (day)", | |
| 27 => "Heavy snow", | |
| 28 => "Thunder shower (night)", | |
| 29 => "Thunder shower (day)", | |
| 30 => "Thunder" | |
| ]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment