rex.utilities.utilities.rex_unscale

rex_unscale(data, scale_factor=1, adder=0)[source]

Unscale rex-formatted data

Rex-style unscaling divides by the scale_factor if adder==0; otherwise the scale_factor is multiplied before adding the adder.

Parameters:
  • data (array-like) – Input data to be unscaled.

  • scale_factor (int | float, optional) – Data scaling factor. By default, 1.

  • adder (int | float, optional) – Data adder. By default, 0.

Returns:

array-like – Unscaled input data.