Skip to main content

KernelDB.browse_remote_metakernels()

Scan a remote NAIF mk/ directory and show the available metakernels.

Usage

Source

KernelDB.browse_remote_metakernels(
    mk_dir_url,
    mission=None,
    show_versioned=False,
    sort_by="name",
    filter=None,
    archived=False
)

Groups the entries by base name (stripping version tags like _v461_20251127_001), counts the versioned snapshots, and checks which base metakernels have been acquired locally. A summary table is printed on the instance’s console, if it has one.

Parameters

mk_dir_url: str

URL of a mission’s mk/ directory.

mission: str | None = None

Override the mission name, which is otherwise detected.

show_versioned: bool = False

List the versioned snapshots under each base metakernel.

sort_by: str = "name"

Row ordering. "name" sorts alphabetically by base name. "date" sorts by latest remote modification date, ascending, so the most recently updated metakernels appear at the bottom.

filter: str | None = None

Case-insensitive substring applied to entry filenames before grouping. Useful for narrowing large listings such as the ~1,400-entry JUICE former_versions/ archive.

archived: bool = False
Treat each entry as a distinct historical metakernel, with no base-name aggregation. Use it for browsing former_versions/ directories, where every file is an independent frozen-in-time metakernel rather than a snapshot of a current file.

Returns

list[dict]
One dict per row with the keys base_name, n_versions, latest_date, is_local and filenames.