宋振辉吧 关注:2贴子:19
  • 0回复贴,共1

python编程经验分享

只看楼主收藏回复

import netCDF4 as nc
import matplotlib.pyplot as plt
import numpy as np
ds=nc.Dataset('MOC_3KM_SFC_202205062100.nc')
print(ds)
ps=ds['ps']
psn=np.array(ps)
plt.contourf(psn[0,:,:])
plt.colorbar()
plt.ylabel('laititude')
plt.xlabel('longitude')
plt.show()


IP属地:北京1楼2022-06-16 17:02回复