implemented x/y/level to grid point index mapping for Bufr files, refactoring, added tests