utility functions to read lattice QCD data written in lime format