【发布时间】:2016-06-06 03:33:05
【问题描述】:
import xarray as xr
xr.open_dataset(path_netcdf, chunks={'time': 10})
flow_data = hndl_tran['val']
new_arr = flow_data * vba
我收到此错误:
*** ValueError: total size of new array must be unchanged
这是 2 个数组的形状:
flow_data.shape
(1165, 720, 1440)
vba.shape
(720L, 1440L)
我该如何解决这个错误?
【问题讨论】:
标签: python numpy pandas python-xarray