libera_utils.kernel_maker.create_kernel_from_l1a#

libera_utils.kernel_maker.create_kernel_from_l1a(l1a_data: str | CloudPath | Path | Dataset, kernel_identifier: str | DataProductIdentifier, output_dir: str | CloudPath | Path, overwrite=False) CloudPath | Path#

Create a SPICE kernel from a single L1A Dataset for a kernel data product type.

This operates on a single L1A Dataset (or path to an L1A NetCDF file). The assumption is that this L1A file should contain all the necessary data to create the requested SPICE kernel type. Multiple inputs are expected to be handled at the level of creating the L1A data product from source data (packets).

Parameters:
  • l1a_data (str | filenaming.PathType | xr.Dataset) – L1A Dataset or path to L1A NetCDF file containing decoded packet data suitable for generating the requested SPICE kernel.

  • 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