NOAA-EMC / NCEPLIBS-g2c

This library contains C decoder/encoder routines for GRIB edition 2.
Other
18 stars 11 forks source link

Eliminate use of XML files in installed build #345

Closed edwardhartnett closed 2 months ago

edwardhartnett commented 1 year ago

There is a quarterly release of XML and CSV files from the WMO, with all GRIB tables defined. And we use the XML one. The XML data file is included in the build.

Finding data files after install is non-trivial, and I'm worried about the way NOAA moves things from one machine to another. Will data files be lost or not found?

Instead, the code can be changed to read the XML and output a C program file which encodes the data as a struct. Then that C can be compiled into the library and will never get lost.

edwardhartnett commented 4 months ago

I welcome input on this issue, I'm not sure what the best way to proceed is.

Choices include: 1 - Keep libxml and move on. 2 - Change to using CSV input to eliminate libxml. 3 - Change to generate code (occasionally) which is checked in, not using libxml except for the special utility that creates code. 4 - Something else?

edwardhartnett commented 2 months ago

We will: