问题描述
#Import module
import xarray as xr
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
import cartopy
#Read the file
path = "/home/ubuntu/Desktop/PYTHON/"`
data = xr.open_dataset(path + 'sst100Years.nc')` `#The climatology of 100 year
clim = data.groupby('TIME.month').mean(dim='TIME')` `#The anomaly of 100 years
Anom = (data.groupby('TIME.month') - clim)`
Anom.sel(TIME='1900-01-16',method='nearest').plot()
出现错误:
ValueError: Dataset.plot cannot be called directly.
Use an explicit plot method,e.g. ds.plot.scatter(...)**
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)