小编Log*_*gan的帖子

使用 xarray 在 python 中打开 .nc 文件时出现 HDF5 错误

我正在尝试使用 xarray 打开 MERRA-2 文件,正如我的标题所示。当我尝试使用 print 语句查看某个变量中的值时,会发生我遇到的特定错误。错误如下:

HDF5-DIAG: Error detected in HDF5 (1.12.2) thread 5:
  #000: H5A.c line 528 in H5Aopen_by_name(): can't open attribute
    major: Attribute
    minor: Can't open object
  #001: H5VLcallback.c line 1091 in H5VL_attr_open(): attribute open failed
    major: Virtual Object Layer
    minor: Can't open object
  #002: H5VLcallback.c line 1058 in H5VL__attr_open(): attribute open failed
    major: Virtual Object Layer
    minor: Can't open object
  #003: H5VLnative_attr.c line 130 in H5VL__native_attr_open(): can't open attribute
    major: Attribute
    minor: Can't open object
  #004: …
Run Code Online (Sandbox Code Playgroud)

python hdf5 netcdf python-xarray

6
推荐指数
1
解决办法
2911
查看次数

标签 统计

hdf5 ×1

netcdf ×1

python ×1

python-xarray ×1