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