Processing
Post-processing of LST calculation results.
Functions
tracking_process
Post-process tracking calculation results (N-factors, growth rates). Post-process tracking calculation results.
lst_tools.process.tracking_process
tracking_process(*, cfg: Config | None = None, do_maxima: bool = True, do_volume: bool = True, work_dir: Path | None = None, kc_dirs: list[Path] | None = None, interpolate: bool | None = None, plain_output: bool = False) -> Path
Process LST tracking calculation results.
Parameters
cfg : Optional[Config]
Configuration object. Processing defaults come from
cfg.processing.tracking (gate_tol, min_valid, peak_order,
interpolate). CLI flags override config values.
do_maxima : bool
If True, run ridge-line maxima extraction for every kc_ case.
do_volume : bool
If True, assemble 2-D slices into a 3-D volume file.
work_dir : Optional[Path]
Working directory containing kc_ subdirectories.
Defaults to the current working directory.
kc_dirs : Optional[list[Path]]
Specific kc_ directories to process. If None, discovers all
kc_ directories in work_dir.
interpolate : Optional[bool]
Use parabolic interpolation for peak refinement.
If None, falls back to cfg.processing.tracking.interpolate.
plain_output : bool
If True, use line-by-line text output instead of rich progress bars
where supported.
Returns
Path Path to the working directory.
spectra_process
Post-process spectra calculation results.
lst_tools.process.spectra_process
spectra_process(*, cfg: Mapping[str, Any] | None = None, reporter: Callable[[str], None] | None = None, do_animate: bool = True, do_branches: bool = True, do_classify: bool = False) -> Path
Process LST spectra calculation results
This function processes the output data from LST spectra calculations, collecting results from multiple x-location directories, analyzing spectral data across frequencies and wavenumbers, and preparing data for visualization.
Parameters
cfg : Optional[Mapping[str, Any]] Configuration dictionary or path to config file
Returns
Path Path to the processed results file