Normalize vectors

pyspedas.tnormalize(variable, newname=None, return_data=False)

Normalize all the vectors stored in a tplot variable

variable: str or np.ndarray

tplot variable (or numpy array) containing the vectors to be normalized

Parameters
  • newname (str) – name of the output variable; default: variable_normalized

  • return_data (bool) – return the normalized vectors instead of creating a tplot variable

Returns

  • name of the tplot variable created or normalized vectors if return_data

  • is set