这是一个维度对齐的标签数组(DataArray)的类字典容器。它用来展示NetCDF文件格式的数据。...注:
Dataset 可以转换为 DataArray, DataFrame, dict, netcdf,分别对应 to_array, to_dataframe, to_dict, to_netcdf 方法...同样可以利用 to_* 类方法将 DataArray 转换为 DataFrame, Dataset, Series, Dict, netcdf, masked_array。...数据集转换
除了上述的类字典方法外, xarray 还有一些其它方法可以将数据集转换为其它对象。...变量重命名
rename 方法可以重命名数据集变量:
>> ds.rename({'temperature': 'temp', 'precipitation': 'precip'})
<xarray.Dataset