有沒(méi)有辦法使用 xarray 重命名全局屬性名稱?該rename命令似乎只重命名變量和維度,而不是全局屬性。我試過(guò)這個(gè):with util.open_or_die('AA.nc', perm='r+') as hndl_nc: hndl_nc.rename({'src_name': 'dst_name'}, inplace=True)但我收到此錯(cuò)誤:AttributeError: NetCDF: Attribute not found
在python中使用xarray重命名netcdf全局屬性
慕田峪4524236
2021-09-25 21:01:22