def to_coord(self):
        return Coordinate(self.dims, self._data, self._attrs,
                          encoding=self._encoding, fastpath=True)
Return this variable as an xarray.Coordinate
dataset/ETHPy150Open pydata/xarray/xarray/core/variable.py/Variable.to_coord