libera_utils.kernel_maker.make_kernel#

libera_utils.kernel_maker.make_kernel(config_file: str | Path, output_kernel: str | CloudPath | Path, input_data: str | Path | None = None, overwrite: bool = False, append: bool | int = False) CloudPath | Path#

Create a SPICE kernel from a configuration file and input data.

Parameters:
  • config_file (str | pathlib.Path) – JSON configuration file defining how to create the kernel.

  • output_kernel (str | filenaming.PathType) – Output directory or file to create the kernel. If a directory, the file name will be based on the config_file, but with the SPICE file extension.

  • input_data (str | filenaming.PathType or pd.DataFrame, optional) – Input data file or object. Not required if defined within the config.

  • overwrite (bool) – Option to overwrite an existing file.

  • append (bool | int) – Option to append to an existing file. Anything truthy will be treated as True.

Returns:

Output kernel file path

Return type:

filenaming.PathType