In xarray there is a method called to_dataframe(), see:
http://xarray.pydata.org/en/stable/pandas.html
With this method a DataArray can be converted to a pandas DataFrame.
How can I convert a convert a xarray DataArray to a geopandas GeoDataFrame, so like the above but with polygons included of the gridcells?