为什么会有IndexError: too many indices错误?

求助:用pycharm在做EOF分析时,出现了IndexError: too many indices的错误,请教各位帮忙!!!!代码及错误如下:

import xarray as xr
from eofs.standard import Eof
import numpy as np
f_u = xr.open_dataset(r'E:\xiandaitongji\sst.mnmean.nc')
u = f_u['sst'].loc[f_u.time.dt.month.isin([12, 1, 2])].loc['1982-12-01':'2022-02-28'].loc[:, 1000:100, 30:-30, 100:300]
lat_u = f_u['lat'].loc[30:-30]
level = f_u['level'].loc[1000:100]
u_level_lat = np.array(u).reshape(40, 3, 12, 13, 41).mean(1, 4)
eof = Eof(u_level_lat)
u_eof = eof.eofsAsCorrelation(neofs=2)
u_pc = eof.pcs(npcs=2, pcscaling=1)
u_var = eof.varianceFraction(neigs=2)
print(u_eof.shape, u_pc.shape, u_var.shape)


  File "D:\pythonProject\main.py", line 5, in 
    u = f_u['sst'].loc[f_u.time.dt.month.isin([12, 1, 2])].loc['1982-12-01':'2022-02-28'].loc[:, 1000:100, 30:-30, 100:300]
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Python\Lib\site-packages\xarray\core\dataarray.py", line 206, in __getitem__
    labels = indexing.expanded_indexer(key, self.data_array.ndim)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Python\Lib\site-packages\xarray\core\indexing.py", line 225, in expanded_indexer
    raise IndexError("too many indices")
IndexError: too many indices