File: README.md

package info (click to toggle)
glgrib 1.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,861,476 kB
  • sloc: cpp: 20,811; ansic: 6,530; perl: 2,902; sh: 513; makefile: 147; python: 58; sql: 18
file content (266 lines) | stat: -rw-r--r-- 11,349 bytes parent folder | download | duplicates (2)
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

Display GRIB2 fields with OpenGL. Raster, contour, vector, colorbar, mapscale, coastlines, borders. Lat/lon, lambert, gaussian grid.
GLFW backend for interactive display, EGL backend for batch processing without X11 display.

Perl/Tk interface.

Tested on :

* VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06) 
* VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06) 
* VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Wani [Radeon R5/R6/R7 Graphics] (rev c8) 
* 3D controller: NVIDIA Corporation GV100GL [Tesla V100S PCIe 32GB] (rev a1) 

  

![](./share/doc/glgrib/perltk/tk1.png)
![](./share/doc/glgrib/perltk/tk2.png)

  # [Cloud ...](./share/doc/glgrib/CLOUD.md)
## Clouds, 3 layers, t1198c2.2 -- t1198_3l
![](./share/doc/glgrib/samples/t1198_3l/TEST_0000.png)

```
    --landscape.on --landscape.grid.path 
    share/glgrib/testdata/t1198c2.2/Z.grb --field[0].path 
    share/glgrib/testdata/t1198c2.2/SURFNEBUL.BASSE.grb --field[1].path 
    share/glgrib/testdata/t1198c2.2/SURFNEBUL.MOYENN.grb --field[2].path 
    share/glgrib/testdata/t1198c2.2/SURFNEBUL.HAUTE.grb --field[0].scale 
    1.03 --field[1].scale 1.04 --field[2].scale 1.05 
    --field[0].palette.name cloud --field[1].palette.name cloud 
    --field[2].palette.name cloud 
```
# [Lambert ...](./share/doc/glgrib/LAMBERT.md)
## AROME 1.3km -- arome13
![](./share/doc/glgrib/samples/arome13/TEST_0000.png)

```
    --field[0].path share/glgrib/testdata/aro1.3/CLSVENT.ZONAL.grb 
    share/glgrib/testdata/aro1.3/CLSVENT.MERIDIEN.grb --field[0].type 
    VECTOR --view-{ --lon 2 --lat 46.2 --fov 3 }- 
    --field[0].palette.colors black green --field[0].palette.values 0. 20. 
    --field[0].vector.arrow.color red --coast.lines.color cyan --coast.on 
```
# [String ...](./share/doc/glgrib/STRING.md)
## Contour with labels -- contourlabels2
![](./share/doc/glgrib/samples/contourlabels2/TEST_0000.png)

```
    --landscape.on --field[0].path share/glgrib/testdata/z500.grb 
    --field[0].scale 1.01 --field[0].type CONTOUR --view.lat 56 --view.lon 
    20 --field[0].contour.labels.on --grid.on --grid.color black 
    --field[0].palette.colors red --field[0].contour.levels 48000 48500 
    49000 49500 50000 50500 51000 51500 52000 52500 53000 53500 54000 
    54500 55000 55500 56000 56500 57000 57500 --field[0].contour.labels-{ 
    --font.color.foreground white --font.color.background black 
    --font.bitmap.scale 0.04 --format %.0f }- --coast.on 
    --coast.lines.color pink 
```
# [Misc ...](./share/doc/glgrib/MISC.md)
## Cities -- cities
![](./share/doc/glgrib/samples/cities/TEST_0000.png)

```
    --landscape.on --cities.on --cities.points.scale 1.01 
    --cities.points.size.value 1 --cities.points.size.variable.on 
    --view.lat 46.7 --view.lon 2 --view.fov 2 --cities.points.size.value 2 
    --cities.labels.on --cities.labels.font.color.foreground red 
    --cities.labels.font.bitmap.scale 0.04 
```
# [Palette ...](./share/doc/glgrib/PALETTE.md)
## Display field with palette gradient color -- palette_values_grad
![](./share/doc/glgrib/samples/palette_values_grad/TEST_0000.png)

```
    --landscape.on --landscape.grid.path 
    share/glgrib/testdata/t1198c2.2/Z.grb --field[0].path 
    share/glgrib/testdata/t1198c2.2/N.grb --field[0].scale 1.03 
    --field[0].palette-{ --colors #00000000 #008bff #01f8e9 #05cf66 
    #34c00c #b6e904 #ffe600 #ffb500 #ff6900 #ff0f00 #b3003e #570088 
    --values 0 2 6 10 14 18 22 26 30 34 38 42 --min 0 --max 46 }- 
    --colorbar.on --render.width 1200 
```
# [Contour ...](./share/doc/glgrib/CONTOUR.md)
## Medium-res contour and raster, global geometry -- contour_latlon4
![](./share/doc/glgrib/samples/contour_latlon4/TEST_0000.png)

