grib取数据
作者:互联网
mac机子:
python 3.8.7
更新一波pip
Terminal: pip3 install pygrib
取某坐标点的所有数据:
import pygrib as pg grbs = pg.open('file1.grib') data = [] for grb in grbs: data.append(grb.values) f = open("demofile.txt", "w") f.write(str(data)) f.close()
参考:
https://jswhit.github.io/pygrib/api.html
https://www.w3schools.com/python/python_file_open.asp
标签:python,数据,grbs,data,grib,grb,pygrib,open 来源: https://www.cnblogs.com/programmingdrifter/p/14347865.html