pysted.utils.rescale_data

pysted.utils.rescale_data(data, to_int=True, divider=1)

Function to rescale the data (made for light curves, might be of use elsewhere) between 1 and max-min

Parameters:
  • data – data to rescale.

  • to_int – Determines whether the data is truncated to ints after being normalized. Useful for using the fast acquisition function.

Returns:

The data rescaled between 1 and max(data) - min(data)