```
    --render.width 1024 --render.height 1024 --field[0].path 
    share/glgrib/testdata/glob025/lfpw_0_0_0_pl_1000_t.grib2 
    --field[1].path 
    share/glgrib/testdata/glob025/lfpw_0_0_0_pl_1000_t.grib2 
    --field[1].palette.colors black --field[1].type CONTOUR 
    --field[1].scale 1.001 
```
# [Diff ...](./share/doc/glgrib/DIFF.md)
## Contour in diff mode, global lat/lon geometry -- contour_diff
![](./share/doc/glgrib/samples/contour_diff/TEST_0000.png)

```
    --field[0].diff.on --field[0].type CONTOUR --field[0].path 
    share/glgrib/testdata/glob01/lfpw_0_3_1_sfc_0_prmsl+0000.grib2 
    share/glgrib/testdata/glob01/lfpw_0_3_1_sfc_0_prmsl+0102.grib2 
    --field[0].scale 1.01 --landscape.on --landscape.color white 
    --field[0].user_pref.off 
```
# [Scalar ...](./share/doc/glgrib/SCALAR.md)
## Surface temperature, global lat/lon field -- glob01
![](./share/doc/glgrib/samples/glob01/TEST_0000.png)

```
    --field[0].path share/glgrib/testdata/glob01/lfpw_0_0_0_sfc_0_t.grib2 
    --field[0].scale 1.00 --field[0].palette.name cold_hot_temp --coast.on 
    --grid.on 
```
# [Landscape ...](./share/doc/glgrib/LANDSCAPE.md)
## Landscape over Europe only -- landscape_eurat01
![](./share/doc/glgrib/samples/landscape_eurat01/TEST_0000.png)

```
    --landscape.on --landscape.grid.path 
    share/glgrib/testdata/eurat01/lfpw_0_0_0_pl_1000_t.grib2 --coast.on 
    --grid.on 
```
# [Projection ...](./share/doc/glgrib/PROJECTION.md)
## Display contour field using Mercator projection -- mercator
![](./share/doc/glgrib/samples/mercator/TEST_0000.png)

```
    --field[0].diff.on --field[0].user_pref.off --field[0].type CONTOUR 
    --field[0].path 
    share/glgrib/testdata/glob01/lfpw_0_3_1_sfc_0_prmsl+0000.grib2 
    share/glgrib/testdata/glob01/lfpw_0_3_1_sfc_0_prmsl+0102.grib2 
    --field[0].scale 1.01 --view.projection MERCATOR --landscape.on 
```
# [Shell ...](./share/doc/glgrib/SHELL.md)
## Test interactive shell -- shell
![](./share/doc/glgrib/samples/shell/TEST_0000.png)

```
    --landscape.on --landscape.grid.path 
    share/glgrib/testdata/t1198c2.2/Z.grb --field[0].path 
    share/glgrib/testdata/t1198c2.2/N.grb --field[0].scale 1.03 --shell.on 
```
# [Vector ...](./share/doc/glgrib/VECTOR.md)
## Wind Australia -- windaustralia3
![](./share/doc/glgrib/samples/windaustralia3/TEST_0000.png)

```
    --field[0].path share/glgrib/testdata/uv200.grib%paramId=131 
    share/glgrib/testdata/uv200.grib%paramId=132 --field[0].type VECTOR 
    --coast.on --view.lat -37 --view.lon 140 --view.fov 3 
    --field[0].vector.norm.off --land.on --landscape.on --landscape.color 
    #333333 --landscape.scale 0.999 --coast.on --coast.lines.color black 
    --coast.lines.path share/glgrib/coastlines/gshhg/GSHHS_bin/gshhs_i.b 
    --field[0].vector.scale 1 --render.width 1200 --field[0].scale 1.001 
    --view.projection LATLON --field[0].vector.density 10 
    --field[0].palette.colors #1cb8a6 #19c25c #24cb15 #80d511 #e0d50d 
    #ea7209 #f50408 #ff007f --field[0].palette.values 20 30 40 50 60 70 80 
    90 100 --field[0].vector.arrow.color #00000000 
    --field[0].vector.arrow.fixed.on --field[0].vector.arrow.min 10 
    --land.layers[0].color black --coast.on --coast.lines.color #555555 
    --colorbar.on --field[0].vector.density 20 --field[0].vector.scale 2 
```
# [Stream ...](./share/doc/glgrib/STREAM.md)
## Streamlines on t1198c2.2 (surface) -- stream_t1198c22
![](./share/doc/glgrib/samples/stream_t1198c22/TEST_0000.png)

