Create and write xarray DataArray to NetCDF in chunks
问题 Is it also possible to create an out-of-core DataArray, and write it chunk-by-chunk to a NetCDF4 file using xarray? For example, I want to be able to do this in an out-of-core fashion when the dimensions are much bigger and I thus cannot store the whole array in memory: num_steps = 20 num_times = 100 #Create DataArray d = xr.DataArray(np.zeros([num_steps, num_times], np.float32), {'Step': np.arange(num_steps), 'Time': np.arange(num_times)}, ('Step', 'Time')) #Computatation for i in range(num