def grid_from_data(da):
    """Given a dataset, extract only the grid information.

    Parameters
    ----------
    da : xarray.DataArray
        DataArray to extract grid information from. Must have "ocw" conventions,
        ie 2D lats and lons variables.

    Returns
    -------
    ds : xarray.Dataset
        Dataset containing grid infromation.
    """
    ds = da.coords.to_dataset()
    return ds
