打开netcdf文件时出现错误,之前的代码是正常的。 我该如何解决这个问题?
Traceback (most recent call last):
File "", line 1, in ...
File "file.py", line 71, in gather_vgt return xr.open_dataset(filename)
File "/.../lib/python3.6/site-packages/xarray/backends/api.py", line 286, in open_dataset autoclose=autoclose)
File "/.../lib/python3.6/site-packages/xarray/backends/netCDF4_.py", line 275, in open ds = opener()
File "/.../lib/python3.6/site-packages/xarray/backends/netCDF4_.py", line 199, in _open_netcdf4_group ds = nc4.Dataset(filename, mode=mode, **kwargs)
File "netCDF4/_netCDF4.pyx", line 2015, in netCDF4._netCDF4.Dataset.init
File "netCDF4/_netCDF4.pyx", line 1636, in netCDF4._netCDF4._ensure_nc_success
OSError: [Errno -101] NetCDF: HDF error: b'file.nc'
当我尝试使用h5py打开相同的netcdf文件时,会出现以下错误:
OSError: 无法打开文件(此文件系统已禁用文件锁定(使用HDF5_USE_FILE_LOCKING环境变量覆盖),errno = 38,错误消息 = '...')