JGribX icon indicating copy to clipboard operation
JGribX copied to clipboard

Support other data representation templates

Open kubovy opened this issue 4 years ago • 2 comments

Currently this library supports only "Grid Point Data - Complex Packing and Spatial Differencing". It would be useful to support more than this one to enable reading GRIB2 files from e.g. NOMAD which use "Grid Point Data - Simple Packing".

Documentation can be found: https://www.yumpu.com/en/document/view/11723135/guide-to-wmo-table-driven-code-forms

The "Grid Point Data - Simple Packing" is rather simple. "Grid Point Data - Complex Packing" is more complex but as it is a base for the already implemented "Grid Point Data - Complex Packing and Spatial Differencing" this should also be feasable.

kubovy avatar Feb 13 '21 19:02 kubovy

Hi @kubovy, there are indeed plans to support more data representation formats. At the moment I'm working on improving the CI to cross-check all data values against a well-known reference (e.g. wgrib/wgrib2). Once this is in place, support for more data representation formats can follow.

spidru avatar Feb 17 '21 23:02 spidru

I did my research here an the implementation of Grid Point Data - Complex Packing without Spatial Differencing (section 5.2) is rather simple. Also the Grid Point Data - Simple Packing is relatively easy. Both are also included in the draft PR https://github.com/spidru/JGribX/pull/13

kubovy avatar Feb 20 '21 18:02 kubovy