-
Notifications
You must be signed in to change notification settings - Fork 0
/
WeatherConstants.java
269 lines (257 loc) · 13.6 KB
/
WeatherConstants.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
/*
jWeather(TM) is a Java library for parsing raw weather data
Copyright (C) 2004 David Castro
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
For more information, please email [email protected]
*/
/**
* Simple container for METAR weather token constants.
* Some additions by Steven Flesch (https://github.com/stevenflesch/android-weather-data)
*
* @author [email protected]
*/
public interface WeatherConstants {
/**
* General descriptors.
*/
/** Metar string value for fully automated report ('AUTO') */
public static final String METAR_AUTOMATED = "AUTO";
/** Metar string value for corrected report ('COR') */
public static final String METAR_CORRECTED = "COR";
/** Metar value for SM in feet. */
public static final int METAR_FEET_PER_STATUTE_MILE = 5280;
/** Metar value for feet to meters **/
public static final double METAR_METERS_PER_FOOT = 0.3048;
/**
* Cloud cover/vertical visibility.
*/
/** Metar string value for Vertical Visibility ('VV') */
public static final String METAR_VERTICAL_VISIBILITY = "VV";
/** Metar string value for Sky Clear ('SKC') */
public static final String METAR_SKY_CLEAR = "SKC";
/** Metar string value for Clear ('CLR') */
public static final String METAR_CLEAR = "CLR";
/** Metar string value for Few ('FEW') */
public static final String METAR_FEW = "FEW";
/** Metar string value for Scattered ('SCT') */
public static final String METAR_SCATTERED = "SCT";
/** Metar string value for Broken ('BKN') */
public static final String METAR_BROKEN = "BKN";
/** Metar string value for Overcast ('OVC') */
public static final String METAR_OVERCAST = "OVC";
/** Metar string value for Cumulonimbus ('CB') */
public static final String METAR_CUMULONIMBUS = "CB";
/** Metar string value for Towering Cumulus ('TCU') */
public static final String METAR_TOWERING_CUMULUS = "TCU";
/**
* Precipitation levels.
*/
/** Metar string value for Heavy ('+') */
public static final String METAR_HEAVY = "+";
/** Metar string value for Light ('-') */
public static final String METAR_LIGHT = "-";
/** Metar string value for Shallow ('MI') */
public static final String METAR_SHALLOW = "MI";
/** Metar string value for Partial ('PR') */
public static final String METAR_PARTIAL = "PR";
/** Metar string value for Patches ('BC') */
public static final String METAR_PATCHES = "BC";
/** Metar string value for LowDrifting ('DR') */
public static final String METAR_LOW_DRIFTING = "DR";
/** Metar string value for Blowing ('BL') */
public static final String METAR_BLOWING = "BL";
/**
* Precipitation descriptors.
*/
/** Metar string value for Showers ('SH') */
public static final String METAR_SHOWERS = "SH";
/** Metar string value for Thunderstorms ('TS') */
public static final String METAR_THUNDERSTORMS = "TS";
/** Metar string value for Freezing ('FZ') */
public static final String METAR_FREEZING = "FZ";
/** Metar string value for Drizzle ('DZ') */
public static final String METAR_DRIZZLE = "DZ";
/** Metar string value for Rain ('RA') */
public static final String METAR_RAIN = "RA";
/** Metar string value for Snow ('SN') */
public static final String METAR_SNOW = "SN";
/** Metar string value for Snow Grains ('SG') */
public static final String METAR_SNOW_GRAINS = "SG";
/** Metar string value for Ice Crystals ('IC') */
public static final String METAR_ICE_CRYSTALS = "IC";
/** Metar string value for Ice Pellets ('PL') */
public static final String METAR_ICE_PELLETS = "PL";
/** Metar string value for Hail ('GR') */
public static final String METAR_HAIL = "GR";
/** Metar string value for Small Hail ('GS') */
public static final String METAR_SMALL_HAIL = "GS";
/** Metar string value for Unknown Precip ('UP') */
public static final String METAR_UNKNOWN_PRECIPITATION = "UP";
/**
* Misc.
*/
/** Metar string value for Mist ('BR') */
public static final String METAR_MIST = "BR";
/** Metar string value for Fog ('FG') */
public static final String METAR_FOG = "FG";
/** Metar string value for Smoke ('FU') */
public static final String METAR_SMOKE = "FU";
/** Metar string value for Volcanic Ash ('VA') */
public static final String METAR_VOLCANIC_ASH = "VA";
/** Metar string value for Widespread Dust ('DU') */
public static final String METAR_WIDESPREAD_DUST = "DU";
/** Metar string value for Sand ('SA') */
public static final String METAR_SAND = "SA";
/** Metar string value for Haze ('HZ') */
public static final String METAR_HAZE = "HZ";
/** Metar string value for Spray ('PY') */
public static final String METAR_SPRAY = "PY";
/** Metar string value for Dust Sand Whirls ('PO') */
public static final String METAR_DUST_SAND_WHIRLS = "PO";
/** Metar string value for Squalls ('SQ') */
public static final String METAR_SQUALLS = "SQ";
/** Metar string value for Funnel Cloud ('FC') */
public static final String METAR_FUNNEL_CLOUD = "FC";
/** Metar string value for Sand Storm ('SS') */
public static final String METAR_SAND_STORM = "SS";
/** Metar string value for Dust Storm ('DS') */
public static final String METAR_DUST_STORM = "DS";
/**
* Comments, including foreign METAR reports.
*/
/** Metar string value for Becoming ('BECMG') */
public static final String METAR_BECOMING = "BECMG";
/** Metar string value for Temporary ('TEMPO') */
public static final String METAR_TEMPORARY = "TEMPO";
/** Metar string value for From ('FM') */
public static final String METAR_FROM = "FM";
/** Metar string value for 30% Probability ('PROB30') */
public static final String METAR_CHANCE = "PROB30";
/** Metar string value for 40% Probability ('PROB40') */
public static final String METAR_CHANCE40 = "PROB40";
/** Metar string value for Remarks ('RMK') */
public static final String METAR_REMARKS = "RMK";
/** Metar string value for RVR reportable */
public static final char METAR_REPORTABLE_BELOW = 'P';
/** Metar string value for RVR reportable */
public static final char METAR_REPORTABLE_ABOVE = 'M';
/** Metar string value for Clouds and Visibility Okay ('CAVOK') */
public static final String METAR_CAVOK = "CAVOK";
/** Metar string value for Unlimited Visibility ('P6SM') */
public static final String METAR_FORECAST_VISIBILITY_UNLIMITED = "P6SM";
/** Metar string value for No Significant Change ('NOSIG') */
public static final String METAR_NO_SIGNIFICANT_CHANGE = "NOSIG";
/** Metar string value for No Significant Clouds ('NSC') */
public static final String METAR_NO_SIGNIFICANT_CLOUDS = "NSC";
/**
* Decoded weather strings.
*/
/** Metar decoded string value for Vertical Visibility ('VV') */
public static final String METAR_DECODED_VERTICAL_VISIBILITY = "Vertical Visibility";
/** Metar decoded string value for Sky Clear ('SKC') */
public static final String METAR_DECODED_SKY_CLEAR = "Sky Clear";
/** Metar decoded string value for Clear ('CLR') */
public static final String METAR_DECODED_CLEAR = "Clear";
/** Metar decoded string value for Few ('FEW') */
public static final String METAR_DECODED_FEW = "Few";
/** Metar decoded string value for Scattered ('SCT') */
public static final String METAR_DECODED_SCATTERED = "Scattered";
/** Metar decoded string value for Broken ('BKN') */
public static final String METAR_DECODED_BROKEN = "Broken";
/** Metar decoded string value for Overcase ('OVC') */
public static final String METAR_DECODED_OVERCAST = "Overcast";
/** Metar decoded string value for Cumulonimbus ('CB') */
public static final String METAR_DECODED_CUMULONIMBUS = "Cumulonimbus";
/** Metar decoded string value for Towering Cumulonimbus ('TCU') */
public static final String METAR_DECODED_TOWERING_CUMULONIMBUS = "Tower Cumulonimbus";
/** Metar decoded string value for Severe */
public static final String METAR_DECODED_SEVERE = "Severe";
/** Metar decoded string value for Heavy ('+') */
public static final String METAR_DECODED_HEAVY = "Heavy";
/** Metar decoded string value for Light ('-') */
public static final String METAR_DECODED_LIGHT = "Light";
/** Metar decoded string value for Slight */
public static final String METAR_DECODED_SLIGHT = "Slight";
/** Metar decoded string value for Light ('-') */
public static final String METAR_DECODED_MODERATE = "Moderate";
/** Metar decoded string value for Shallow ('MI') */
public static final String METAR_DECODED_SHALLOW = "Shallow";
/** Metar decoded string value for Partial ('PR') */
public static final String METAR_DECODED_PARTIAL = "Partial";
/** Metar decoded string value for Patches ('BC') */
public static final String METAR_DECODED_PATCHES = "Patches";
/** Metar decoded string value for LowDrifting ('DR') */
public static final String METAR_DECODED_LOW_DRIFTING = "Low Drifting";
/** Metar decoded string value for Blowing ('BL') */
public static final String METAR_DECODED_BLOWING = "Blowing";
/** Metar decoded string value for Showers ('SH') */
public static final String METAR_DECODED_SHOWERS = "Showers";
/** Metar decoded string value for Thunderstorms ('TS') */
public static final String METAR_DECODED_THUNDERSTORMS = "Thunderstorms";
/** Metar decoded string value for Freezing ('FZ') */
public static final String METAR_DECODED_FREEZING = "Freezing";
/** Metar decoded string value for Drizzle ('DZ') */
public static final String METAR_DECODED_DRIZZLE = "Drizzle";
/** Metar decoded string value for Rain ('RA') */
public static final String METAR_DECODED_RAIN = "Rain";
/** Metar decoded string value for Snow ('SN') */
public static final String METAR_DECODED_SNOW = "Snow";
/** Metar decoded string value for Snow Grains ('SG') */
public static final String METAR_DECODED_SNOW_GRAINS = "Snow Grains";
/** Metar decoded string value for Ice Crystals ('IC') */
public static final String METAR_DECODED_ICE_CRYSTALS = "Ice Crystals";
/** Metar decoded string value for Ice Pellets ('PL') */
public static final String METAR_DECODED_ICE_PELLETS = "Ice Pellets";
/** Metar decoded string value for Hail ('GR') */
public static final String METAR_DECODED_HAIL = "Hail";
/** Metar decoded string value for Small Hail ('GS') */
public static final String METAR_DECODED_SMALL_HAIL = "Small Hail";
/** Metar decoded string value for Unknown Precip ('UP') */
public static final String METAR_DECODED_UNKNOWN_PRECIP = "Unknown Precip";
/** Metar decoded string value for Mist ('BR') */
public static final String METAR_DECODED_MIST = "Mist";
/** Metar decoded string value for Fog ('FG') */
public static final String METAR_DECODED_FOG = "Fog";
/** Metar decoded string value for Smoke ('FU') */
public static final String METAR_DECODED_SMOKE = "Smoke";
/** Metar decoded string value for Volcanic Ash ('VA') */
public static final String METAR_DECODED_VOLCANIC_ASH = "Volcanic Ash";
/** Metar decoded string value for Widespread Dust ('DU') */
public static final String METAR_DECODED_WIDESPREAD_DUST = "Widespread Dust";
/** Metar decoded string value for Sand ('SA') */
public static final String METAR_DECODED_SAND = "Sand";
/** Metar decoded string value for Haze ('HZ') */
public static final String METAR_DECODED_HAZE = "Haze";
/** Metar decoded string value for Spray ('PY') */
public static final String METAR_DECODED_SPRAY = "Spray";
/** Metar decoded string value for Dust Sand Whirls ('PO') */
public static final String METAR_DECODED_DUST_SAND_WHIRLS = "Dust Sand Whirls";
/** Metar decoded string value for Squalls ('SQ') */
public static final String METAR_DECODED_SQUALLS = "Squalls";
/** Metar decoded string value for Funnel Cloud ('FC') */
public static final String METAR_DECODED_FUNNEL_CLOUD = "Funnel Cloud";
/** Metar decoded string value for Sand Storm ('SS') */
public static final String METAR_DECODED_SAND_STORM = "Sand Storm";
/** Metar decoded string value for Dust Storm ('DS') */
public static final String METAR_DECODED_DUST_STORM = "Dust Storm";
/** Metar decoded string value for RVR reportable */
public static final String METAR_DECODED_REPORTABLE_BELOW = "less than";
/** Metar decoded string value for RVR reportable */
public static final String METAR_DECODED_REPORTABLE_ABOVE = "greater than";
/** Metar decoded string value for Clouds and Visibility Okay ('CAVOK') */
public static final String METAR_DECODED_CAVOK = "Clouds and Visibility Okay";
/** Metar decoded string value for No Significant Change ('NOSIG') */
public static final String METAR_DECODED_NO_SIGNIFICANT_CHANGE = "No significant change";
/** Metar decoded string value for No Significant Clouds ('NSC') */
public static final String METAR_DECODED_NO_SIGNIFICANT_CLOUDS = "No significant clouds";
}