xarray slow to save netCDF
问题 I find xarray to be very slow to save a dataset to netCDF. I suspect the reason for this is that the .to_netcdf() command first has to load the data before saving it. For an example I get the following timings: Example a) ds.to_netcdf(file_path) # ~6 minutes Example b) ds.load() # ~6 minutes ds.to_netcdf(file_path) # <1 second It would seem the slow down comes from loading. Is there any way circumventing this load or speeding this process up? An explicit example of (a) that I am working with