Skip to content

Change by section

Change localizations by section in a given cluster through the web UI

Select Analytics (upper right)

Select Localizations

The localization gallery shows all the annotations

To refine the display to a particular cluster, select Filter (button just below Localizations), and then select Add Conditions +

Add Condition, and then select Media Equals Section, Localization Equals Unknown C0, Unknown C1

Search

Select bulk edit button (upper panel), 200 elements maximum at a time

You can then make that change page by page.

Tip

Ctrl+A is a quick key to capture everything on the page, and ESC to deselect all. Be sure to select verified to confirm you looked at them.

unselect anything to be removed from the bulk edit

lower left, select Label, then enter the name of the label in the dialog box dino

Warning

Be sure to select verified to confirm you looked at them.

Confirm "Yes" to bulk edit

Change localizations by section through Python

There is a rich Python API for Tator that allows you to make changes by section. Please see the [Tator Python API documentation] https://www.tator.io/docs/references/tator-py) for more details.

By way of example, here is a script that will change all localizations in a given section to the concept kelp for a given project. Create a .env file with your API credentials first.

    from dotenv import load_dotenv
    from sdcat.db.tator_db import init_api, find_project 

    PROJECT = '901902-uavs'

    load_dotenv('.env') 

    # Connect to the database api
    api = init_api()

    # Find the project
    project = find_project(api, PROJECT)
    info(f'Found project id: {project.name} for project {PROJECT}')

    # Get all sections
    sections = api.get_section_list(project.id)

    # Get all the media in this project in the 2022/08 section
    import_section = [s for s in sections if s.name == '2022/08'][0]
    new_media = api.get_media_list(project.id, section=import_section.id)

    # Get all the localizations for this project in the 2022/08 section
    localizations = [l for l in localizations if l.media in new_media]

    # Change the concept for all localizations in this project with the cluster name -1 to Unknown
    for l in localizations:
        if l.cluster == -1:
            l.concept = 'Unknown'
            api.update_localization(l.id, l)

🗓️ Updated: 2025-09-02