I want to merge 70 netCDF files into one. For that I use the .to_netcdf() function of xarray:
ds = xarray.open_mfdataset('*.nc')
ds.to_netcdf('SST_2021-10_timeseries.nc')
My problem is that my jupyter notebook always hangs up because the number of files is too high. Is there a more efficient way to merge the files?
ds.to_zarr), as zarr has chunking support and parallel writes.