title: How to overlay and average xarray plot images?
body: <p>I'm new to Python. I have 2 netCDF files which I have used xarray to extract the variables and plot them accordingly.</p>
  <p>The code is as below:</p>
  <pre><code>import xarray as xr
  #Open dataset 1
  dset = xr.open_dataset(&quot;dataset.nc&quot;)
  print(dset)
  
  
  #Extract tss variable from dataset 1
  tss = dset['tss']
  print(tss)
  
  
  #Visualise 
  dset['tss'].plot(cmap = 'rainbow',vmax = 20.0)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/lYcGb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lYcGb.png" alt="image1" /></a></p>
  <pre><code>#Open dataset 2
  dset2 = xr.open_dataset(&quot;datset2.nc&quot;)
  print(dset2)
  
  #Extract tss variable from dataset 2
  tss_2 = dset2['tss']
  print(tss_2)
  
  #Visualise 
  tss_2.plot(cmap ='rainbow', vmax = 20.0)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/zqhXx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zqhXx.png" alt="image2" /></a></p>
  <p>My next step is to produce an average image from these 2 images. How to move forward from here?</p>