【发布时间】:2018-07-16 16:09:46
【问题描述】:
嗨,我正在使用这里的代码 How to read NetCDF file and write to CSV using Python 我希望能够从 THREDDS Catalog here 中提取“Mean_period_of_swell_waves_ordered_sequence_of_data”,但收到以下错误。我正在使用天篷
任何想法为什么? 谢谢亚历克
IndexErrorTraceback (most recent call last)
/home/GRIB-extract-SWPER.py in <module>()
73 #vname = 'surf_el'
74 var = nc.variables[vname]
---> 75 hs = var[istart:istop,iy,ix]
76 tim = dtime[istart:istop]
77
netCDF4/_netCDF4.pyx in netCDF4._netCDF4.Variable.__getitem__ (netCDF4/_netCDF4.c:39739)()
netCDF4/_netCDF4.pyx in netCDF4._netCDF4.Variable._get (netCDF4/_netCDF4.c:49789)()
IndexError:
【问题讨论】:
标签: python matplotlib-basemap netcdf4 noaa pygrib