merge netcdf files using xarray code example Example: merge two netcdf files using xarray import xarray as xr ds_merge = xr.merge([ds1,ds2])