title: How to put values from a calculation from a loop into 2D xarray array
body: <p>I am calculating some values using metpy function in a loop. It is calculated at each grid point using the for loops, I want to put the result into a georeferenced 2D xarray array. How to do it?</p>
  <pre><code>lat = ds.latitude
  lon = ds.longitude
  eq  = [[],[]]
  for i in range(0,len(lat)):
      for j in range(0,len(lon)):
          temp = ds.t[0,:,i,j]
          rel = ds.r[0,:,i,j]
          hei= ds.gh[0,:,i,j]
          p = ds.isobaricInhPa
          t = (temp-273.15)*units.degC
          td = mpcalc.dewpoint_from_relative_humidity(t, rel)  
          pres =p3d[:,i,j]
          # pres = p3d[:,i,:]
          # print(pres)
          # print(pres,t,td)
          el = mpcalc.el(pres,t,td,which='top')  # returns a tuple contains pressure and temp
          # print(el[0])
          eql = el[0].magnitude              #pint quantity converted into a float of the pressure alone
          print(eql)
          eq([i][j]).append([eq,eql])
  </code></pre>
  <p>How do put the calculated 'eql' values into a georeferenced 2d array?</p>