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