PyMetOffice
0.4
Pythonic access to UK Met Office DataPoint API
Main Page
Namespaces
Classes
Files
File List
pymetoffice
constants.py
1
#!c:/Python27/python.exe
2
# Change the above for *nix
3
# Some Met Office constants to aid interpretation of data
4
WEATHER_TYPES = {
5
'NA'
:
'Not available'
,
6
0:
'Clear sky'
,
7
1:
'Sunny'
,
8
2:
'Partly cloudy (night)'
,
9
3:
'Sunny intervals'
,
10
4:
'Dust'
,
11
5:
'Mist'
,
12
6:
'Fog'
,
13
7:
'Medium-level cloud'
,
14
8:
'Low-level cloud'
,
15
9:
'Light rain shower (night)'
,
16
10:
'Light rain shower (day)'
,
17
11:
'Drizzle'
,
18
12:
'Light rain'
,
19
13:
'Heavy rain shower (night)'
,
20
14:
'Heavy rain shower (day)'
,
21
15:
'Heavy rain'
,
22
16:
'Sleet shower (night)'
,
23
17:
'Sleet shower (day)'
,
24
18:
'Sleet'
,
25
19:
'Hail shower (night)'
,
26
20:
'Hail shower (day)'
,
27
21:
'Hail'
,
28
22:
'Light snow shower (night)'
,
29
23:
'Light snow shower (day)'
,
30
24:
'Light snow'
,
31
25:
'Heavy snow shower (night)'
,
32
26:
'Heavy snow shower (day)'
,
33
27:
'Heavy snow'
,
34
28:
'Thundery shower (night)'
,
35
29:
'Thundery shower (day)'
,
36
30:
'Thunder storm'
,
37
31:
'Tropical storm'
,
38
33:
'Haze'
39
}
40
VISIBILITY = {
41
'UN'
:
'Unknown'
,
42
'VP'
:
'Very poor - Less than 1 km'
,
43
'PO'
:
'Poor - Between 1-4 km'
,
44
'MO'
:
'Moderate - Between 4-10 km'
,
45
'GO'
:
'Good - Between 10-20 km'
,
46
'VG'
:
'Very good - Between 20-40 km'
,
47
'EX'
:
'Excellent - More than 40 km'
48
}
Generated on Sun Jan 6 2013 19:52:29 for PyMetOffice by
1.8.2