imap_processing.idex.idex_l2a.log_smooth_powerlaw#

imap_processing.idex.idex_l2a.log_smooth_powerlaw(log_v: float, log_a: float, params: ndarray) float#

Define a smoothly transitioning power law used by the IDEX calibration curves.

This helper is used in two ways: - rise-time calibration: log10(velocity [km/s]) to log10(rise_time [us]) - yield calibration: log10(velocity [km/s]) to log10(charge_yield [C/kg])

Parameters:
  • log_v (float) – The log10 input to the calibration curve. This is log10(velocity [km/s]) for both the rise-time and yield cases.

  • log_a (float) – Log10 of the calibration scale factor A.

  • params (np.ndarray) – Calibration parameters for the power law [a1, a2, a3, vb, vc, k, m].

Returns:

The calibrated log10 output. This is either log10(rise_time [us]) for the rise-time case or log10(charge_yield [C/kg]) for the yield case.

Return type:

float