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()
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()