libera_utils.kernel_maker.create_kernel_from_packets#
- libera_utils.kernel_maker.create_kernel_from_packets(input_data_files: list[str | CloudPath | Path], kernel_identifier: str | DataProductIdentifier, output_dir: str | CloudPath | Path, overwrite=False) CloudPath | Path#
Create a SPICE kernel from one or more input packet files and kernel data product type.
The packet files passed as input must be convertible to L1A Dataset products. This function is a light wrapper around the core kernel creation logic that handles creating kernels from L1A Datasets.
This function is not intended for use in the production pipeline since L1A processing is a a separate step from kernel generation. However, for development and analysis purposes, this allows us to run both steps in one function call: packets -> L1A Dataset -> SPICE kernel.
- Parameters:
input_data_files (list[str, filenaming.PathType]) – List of packet files to process. Multiple files are combined into a single L1A dataset before extracting data for kernel generation.
kernel_identifier (str | DataProductIdentifier) – Data product identifier that is associated with a kernel.
output_dir (str | filenaming.PathType) – Output location for the SPICE kernels and output manifest.
overwrite (bool) – Option to overwrite any existing similar-named SPICE kernels.
- Returns:
Output kernel file path.
- Return type:
filenaming.PathType