libera_utils.spice_utils.find_most_recent_naif_kernel#

libera_utils.spice_utils.find_most_recent_naif_kernel(naif_base_url: str, kernel_file_regex: str, allowed_attempts: int = 3) str#

Retrieves the name of the most recent kernel at NAIF.

Parameters:
  • naif_base_url (str) – URL to search for filenames matching kernel_file_regex

  • kernel_file_regex (str) – Regular expression to match filenames on the naif website

  • allowed_attempts (int, Optional) – Number of allowed download times for naif page default = 3

Returns:

Returns the file name of the latest kernel on the naif page (e.g., “naif0012.tls”)

Return type:

str