aodn / imos-toolbox

Graphical tool for QC'ing and NetCDF'ing oceanographic datasets
GNU General Public License v3.0
46 stars 31 forks source link

Genericparser with staroddi, closes #549 #621

Closed ocehugo closed 4 years ago

ocehugo commented 4 years ago

This PR includes the following:

  1. Generic Parser machinery.
  2. Utility functions used by the machinery but also useful in other places ( reduce code size and increase expressiveness).
  3. An example of implementation of the new machinery for the Staroddi parser (Mini v000/001, DST Tilt, DST CTD)
  4. Staroddi tests.

Although Staroddi is not the best example to introduce the generic parser machinery - it's one of the most verbose parsers given the different versions and header lines - all other parsers should be terser.

I can easily explain if required :)

PS: Please merge #619 since it's a requirement.

ocehugo commented 4 years ago

@lbesnard - comments addressed above