@@ -31,12 +31,18 @@ For optional Zarr support:
3131brew install c-blosc lz4
3232```
3333
34+ For optional GRIB support:
35+ ``` bash
36+ brew install eccodes
37+ ```
38+
3439Install [ XQuartz] ( https://www.xquartz.org/ ) for X11 support. After installation, the X11 libraries will be in ` /opt/X11 ` .
3540
3641Build:
3742``` bash
38- make # Without zarr support
43+ make # Without zarr/grib support
3944make WITH_ZARR=1 # With zarr support
45+ make WITH_GRIB=1 # With grib support
4046make uterm # Build terminal viewer only
4147```
4248
@@ -54,10 +60,16 @@ For optional Zarr support:
5460sudo apt-get install libblosc-dev liblz4-dev
5561```
5662
63+ For optional GRIB support:
64+ ``` bash
65+ sudo apt-get install libeccodes-dev
66+ ```
67+
5768Build:
5869``` bash
59- make # Without zarr support
70+ make # Without zarr/grib support
6071make WITH_ZARR=1 # With zarr support
72+ make WITH_GRIB=1 # With grib support
6173make uterm # Build terminal viewer only
6274```
6375
@@ -69,8 +81,9 @@ On Levante, the Makefile automatically uses the DKRZ spack-installed libraries:
6981
7082No modules need to be loaded. Simply run:
7183``` bash
72- make # Without zarr support
84+ make # Without zarr/grib support
7385make WITH_ZARR=1 # With zarr support (uses system blosc/lz4)
86+ make WITH_GRIB=1 # With grib support (uses system eccodes)
7487```
7588
7689The binary will have the library paths embedded (via rpath), so it runs without setting ` LD_LIBRARY_PATH ` .
@@ -103,7 +116,7 @@ No libraries should show as "not found".
103116## Usage
104117
105118``` bash
106- ./ushow [options] < data_file.nc| data.zarr> [file2 ...]
119+ ./ushow [options] < data_file.nc| data.zarr| data.grib > [file2 ...]
107120
108121Options:
109122 -m, --mesh < file> Mesh file with coordinates (for unstructured data)
@@ -115,7 +128,7 @@ Options:
115128
116129Terminal quick-look mode:
117130``` bash
118- ./uterm [options] < data_file.nc| data.zarr> [file2 ...]
131+ ./uterm [options] < data_file.nc| data.zarr| data.grib > [file2 ...]
119132
120133Options (uterm):
121134 -m, --mesh < file> Mesh file with coordinates
@@ -159,6 +172,12 @@ Zarr store (requires `make WITH_ZARR=1`):
159172./ushow data.zarr -r 0.25 # Higher resolution display
160173```
161174
175+ GRIB file (requires ` make WITH_GRIB=1 ` ):
176+ ``` bash
177+ ./ushow data.grib # Single GRIB file
178+ ./uterm data.grib --color
179+ ```
180+
162181Zarr store with consolidated metadata (faster loading):
163182``` bash
164183# Zarr stores with .zmetadata file are loaded more efficiently
0 commit comments