Read grib file and save the position of all values requires ecCodes version 2.8 or above (available at https://confluence.ecmwf.int/display/ECC/Releases) python2.7 To run the program python read.py -g grib_file.bufr -p 1 -o data.json