libera_utils.kernel_maker.make_kernel#
- libera_utils.kernel_maker.make_kernel(config_file: str, output_kernel: str, input_data: str = None, overwrite: bool = False, append: bool = False)#
Create a SPICE kernel from a configuration file and input data.
- Parameters:
config_file (str or pathlib.Path) – JSON configuration file defining how to create the kernel.
output_kernel (str or cloudpathlib.anypath.AnyPath) – 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 or pathlib.Path or pd.DataFrame, optional) – Input data file or object. Not required if defined within the config.
overwrite (bool, optional) – Option to overwrite an existing file.
append (bool, optional) – Option to append to an existing file.
- Returns:
Output kernel file path
- Return type: