grail

This submodule contains GRAIL-A and GRAIL-B mission file-discovery and download functionality used by LoadPDS.

Classes

GrailMixin()

GRAIL mission file-discovery mixin.

class GrailMixin[source]

Bases: object

GRAIL mission file-discovery mixin.

get_grail_a_files(local_folder, start_date, end_date)[source]

Description: Downloads various SPICE kernel and ancillary files for the GRAIL-A mission, including clock, frame, orientation, and SPK kernels, based on a specified date range. Files are saved in the provided local folder.

Inputs:
  • local_folder (str): Path to the local folder where files will be saved.

  • start_date (datetime): The start date for the data retrieval.

  • end_date (datetime): The end date for the data retrieval.

Outputs:
  • kernel_files_to_load (dict): A dictionary containing the loaded kernel files, categorized by type (e.g., ‘sclk’, ‘fk’, ‘ck’, ‘spk’).

  • radio_science_files_to_load (dict): An empty dictionary for now, intended for radio science files.

  • ancillary_files_to_load (dict): An empty dictionary for now, intended for ancillary files.

get_grail_b_files(local_folder, start_date, end_date)[source]

Description: Downloads various SPICE kernel and ancillary files for the GRAIL_B mission, including clock, frame, orientation, and SPK kernels, based on a specified date range. Files are saved in the provided local folder.

Inputs:
  • local_folder (str): Path to the local folder where files will be saved.

  • start_date (datetime): The start date for the data retrieval.

  • end_date (datetime): The end date for the data retrieval.

Outputs:
  • kernel_files_to_load (dict): A dictionary containing the loaded kernel files, categorized by type (e.g., ‘sclk’, ‘fk’, ‘ck’, ‘spk’).

  • radio_science_files_to_load (dict): An empty dictionary for now, intended for radio science files.

  • ancillary_files_to_load (dict): An empty dictionary for now, intended for ancillary files.