gribberish 1.2.0

Parse grib 2 files with Rust
Documentation
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
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
/// Auto-generated from ecCodes grib1/2.98.128.table
pub const ECMWF_TABLE_128: &[(u8, &str, &str, &str)] = &[
    (1, "strf", "Stream function", "m2 s-1"),
    (2, "vp", "Velocity potential", "m2 s-1"),
    (3, "pt", "Potential temperature", "K"),
    (4, "eqpt", "Equivalent potential temperature", "K"),
    (5, "sept", "Saturated equivalent potential temperature", "K"),
    (6, "ssfr", "Soil sand fraction", "(0 - 1)"),
    (7, "scfr", "Soil clay fraction", "(0 - 1)"),
    (8, "sro", "Surface runoff", "m"),
    (9, "ssro", "Sub-surface runoff", "m"),
    (10, "ws", "Wind speed", "m s-1"),
    (11, "udvw", "U component of divergent wind", "m s-1"),
    (12, "vdvw", "V component of divergent wind", "m s-1"),
    (13, "urtw", "U component of rotational wind", "m s-1"),
    (14, "vrtw", "V component of rotational wind", "m s-1"),
    (
        15,
        "aluvp",
        "UV visible albedo for direct radiation",
        "(0 - 1)",
    ),
    (
        16,
        "aluvd",
        "UV visible albedo for diffuse radiation",
        "(0 - 1)",
    ),
    (
        17,
        "alnip",
        "Near IR albedo for direct radiation",
        "(0 - 1)",
    ),
    (
        18,
        "alnid",
        "Near IR albedo for diffuse radiation",
        "(0 - 1)",
    ),
    (19, "uvcs", "Clear sky surface UV", "J m-2"),
    (
        20,
        "parcs",
        "Clear sky surface photosynthetically active radiation",
        "J m-2",
    ),
    (21, "uctp", "Unbalanced component of temperature", "K"),
    (
        22,
        "ucln",
        "Unbalanced component of logarithm of surface pressure",
        "~",
    ),
    (23, "ucdv", "Unbalanced component of divergence", "s-1"),
    (26, "cl", "Lake cover", "(0 - 1)"),
    (27, "cvl", "Low vegetation cover", "(0 - 1)"),
    (28, "cvh", "High vegetation cover", "(0 - 1)"),
    (29, "tvl", "Type of low vegetation", "~"),
    (30, "tvh", "Type of high vegetation", "~"),
    (31, "ci", "Sea ice area fraction", "(0 - 1)"),
    (32, "asn", "Snow albedo", "(0 - 1)"),
    (33, "rsn", "Snow density", "kg m-3"),
    (34, "sst", "Sea surface temperature", "K"),
    (35, "istl1", "Ice temperature layer 1", "K"),
    (36, "istl2", "Ice temperature layer 2", "K"),
    (37, "istl3", "Ice temperature layer 3", "K"),
    (38, "istl4", "Ice temperature layer 4", "K"),
    (39, "swvl1", "Volumetric soil water layer 1", "m3 m-3"),
    (40, "swvl2", "Volumetric soil water layer 2", "m3 m-3"),
    (41, "swvl3", "Volumetric soil water layer 3", "m3 m-3"),
    (42, "swvl4", "Volumetric soil water layer 4", "m3 m-3"),
    (43, "slt", "Soil type", "~"),
    (44, "es", "Snow evaporation", "m of water equivalent"),
    (45, "smlt", "Snowmelt", "m of water equivalent"),
    (46, "sdur", "Solar duration", "s"),
    (47, "dsrp", "Direct solar radiation", "J m-2"),
    (
        48,
        "magss",
        "Magnitude of turbulent surface stress",
        "N m-2 s",
    ),
    (
        49,
        "10fg",
        "10 metre wind gust since previous post-processing",
        "m s-1",
    ),
    (50, "lspf", "Large-scale precipitation fraction", "s"),
    (
        51,
        "mx2t24",
        "Maximum temperature at 2 metres in the last 24 hours",
        "K",
    ),
    (
        52,
        "mn2t24",
        "Minimum temperature at 2 metres in the last 24 hours",
        "K",
    ),
    (53, "mont", "Montgomery potential", "m2 s-2"),
    (54, "pres", "Pressure", "Pa"),
    (
        55,
        "mean2t24",
        "Mean temperature at 2 metres in the last 24 hours",
        "K",
    ),
    (
        56,
        "mn2d24",
        "Mean 2 metre dewpoint temperature in the last 24 hours",
        "K",
    ),
    (57, "uvb", "Downward UV radiation at the surface", "J m-2"),
    (
        58,
        "par",
        "Photosynthetically active radiation at the surface",
        "J m-2",
    ),
    (
        59,
        "cape",
        "Convective available potential energy",
        "J kg-1",
    ),
    (60, "pv", "Potential vorticity", "K m2 kg-1 s-1"),
    (62, "obct", "Observation count", "~"),
    (
        63,
        "stsktd",
        "Start time for skin temperature difference",
        "s",
    ),
    (
        64,
        "ftsktd",
        "Finish time for skin temperature difference",
        "s",
    ),
    (65, "sktd", "Skin temperature difference", "K"),
    (66, "lai_lv", "Leaf area index, low vegetation", "m2 m-2"),
    (67, "lai_hv", "Leaf area index, high vegetation", "m2 m-2"),
    (
        68,
        "msr_lv",
        "Minimum stomatal resistance, low vegetation",
        "s m-1",
    ),
    (
        69,
        "msr_hv",
        "Minimum stomatal resistance, high vegetation",
        "s m-1",
    ),
    (70, "bc_lv", "Biome cover, low vegetation", "(0 - 1)"),
    (71, "bc_hv", "Biome cover, high vegetation", "(0 - 1)"),
    (
        72,
        "issrd",
        "Instantaneous surface solar radiation downwards",
        "W m-2",
    ),
    (
        73,
        "istrd",
        "Instantaneous surface thermal radiation downwards",
        "W m-2",
    ),
    (
        74,
        "sdfor",
        "Standard deviation of filtered subgrid orography",
        "m",
    ),
    (75, "crwc", "Specific rain water content", "kg kg-1"),
    (76, "cswc", "Specific snow water content", "kg kg-1"),
    (77, "etadot", "Eta-coordinate vertical velocity", "s-1"),
    (78, "tclw", "Total column cloud liquid water", "kg m-2"),
    (79, "tciw", "Total column cloud ice water", "kg m-2"),
    (
        121,
        "mx2t6",
        "Maximum temperature at 2 metres in the last 6 hours",
        "K",
    ),
    (
        122,
        "mn2t6",
        "Minimum temperature at 2 metres in the last 6 hours",
        "K",
    ),
    (
        123,
        "10fg6",
        "10 metre wind gust in the last 6 hours",
        "m s-1",
    ),
    (124, "emis", "Surface emissivity", "dimensionless"),
    (125, "vite", "Vertically integrated total energy", "J m-2"),
    (127, "at", "Atmospheric tide", "~"),
    (128, "bv", "Budget values", "~"),
    (129, "z", "Geopotential", "m2 s-2"),
    (130, "t", "Temperature", "K"),
    (131, "u", "U component of wind", "m s-1"),
    (132, "v", "V component of wind", "m s-1"),
    (133, "q", "Specific humidity", "kg kg-1"),
    (134, "sp", "Surface pressure", "Pa"),
    (135, "w", "Vertical velocity", "Pa s-1"),
    (136, "tcw", "Total column water", "kg m-2"),
    (137, "tcwv", "Total column water vapour", "kg m-2"),
    (138, "vo", "Vorticity (relative)", "s-1"),
    (139, "stl1", "Soil temperature level 1", "K"),
    (140, "swl1", "Soil wetness level 1", "m of water equivalent"),
    (141, "sd", "Snow depth", "m of water equivalent"),
    (142, "lsp", "Large-scale precipitation", "m"),
    (143, "cp", "Convective precipitation", "m"),
    (144, "sf", "Snowfall", "m of water equivalent"),
    (145, "bld", "Boundary layer dissipation", "J m-2"),
    (146, "sshf", "Surface sensible heat flux", "J m-2"),
    (147, "slhf", "Surface latent heat flux", "J m-2"),
    (148, "chnk", "Charnock", "~"),
    (149, "snr", "Surface net radiation", "J m-2"),
    (150, "tnr", "Top net radiation", "J m-2"),
    (151, "msl", "Mean sea level pressure", "Pa"),
    (152, "lnsp", "Logarithm of surface pressure", "~"),
    (153, "swhr", "Short-wave heating rate", "K"),
    (154, "lwhr", "Long-wave heating rate", "K"),
    (155, "d", "Divergence", "s-1"),
    (156, "gh", "Geopotential Height", "gpm"),
    (157, "r", "Relative humidity", "%"),
    (158, "tsp", "Tendency of surface pressure", "Pa s-1"),
    (159, "blh", "Boundary layer height", "m"),
    (160, "sdor", "Standard deviation of orography", "m"),
    (161, "isor", "Anisotropy of sub-gridscale orography", "~"),
    (162, "anor", "Angle of sub-gridscale orography", "radians"),
    (163, "slor", "Slope of sub-gridscale orography", "~"),
    (164, "tcc", "Total cloud cover", "(0 - 1)"),
    (165, "10u", "10 metre U wind component", "m s-1"),
    (166, "10v", "10 metre V wind component", "m s-1"),
    (167, "2t", "2 metre temperature", "K"),
    (168, "2d", "2 metre dewpoint temperature", "K"),
    (169, "ssrd", "Surface solar radiation downwards", "J m-2"),
    (170, "stl2", "Soil temperature level 2", "K"),
    (171, "swl2", "Soil wetness level 2", "m of water equivalent"),
    (172, "lsm", "Land-sea mask", "(0 - 1)"),
    (173, "sr", "Surface roughness", "m"),
    (174, "al", "Albedo", "(0 - 1)"),
    (175, "strd", "Surface thermal radiation downwards", "J m-2"),
    (176, "ssr", "Surface net solar radiation", "J m-2"),
    (177, "str", "Surface net thermal radiation", "J m-2"),
    (178, "tsr", "Top net solar radiation", "J m-2"),
    (179, "ttr", "Top net thermal radiation", "J m-2"),
    (180, "ewss", "Eastward turbulent surface stress", "N m-2 s"),
    (181, "nsss", "Northward turbulent surface stress", "N m-2 s"),
    (182, "e", "Evaporation", "m of water equivalent"),
    (183, "stl3", "Soil temperature level 3", "K"),
    (184, "swl3", "Soil wetness level 3", "m of water equivalent"),
    (185, "ccc", "Convective cloud cover", "(0 - 1)"),
    (186, "lcc", "Low cloud cover", "(0 - 1)"),
    (187, "mcc", "Medium cloud cover", "(0 - 1)"),
    (188, "hcc", "High cloud cover", "(0 - 1)"),
    (189, "sund", "Sunshine duration", "s"),
    (
        190,
        "ewov",
        "East-West component of sub-gridscale orographic variance",
        "m2",
    ),
    (
        191,
        "nsov",
        "North-South component of sub-gridscale orographic variance",
        "m2",
    ),
    (
        192,
        "nwov",
        "North-West/South-East component of sub-gridscale orographic variance",
        "m2",
    ),
    (
        193,
        "neov",
        "North-East/South-West component of sub-gridscale orographic variance",
        "m2",
    ),
    (194, "btmp", "Brightness temperature", "K"),
    (
        195,
        "lgws",
        "Eastward gravity wave surface stress",
        "N m-2 s",
    ),
    (
        196,
        "mgws",
        "Northward gravity wave surface stress",
        "N m-2 s",
    ),
    (197, "gwd", "Gravity wave dissipation", "J m-2"),
    (
        198,
        "src",
        "Skin reservoir content",
        "m of water equivalent",
    ),
    (199, "veg", "Vegetation fraction", "(0 - 1)"),
    (200, "vso", "Variance of sub-gridscale orography", "m2"),
    (
        201,
        "mx2t",
        "Maximum temperature at 2 metres since previous post-processing",
        "K",
    ),
    (
        202,
        "mn2t",
        "Minimum temperature at 2 metres since previous post-processing",
        "K",
    ),
    (203, "o3", "Ozone mass mixing ratio", "kg kg-1"),
    (204, "paw", "Precipitation analysis weights", "~"),
    (205, "ro", "Runoff", "m"),
    (206, "tco3", "Total column ozone", "kg m-2"),
    (207, "10si", "10 metre wind speed", "m s-1"),
    (208, "tsrc", "Top net solar radiation, clear sky", "J m-2"),
    (209, "ttrc", "Top net thermal radiation, clear sky", "J m-2"),
    (
        210,
        "ssrc",
        "Surface net solar radiation, clear sky",
        "J m-2",
    ),
    (
        211,
        "strc",
        "Surface net thermal radiation, clear sky",
        "J m-2",
    ),
    (212, "tisr", "TOA incident solar radiation", "J m-2"),
    (
        213,
        "vimd",
        "Vertically integrated moisture divergence",
        "kg m-2",
    ),
    (214, "dhr", "Diabatic heating by radiation", "K"),
    (215, "dhvd", "Diabatic heating by vertical diffusion", "K"),
    (216, "dhcc", "Diabatic heating by cumulus convection", "K"),
    (
        217,
        "dhlc",
        "Diabatic heating large-scale condensation",
        "K",
    ),
    (218, "vdzw", "Vertical diffusion of zonal wind", "m s-1"),
    (
        219,
        "vdmw",
        "Vertical diffusion of meridional wind",
        "m s-1",
    ),
    (220, "ewgd", "East-West gravity wave drag tendency", "m s-1"),
    (
        221,
        "nsgd",
        "North-South gravity wave drag tendency",
        "m s-1",
    ),
    (222, "ctzw", "Convective tendency of zonal wind", "m s-1"),
    (
        223,
        "ctmw",
        "Convective tendency of meridional wind",
        "m s-1",
    ),
    (224, "vdh", "Vertical diffusion of humidity", "kg kg-1"),
    (
        225,
        "htcc",
        "Humidity tendency by cumulus convection",
        "kg kg-1",
    ),
    (
        226,
        "htlc",
        "Humidity tendency by large-scale condensation",
        "kg kg-1",
    ),
    (
        227,
        "crnh",
        "Tendency due to removal of negative humidity",
        "kg kg-1",
    ),
    (228, "tp", "Total precipitation", "m"),
    (
        229,
        "iews",
        "Instantaneous eastward turbulent surface stress",
        "N m-2",
    ),
    (
        230,
        "inss",
        "Instantaneous northward turbulent surface stress",
        "N m-2",
    ),
    (
        231,
        "ishf",
        "Instantaneous surface sensible heat flux",
        "W m-2",
    ),
    (232, "ie", "Instantaneous moisture flux", "kg m-2 s-1"),
    (233, "asq", "Apparent surface humidity", "kg kg-1"),
    (
        234,
        "lsrh",
        "Logarithm of surface roughness length for heat",
        "~",
    ),
    (235, "skt", "Skin temperature", "K"),
    (236, "stl4", "Soil temperature level 4", "K"),
    (237, "swl4", "Soil wetness level 4", "m"),
    (238, "tsn", "Temperature of snow layer", "K"),
    (239, "csf", "Convective snowfall", "m of water equivalent"),
    (240, "lsf", "Large-scale snowfall", "m of water equivalent"),
    (
        241,
        "acf",
        "Accumulated cloud fraction tendency",
        "(-1 to 1)",
    ),
    (242, "alw", "Accumulated liquid water tendency", "(-1 to 1)"),
    (243, "fal", "Forecast albedo", "(0 - 1)"),
    (244, "fsr", "Forecast surface roughness", "m"),
    (
        245,
        "flsr",
        "Forecast logarithm of surface roughness for heat",
        "~",
    ),
    (
        246,
        "clwc",
        "Specific cloud liquid water content",
        "kg kg-1",
    ),
    (247, "ciwc", "Specific cloud ice water content", "kg kg-1"),
    (248, "cc", "Fraction of cloud cover", "(0 - 1)"),
    (249, "aiw", "Accumulated ice water tendency", "(-1 to 1)"),
    (250, "ice", "Ice age", "(0 - 1)"),
    (251, "atte", "Adiabatic tendency of temperature", "K"),
    (252, "athe", "Adiabatic tendency of humidity", "kg kg-1"),
    (253, "atze", "Adiabatic tendency of zonal wind", "m s-1"),
    (
        254,
        "atmw",
        "Adiabatic tendency of meridional wind",
        "m s-1",
    ),
];