metar-taf-parser 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- package/dist/{lib/command → command}/common.d.ts +1 -1
- package/dist/{lib/command → command}/common.js +4 -4
- package/dist/{lib/command → command}/metar.d.ts +5 -1
- package/dist/{lib/command → command}/metar.js +6 -5
- package/dist/{lib/command → command}/remark.d.ts +5 -1
- package/dist/{lib/command → command}/remark.js +130 -148
- package/dist/{lib/commons → commons}/converter.d.ts +0 -0
- package/dist/{lib/commons → commons}/converter.js +2 -2
- package/dist/{lib/commons → commons}/errors.d.ts +7 -2
- package/dist/{lib/commons → commons}/errors.js +8 -3
- package/dist/commons/i18n.d.ts +12 -0
- package/dist/{lib/commons → commons}/i18n.js +12 -4
- package/dist/{lib/helpers → helpers}/helpers.d.ts +0 -1
- package/dist/helpers/helpers.js +23 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +38 -0
- package/dist/locale/de.d.ts +321 -0
- package/dist/locale/de.js +322 -0
- package/dist/locale/en.d.ts +387 -0
- package/dist/locale/en.js +398 -0
- package/dist/locale/fr.d.ts +365 -0
- package/dist/locale/fr.js +376 -0
- package/dist/locale/it.d.ts +337 -0
- package/dist/locale/it.js +338 -0
- package/dist/locale/pl.d.ts +98 -0
- package/dist/locale/pl.js +99 -0
- package/dist/locale/zh-CN.d.ts +111 -0
- package/dist/locale/zh-CN.js +112 -0
- package/dist/model/enum.d.ts +221 -0
- package/dist/model/enum.js +231 -0
- package/dist/{lib/model → model}/model.d.ts +14 -7
- package/dist/{lib/model → model}/model.js +1 -1
- package/dist/parser/parser.d.ts +66 -0
- package/dist/parser/parser.js +322 -0
- package/package.json +8 -3
- package/dist/lib/commons/i18n.d.ts +0 -3
- package/dist/lib/helpers/helpers.js +0 -28
- package/dist/lib/index.d.ts +0 -1
- package/dist/lib/index.js +0 -3
- package/dist/lib/locale/en.json +0 -396
- package/dist/lib/model/enum.d.ts +0 -122
- package/dist/lib/model/enum.js +0 -132
- package/dist/lib/parser/parser.d.ts +0 -26
- package/dist/lib/parser/parser.js +0 -198
- package/dist/tests/command/common.test.d.ts +0 -1
- package/dist/tests/command/common.test.js +0 -102
- package/dist/tests/command/metar.test.d.ts +0 -1
- package/dist/tests/command/metar.test.js +0 -52
- package/dist/tests/command/remark.test.d.ts +0 -1
- package/dist/tests/command/remark.test.js +0 -689
- package/dist/tests/common/converter.test.d.ts +0 -1
- package/dist/tests/common/converter.test.js +0 -78
- package/dist/tests/helpers/helpers.test.d.ts +0 -1
- package/dist/tests/helpers/helpers.test.js +0 -17
- package/dist/tests/parser/parser.test.d.ts +0 -1
- package/dist/tests/parser/parser.test.js +0 -96
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
CloudQuantity: {
|
|
5
|
+
BKN: "broken",
|
|
6
|
+
FEW: "few",
|
|
7
|
+
NSC: "no significant clouds.",
|
|
8
|
+
OVC: "overcast",
|
|
9
|
+
SCT: "scattered",
|
|
10
|
+
SKC: "sky clear",
|
|
11
|
+
},
|
|
12
|
+
CloudType: {
|
|
13
|
+
AC: "Altocumulus",
|
|
14
|
+
AS: "Altostratus",
|
|
15
|
+
CB: "Cumulonimbus",
|
|
16
|
+
CC: "CirroCumulus",
|
|
17
|
+
CI: "Cirrus",
|
|
18
|
+
CS: "Cirrostratus",
|
|
19
|
+
CU: "Cumulus",
|
|
20
|
+
NS: "Nimbostratus",
|
|
21
|
+
SC: "Stratocumulus",
|
|
22
|
+
ST: "Stratus",
|
|
23
|
+
TCU: "Towering cumulus",
|
|
24
|
+
},
|
|
25
|
+
Converter: {
|
|
26
|
+
D: "decreasing",
|
|
27
|
+
E: "East",
|
|
28
|
+
ENE: "East North East",
|
|
29
|
+
ESE: "East South East",
|
|
30
|
+
N: "North",
|
|
31
|
+
NE: "North East",
|
|
32
|
+
NNE: "North North East",
|
|
33
|
+
NNW: "North North West",
|
|
34
|
+
NSC: "no significant change",
|
|
35
|
+
NW: "North West",
|
|
36
|
+
S: "South",
|
|
37
|
+
SE: "South East",
|
|
38
|
+
SSE: "South South East",
|
|
39
|
+
SSW: "South South West",
|
|
40
|
+
SW: "South West",
|
|
41
|
+
U: "up rising",
|
|
42
|
+
VRB: "Variable",
|
|
43
|
+
W: "West",
|
|
44
|
+
WNW: "West North West",
|
|
45
|
+
WSW: "West South West",
|
|
46
|
+
},
|
|
47
|
+
DepositBrakingCapacity: {
|
|
48
|
+
GOOD: "good",
|
|
49
|
+
MEDIUM: "medium",
|
|
50
|
+
MEDIUM_GOOD: "medium/good",
|
|
51
|
+
MEDIUM_POOR: "poor/medium",
|
|
52
|
+
NOT_REPORTED: "not reported",
|
|
53
|
+
POOR: "poor",
|
|
54
|
+
UNRELIABLE: "figures unreliable",
|
|
55
|
+
},
|
|
56
|
+
DepositCoverage: {
|
|
57
|
+
FROM_11_TO_25: "from 11% to 25%",
|
|
58
|
+
FROM_26_TO_50: "from 26% to 50%",
|
|
59
|
+
FROM_51_TO_100: "from 51% to 100%",
|
|
60
|
+
LESS_10: "less than 10%",
|
|
61
|
+
NOT_REPORTED: "not reported",
|
|
62
|
+
},
|
|
63
|
+
DepositThickness: {
|
|
64
|
+
CLOSED: "closed",
|
|
65
|
+
LESS_1_MM: "less than 1 mm",
|
|
66
|
+
NOT_REPORTED: "not reported",
|
|
67
|
+
THICKNESS_10: "10 cm",
|
|
68
|
+
THICKNESS_15: "15 cm",
|
|
69
|
+
THICKNESS_20: "20 cm",
|
|
70
|
+
THICKNESS_25: "25 cm",
|
|
71
|
+
THICKNESS_30: "30 cm",
|
|
72
|
+
THICKNESS_35: "35 cm",
|
|
73
|
+
THICKNESS_40: "40 cm or more",
|
|
74
|
+
},
|
|
75
|
+
DepositType: {
|
|
76
|
+
CLEAR_DRY: "clear and dry",
|
|
77
|
+
COMPACTED_SNOW: "compacted or rolled snow",
|
|
78
|
+
DAMP: "damp",
|
|
79
|
+
DRY_SNOW: "dry snow",
|
|
80
|
+
FROZEN_RIDGES: "frozen ruts or ridges",
|
|
81
|
+
ICE: "ice",
|
|
82
|
+
NOT_REPORTED: "not reported",
|
|
83
|
+
RIME_FROST_COVERED: "rime or frost covered",
|
|
84
|
+
SLUSH: "slush",
|
|
85
|
+
WET_SNOW: "wet snow",
|
|
86
|
+
WET_WATER_PATCHES: "wet or water patches",
|
|
87
|
+
},
|
|
88
|
+
Descriptive: {
|
|
89
|
+
BC: "patches",
|
|
90
|
+
BL: "blowing",
|
|
91
|
+
DR: "low drifting",
|
|
92
|
+
FZ: "freezing",
|
|
93
|
+
MI: "shallow",
|
|
94
|
+
PR: "partial",
|
|
95
|
+
SH: "showers of",
|
|
96
|
+
TS: "thunderstorm",
|
|
97
|
+
},
|
|
98
|
+
Error: {
|
|
99
|
+
prefix: "An error occured. Error code n°",
|
|
100
|
+
},
|
|
101
|
+
ErrorCode: {
|
|
102
|
+
AirportNotFound: "The airport was not found for this message.",
|
|
103
|
+
InvalidMessage: "The entered message is invalid.",
|
|
104
|
+
},
|
|
105
|
+
Indicator: {
|
|
106
|
+
M: "less than",
|
|
107
|
+
P: "greater than",
|
|
108
|
+
},
|
|
109
|
+
"intensity-plus": "Heavy",
|
|
110
|
+
Intensity: {
|
|
111
|
+
"-": "Light",
|
|
112
|
+
VC: "In the vicinity",
|
|
113
|
+
},
|
|
114
|
+
MetarFacade: {
|
|
115
|
+
InvalidIcao: "Icao code is invalid.",
|
|
116
|
+
},
|
|
117
|
+
Phenomenon: {
|
|
118
|
+
BR: "mist",
|
|
119
|
+
DS: "duststorm",
|
|
120
|
+
DU: "widespread dust",
|
|
121
|
+
DZ: "drizzle",
|
|
122
|
+
FC: "funnel cloud",
|
|
123
|
+
FG: "fog",
|
|
124
|
+
FU: "smoke",
|
|
125
|
+
GR: "hail",
|
|
126
|
+
GS: "small hail and/or snow pellets",
|
|
127
|
+
HZ: "haze",
|
|
128
|
+
IC: "ice crystals",
|
|
129
|
+
PL: "ice pellets",
|
|
130
|
+
PO: "dust or sand whirls",
|
|
131
|
+
PY: "spray",
|
|
132
|
+
RA: "rain",
|
|
133
|
+
SA: "sand",
|
|
134
|
+
SG: "snow grains",
|
|
135
|
+
SN: "snow",
|
|
136
|
+
SQ: "squall",
|
|
137
|
+
SS: "sandstorm",
|
|
138
|
+
TS: "thunderstorm",
|
|
139
|
+
UP: "unknown precipitation",
|
|
140
|
+
VA: "volcanic ash",
|
|
141
|
+
},
|
|
142
|
+
Remark: {
|
|
143
|
+
ALQDS: "all quadrants",
|
|
144
|
+
AO1: "automated stations without a precipitation discriminator",
|
|
145
|
+
AO2: "automated station with a precipitation discriminator",
|
|
146
|
+
BASED: "based",
|
|
147
|
+
Barometer: [
|
|
148
|
+
"Increase, then decrease",
|
|
149
|
+
"Increase, then steady, or increase then Increase more slowly",
|
|
150
|
+
"steady or unsteady increase",
|
|
151
|
+
"Decrease or steady, then increase; or increase then increase more rapidly",
|
|
152
|
+
"Steady",
|
|
153
|
+
"Decrease, then increase",
|
|
154
|
+
"Decrease then steady; or decrease then decrease more slowly",
|
|
155
|
+
"Steady or unsteady decrease",
|
|
156
|
+
"Steady or increase, then decrease; or decrease then decrease more rapidly",
|
|
157
|
+
],
|
|
158
|
+
Ceiling: {
|
|
159
|
+
Height: "ceiling varying between {0} and {1} feet",
|
|
160
|
+
Second: {
|
|
161
|
+
Location: "ceiling of {0} feet mesured by a second sensor located at {1}",
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
DSNT: "distant",
|
|
165
|
+
FCST: "forecast",
|
|
166
|
+
FUNNELCLOUD: "funnel cloud",
|
|
167
|
+
HVY: "heavy",
|
|
168
|
+
Hail: {
|
|
169
|
+
"0": "largest hailstones with a diameter of {0} inches",
|
|
170
|
+
LesserThan: "largest hailstones with a diameter less than {0} inches",
|
|
171
|
+
},
|
|
172
|
+
Hourly: {
|
|
173
|
+
Maximum: {
|
|
174
|
+
Minimum: {
|
|
175
|
+
Temperature: "24-hour maximum temperature of {0}°C and 24-hour minimum temperature of {1}°C",
|
|
176
|
+
},
|
|
177
|
+
Temperature: "6-hourly maximum temperature of {0}°C",
|
|
178
|
+
},
|
|
179
|
+
Minimum: {
|
|
180
|
+
Temperature: "6-hourly minimum temperature of {0}°C",
|
|
181
|
+
},
|
|
182
|
+
Temperature: {
|
|
183
|
+
"0": "hourly temperature of {0}°C",
|
|
184
|
+
Dew: {
|
|
185
|
+
Point: "hourly temperature of {0}°C and dew point of {1}°C",
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
Ice: {
|
|
190
|
+
Accretion: {
|
|
191
|
+
Amount: "{0}/100 of an inch of ice accretion in the past {1} hour(s)",
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
LGT: "light",
|
|
195
|
+
LTG: "lightning",
|
|
196
|
+
MOD: "moderate",
|
|
197
|
+
NXT: "next",
|
|
198
|
+
ON: "on",
|
|
199
|
+
Obscuration: "{0} layer at {1} feet composed of {2}",
|
|
200
|
+
PRESFR: "pressure falling rapidly",
|
|
201
|
+
PRESRR: "pressure rising rapidly",
|
|
202
|
+
PeakWind: "peak wind of {1} knots from {0} degrees at {2}:{3}",
|
|
203
|
+
Precipitation: {
|
|
204
|
+
Amount: {
|
|
205
|
+
"24": "{0} inches of precipitation fell in the last 24 hours",
|
|
206
|
+
"3": {
|
|
207
|
+
"6": "{1} inches of precipitation fell in the last {0} hours",
|
|
208
|
+
},
|
|
209
|
+
Hourly: "{0}/100 of an inch of precipitation fell in the last hour",
|
|
210
|
+
},
|
|
211
|
+
Beg: {
|
|
212
|
+
"0": "{0} {1} beginning at {2}:{3} ",
|
|
213
|
+
End: "{0} {1} beginning at {2}:{3} ending at {4}:{5}",
|
|
214
|
+
},
|
|
215
|
+
End: "{0} {1} ending at {2}:{3}",
|
|
216
|
+
},
|
|
217
|
+
Pressure: {
|
|
218
|
+
Tendency: "of {0} hectopascals in the past 3 hours",
|
|
219
|
+
},
|
|
220
|
+
SLPNO: "sea level pressure not available",
|
|
221
|
+
Sea: {
|
|
222
|
+
Level: {
|
|
223
|
+
Pressure: "sea level pressure of {0} HPa",
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
Second: {
|
|
227
|
+
Location: {
|
|
228
|
+
Visibility: "visibility of {0} SM mesured by a second sensor located at {1}",
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
Sector: {
|
|
232
|
+
Visibility: "visibility of {1} SM in the {0} direction",
|
|
233
|
+
},
|
|
234
|
+
Snow: {
|
|
235
|
+
Depth: "snow depth of {0} inches",
|
|
236
|
+
Increasing: {
|
|
237
|
+
Rapidly: "snow depth increase of {0} inches in the past hour with a total depth on the ground of {1} inches",
|
|
238
|
+
},
|
|
239
|
+
Pellets: "{0} snow pellets",
|
|
240
|
+
},
|
|
241
|
+
Sunshine: {
|
|
242
|
+
Duration: "{0} minutes of sunshine",
|
|
243
|
+
},
|
|
244
|
+
Surface: {
|
|
245
|
+
Visibility: "surface visibility of {0} statute miles",
|
|
246
|
+
},
|
|
247
|
+
TORNADO: "tornado",
|
|
248
|
+
Thunderstorm: {
|
|
249
|
+
Location: {
|
|
250
|
+
"0": "thunderstorm {0} of the station",
|
|
251
|
+
Moving: "thunderstorm {0} of the station moving towards {1}",
|
|
252
|
+
},
|
|
253
|
+
},
|
|
254
|
+
Tornadic: {
|
|
255
|
+
Activity: {
|
|
256
|
+
BegEnd: "{0} beginning at {1}:{2} ending at {3}:{4} {5} SM {6} of the station",
|
|
257
|
+
Beginning: "{0} beginning at {1}:{2} {3} SM {4} of the station",
|
|
258
|
+
Ending: "{0} ending at {1}:{2} {3} SM {4} of the station",
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
Tower: {
|
|
262
|
+
Visibility: "control tower visibility of {0} statute miles",
|
|
263
|
+
},
|
|
264
|
+
VIRGA: "virga",
|
|
265
|
+
Variable: {
|
|
266
|
+
Prevailing: {
|
|
267
|
+
Visibility: "variable prevailing visibility between {0} and {1} SM",
|
|
268
|
+
},
|
|
269
|
+
Sky: {
|
|
270
|
+
Condition: {
|
|
271
|
+
"0": "cloud layer varying between {0} and {1}",
|
|
272
|
+
Height: "cloud layer at {0} feet varying between {1} and {2}",
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
},
|
|
276
|
+
Virga: {
|
|
277
|
+
Direction: "virga {0} from the station",
|
|
278
|
+
},
|
|
279
|
+
WATERSPOUT: "waterspout",
|
|
280
|
+
Water: {
|
|
281
|
+
Equivalent: {
|
|
282
|
+
Snow: {
|
|
283
|
+
Ground: "water equivalent of {0} inches of snow",
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
},
|
|
287
|
+
WindShift: {
|
|
288
|
+
"0": "wind shift at {0}:{1}",
|
|
289
|
+
FROPA: "wind shift accompanied by frontal passage at {0}:{1}",
|
|
290
|
+
},
|
|
291
|
+
},
|
|
292
|
+
TimeIndicator: {
|
|
293
|
+
AT: "at",
|
|
294
|
+
FM: "From",
|
|
295
|
+
TL: "until",
|
|
296
|
+
},
|
|
297
|
+
ToString: {
|
|
298
|
+
airport: "airport",
|
|
299
|
+
altimeter: "altimeter (hPa)",
|
|
300
|
+
amendment: "amendment",
|
|
301
|
+
auto: "auto",
|
|
302
|
+
cavok: "cavok",
|
|
303
|
+
clouds: "clouds",
|
|
304
|
+
day: {
|
|
305
|
+
hour: "hour of the day",
|
|
306
|
+
month: "day of the month",
|
|
307
|
+
},
|
|
308
|
+
deposit: {
|
|
309
|
+
braking: "braking capacity",
|
|
310
|
+
coverage: "coverage",
|
|
311
|
+
thickness: "thickness",
|
|
312
|
+
type: "type of deposit",
|
|
313
|
+
},
|
|
314
|
+
descriptive: "descriptive",
|
|
315
|
+
dew: {
|
|
316
|
+
point: "dew point",
|
|
317
|
+
},
|
|
318
|
+
end: {
|
|
319
|
+
day: {
|
|
320
|
+
month: "end day of the month",
|
|
321
|
+
},
|
|
322
|
+
hour: {
|
|
323
|
+
day: "end hour of the day",
|
|
324
|
+
},
|
|
325
|
+
},
|
|
326
|
+
height: {
|
|
327
|
+
feet: "height (ft)",
|
|
328
|
+
meter: "height (m)",
|
|
329
|
+
},
|
|
330
|
+
indicator: "indicator",
|
|
331
|
+
intensity: "intensity",
|
|
332
|
+
message: "original message",
|
|
333
|
+
name: "name",
|
|
334
|
+
nosig: "nosig",
|
|
335
|
+
phenomenons: "phenomenons",
|
|
336
|
+
probability: "probability",
|
|
337
|
+
quantity: "quantity",
|
|
338
|
+
remark: "remarks",
|
|
339
|
+
report: {
|
|
340
|
+
time: "time of report",
|
|
341
|
+
},
|
|
342
|
+
runway: {
|
|
343
|
+
info: "runways information",
|
|
344
|
+
},
|
|
345
|
+
start: {
|
|
346
|
+
day: {
|
|
347
|
+
month: "starting day of the month",
|
|
348
|
+
},
|
|
349
|
+
hour: {
|
|
350
|
+
day: "starting hour of the day",
|
|
351
|
+
},
|
|
352
|
+
minute: "starting minute",
|
|
353
|
+
},
|
|
354
|
+
temperature: {
|
|
355
|
+
"0": "temperature (°C)",
|
|
356
|
+
max: "maximum temperature (°C)",
|
|
357
|
+
min: "minimum temperature (°C)",
|
|
358
|
+
},
|
|
359
|
+
trend: "trend",
|
|
360
|
+
trends: "trends",
|
|
361
|
+
type: "type",
|
|
362
|
+
vertical: {
|
|
363
|
+
visibility: "vertical visibility (ft)",
|
|
364
|
+
},
|
|
365
|
+
visibility: {
|
|
366
|
+
main: "main visibility",
|
|
367
|
+
max: "maximum visibility",
|
|
368
|
+
min: {
|
|
369
|
+
"0": "minimum visibility",
|
|
370
|
+
direction: "minimum visibility direction",
|
|
371
|
+
},
|
|
372
|
+
},
|
|
373
|
+
weather: {
|
|
374
|
+
conditions: "weather conditions",
|
|
375
|
+
},
|
|
376
|
+
wind: {
|
|
377
|
+
direction: {
|
|
378
|
+
"0": "direction",
|
|
379
|
+
degrees: "direction (degrees)",
|
|
380
|
+
},
|
|
381
|
+
gusts: "gusts",
|
|
382
|
+
max: {
|
|
383
|
+
variation: "maximal wind variation",
|
|
384
|
+
},
|
|
385
|
+
min: {
|
|
386
|
+
variation: "minimal wind variation",
|
|
387
|
+
},
|
|
388
|
+
speed: "speed",
|
|
389
|
+
unit: "unit",
|
|
390
|
+
},
|
|
391
|
+
},
|
|
392
|
+
WeatherChangeType: {
|
|
393
|
+
BECMG: "Becoming",
|
|
394
|
+
FM: "From",
|
|
395
|
+
PROB: "Probability",
|
|
396
|
+
TEMPO: "Temporary",
|
|
397
|
+
},
|
|
398
|
+
};
|