def _create_lat_lon_table_index(
    lat_lon_table_info, seasons, viewer, root_dir, table_name
):
    """
    Create an index in the viewer that links the
    individual htmls for the lat-lon table.
    """
    viewer.add_page(f"Table{table_name}", seasons)
    viewer.add_group("Summary Table")
    viewer.add_row("All variables")

    for s in seasons:
        if s in lat_lon_table_info:
            viewer.add_col(lat_lon_table_info[s]["html_path"], is_file=True, title=s)
        else:
            viewer.add_col("-----", is_file=True, title="-----")

    url = viewer.generate_page()
    return url