1 2 3 4 5 6 7
#!/usr/bin/env python3 import pygrib import sys grib = pygrib.open(sys.argv[1]) for grb in grib: print(sys.argv[1], grb)