FREQCOR_plot.plot_cosp_unified

FREQCOR_plot.plot_cosp_unified(freq, Rcosv, Icosv, ws, denoising, zL=None, sps=None, j_class=None, jrh_class=None, plot=None, outputpath=None, gas_type='co2', all_classes_data=None, file_tag=None)[source]

Plot mean (co)spectra for one class or for all classes.

Parameters:
  • freq (array-like) – Natural frequencies (Hz).

  • Rcosv (array-like) – Real and ideal (co)spectra for a single class.

  • Icosv (array-like) – Real and ideal (co)spectra for a single class.

  • ws (float) – Mean wind speed for current class.

  • denoising (dict or list[dict]) – Denoising metadata (e.g., Aslan et al. 2021), for single- or multi-class mode.

  • zL (float, optional) – Stability parameter. The default is None.

  • sps (int, optional) – Sampling frequency. The default is None.

  • j_class (int, optional) – Wind speed class number. The default is None.

  • jrh_class (int, optional) – First-level class index (WD or RH class). The default is None.

  • plot (list, optional) – Plot configuration. The default is None.

  • outputpath (str, optional) – Output directory. The default is None.

  • gas_type (str, optional) – Gas label used for titles. The default is ‘co2’.

  • all_classes_data (dict, optional) – Multi-class container holding lists of x, y, cofmat, fnmat, etc. The default is None.

  • file_tag (str, optional) – Output filename tag (required when saving is enabled). The default is None.

Return type:

None

Raises:

ValueError – If saving is enabled and file_tag is missing.