hispecdrp.primitives.barycenter_correction.barycorr_primitive

Classes

BarycenterCorrectionPrimitive([dataset, ...])

Primitive to calculate the barycenter corrections for the input data.

class BarycenterCorrectionPrimitive(dataset=None, config=None, context=None, log_config=None, parent=None, **kwargs)[source]

Bases: BasePrimitive

Primitive to calculate the barycenter corrections for the input data.

When meta.force_berv_m_s is a finite value (simulations), that BERV is written for every processed fiber and barycorrpy is skipped.

Parameters:
  • input (str or L0Model) – Input file path or data model to process.

  • suffix (str or None, optional) – Suffix to append to the output filename. Default is 'barycorr'.

  • max_cores (int, optional) – Maximum number of CPU cores to use for Numba parallel processing. Default is 1.

Returns:

output – The data model with per-fiber barycorr_fib* tables.