def _read_netcdf_grid_shape(root):
    """Read the grid shape from a GEBCO NetCDF file.

    Parameters
    ----------
    root : netcdf_file
        A NetCDF file.

    Returns
    -------
    tuple of int
        The shape of the grid as number of rows, then columns.
    """
    return root.variables["dimension"][:]