pysteps.visualization.spectral.plot_spectrum1d

pysteps.visualization.spectral.plot_spectrum1d(fft_freq, fft_power, x_units=None, y_units=None, wavelength_ticks=None, color='k', lw=1.0, label=None, ax=None, **kwargs)

Function to plot in log-log a radially averaged Fourier spectrum.

Parameters:
fft_freq: array-like

1d array containing the Fourier frequencies computed by the function ‘rapsd’ in utils/spectral.py

fft_power: array-like

1d array containing the radially averaged Fourier power spectrum computed by the function ‘rapsd’ in utils/spectral.py

x_units: str, optional

Units of the X variable (distance, e.g. km)

y_units: str, optional

Units of the Y variable (amplitude, e.g. dBR)

wavelength_ticks: array-like, optional

List of wavelengths where to show xticklabels

color: str, optional

Line color

lw: float, optional

Line width

label: str, optional

Label (for legend)

ax: Axes, optional

Plot axes

Returns:
ax: Axes

Plot axes