```
    --field[0].scale 1.01 --field[0].path 
    share/glgrib/testdata/wind+temp/t1198c2.2/S105WIND.U.PHYS.grb 
    share/glgrib/testdata/wind+temp/t1198c2.2/S105WIND.V.PHYS.grb 
    --field[0].type STREAM --field[0].palette-{ --colors grey green --min 
    0. --max 40. --values 0. 40. }- --field[0].stream.width 1.0 
    --field[0].stream.density 1.0 --field[1].scale 1.01 --field[1].path 
    share/glgrib/testdata/wind+temp/t1198c2.2/S105WIND.U.PHYS.grb 
    share/glgrib/testdata/wind+temp/t1198c2.2/S105WIND.V.PHYS.grb 
    --field[1].type VECTOR --field[1].vector.norm.off 
    --field[1].vector.arrow.color red --grid.on --grid.color red 
    --grid.scale 1.02 --coast.lines.scale 1.02 --coast.on 
    --coast.lines.color red --landscape.on --landscape.path 
    landscape/white.png 
```
# [Points ...](./share/doc/glgrib/POINTS.md)
## Gaussian grid wireframe -- gauss_wireframe
![](./share/doc/glgrib/samples/gauss_wireframe/TEST_0000.png)

```
    --field[0]-{ --path 
    share/glgrib/testdata/wind+temp/t0149c2.2/S105TEMPERATURE.grb 
    --scalar.wireframe.on }- --coast.on --view.lon 2 --view.lat 46.7 
    --view.fov 5 
```
# [Spectral ...](./share/doc/glgrib/SPECTRAL.md)
## Spherical harmonic (T1198) -- harmonic
![](./share/doc/glgrib/samples/harmonic/TEST_0000.png)

```
    --field[0].path share/glgrib/testdata/harmonics/SPEC.+0008.+0004.grb 
    --field[0].palette-{ --colors blue green red --values -1 0. 1 }- 
    --field[0].geometry.height.on --field[0].geometry.height.scale 0.2 
    --view.fov 25 --view.lon 20 --scene.light.on 
```
# [Height ...](./share/doc/glgrib/HEIGHT.md)
## Orography (raster & contour) with height -- contour_height
![](./share/doc/glgrib/samples/contour_height/TEST_0000.png)

```
    --field[0].path share/glgrib/testdata/t479/Z.grb --field[0].scale 
    1.005 --field[0].type CONTOUR --field[1].geometry.height.on 
    --field[0].palette.colors black --field[1].path 
    share/glgrib/testdata/t479/Z.grb --field[0].geometry.height.on 
    --view.lat -16 --view.lon 134 
```
# [Grid ...](./share/doc/glgrib/GRID.md)
## Grid labels -- grid_labels
![](./share/doc/glgrib/samples/grid_labels/TEST_0000.png)

```
    --grid.on --grid.labels.on --landscape.on 
```
# [Mpi ...](./share/doc/glgrib/MPI.md)
## Display sphere partitionning (t1198) -- myproc
![](./share/doc/glgrib/samples/myproc/TEST_0000.png)

```
    --field[0].scalar.discrete.on --field[0].path 
    share/glgrib/testdata/discrete/MYPROC.grb --field[0].palette.colors 
    green --field[0].scalar.discrete.missing_color black 
    --field[0].palette.colors #00000000 --field[1].path 
    share/glgrib/testdata/discrete/SURFTEMPERATURE.grb --field[1]-{ 
    --palette.max 313.15 --palette.min 253.15 --palette.name cold_hot_temp 
    }- --view.lat 36 --view.lon -15 
```
# [Land ...](./share/doc/glgrib/LAND.md)
## Display land surface -- land
![](./share/doc/glgrib/samples/land/TEST_0000.png)

```
    --land.on 
```
# [Isofill ...](./share/doc/glgrib/ISOFILL.md)
## Isofill test -- isofill
![](./share/doc/glgrib/samples/isofill/TEST_0000.png)

```
    --field[0].path 
    share/glgrib/testdata/wind+temp/t1798/S105TEMPERATURE.grb 
    --field[0].type ISOFILL --field[0]-{ --palette.min 294 --palette.max 
    296 --user_pref.off --isofill.min 294 --isofill.max 296 --palette.name 
    cold_hot_temp }- --view.lat 2.32 --view.lon 14.12 --view.fov 0.5 
    --render.width 1200 
```
# [Satellite ...](./share/doc/glgrib/SATELLITE.md)
## SSMI satellite data -- ssmigeopoints
![](./share/doc/glgrib/samples/ssmigeopoints/TEST_0000.png)

```
    --geopoints.path share/glgrib/testdata/geopoints/ssmis_light.nc 
    --geopoints.on --geopoints.points.scale 1.005 
    --geopoints.points.palette.name cold_hot --landscape.on 
    --geopoints.points.size.value 0.5 --grid.on --grid.color black 
    --coast.on --coast.lines.color black --colorbar.on 
    --geopoints.points.palette.min 200 --geopoints.points.palette.max 240 
    --geopoints.lon col_4 --geopoints.lat col_3 --geopoints.val col_5 
    --render.width 1200 --view.lat -32.736 --view.lon 41.909 
```