更改NetCDF的THREDDS Catalouge数据源

2024-05-19 09:46:58 发布

您现在位置:Python中文网/ 问答频道 /正文

嗨,我在这里使用这个代码How to read NetCDF file and write to CSV using Python我希望能够从THREDDS Catalog here中拉出“膨胀波的平均周期^有序的^数据序列^但收到下面的错误。我在用天篷

知道为什么吗? 谢谢亚历克

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: 

Tags: andto代码inreadvarnetcdfvariable

热门问题