pyrfu.pyrf.compress_cwt module#

pyrfu.pyrf.compress_cwt.compress_cwt(cwt, nc: int = 100)[source]#

Compress the wavelet transform averaging of nc time steps.

Parameters:
  • cwt (xarray.Dataset) – Wavelet transform to compress.

  • nc (int, Optional) – Number of time steps for averaging. Default is 100.

Returns:

  • cwt_t (xarray.DataArray) – Sampling times.

  • cwt_x (ndarray) – Compressed wavelet transform of the first component of the field.

  • cwt_y (ndarray) – Compressed wavelet transform of the second component of the field.

  • cwt_z (ndarray) – Compressed wavelet transform of the third component of the field.