GR_PLOT_PSD(1)
π GR_PLOT_PSD π
okay bestie, so this is gr_plot_psd, straight out of the User Commands manual (section 1, iykyk). It's the GNU Radio power spectrum plotting girlie and she is THAT girl. Let's get into it π«Ά
β¨ NAME β¨
gr_plot_psd β GNU Radio power spectrum plotting π
πΈ SYNOPSIS πΈ
gr_plot_psd: [options] input_filename
π¦ DESCRIPTION π¦
So here's the vibe. This script takes a GNU Radio binary file (and yes, you tell it what data type it is with --data-type, don't be shy) and it shows you the I&Q data versus time, plus the power spectral density (PSD) plot. Two plots, one icon. π
The y-axis values are plotted assuming volts as the amplitude of the I&Q streams, and then they get converted into dBm in the frequency domain. And the 1/N power adjustment out of the FFT? That's handled internally, bestie. You don't gotta do a thing. β¨
The script plots a certain block of data at a time β you tell it which one on the command line with -B or --block. Where do you wanna start in the file? That's -s or --start, and it defaults to 0 (aka the very start of the file, the beginning of the lore). π
By default the system assumes a sample rate of 1, so in time, each sample is just plotted versus the sample number. If you want a true time and frequency axis, set the sample rate (-R or --sample-rate) to the sample rate that was used when the samples got captured. fr fr, that's the move. π
And finally β the size of the FFT used for the PSD and spectrogram plots can be set independently with --psd-size and --spec-size, respectively. Independent! They don't even know each other. π
Oh and heads up: the spectrogram plot does not display by default. It's off. It's dormant. It's waiting. You turn it on with -S or --enable-spec. π₯
π OPTIONS π
-h,--helpβ shows this help message and then dips. exit. bye. π-d DATA_TYPE,--data-type=DATA_TYPEβ specify the data type. Your options arecomplex64,float32,(u)int32,(u)int16,(u)int8.[default=complex64]β¨-B BLOCK,--block=BLOCKβ specify the block size.[default=8192]π§-s START,--start=STARTβ specify where to start in the file.[default=0]πΈ-R SAMPLE_RATE,--sample-rate=SAMPLE_RATEβ set the sampler rate of the data.[default=1.0]π--psd-size=PSD_SIZEβ set the size of the PSD FFT.[default=1024]β--spec-size=SPEC_SIZEβ set the size of the spectrogram FFT.[default=256]π-S,--enable-specβ turn on plotting the spectrogram.[default=False]π
quick note bestie:--spec-sizeand-Sare a package deal in spirit β you gotta turn the spectrogram on before you get to see it, no cap.
π SEE ALSO π
gr_plot_psd_c(1)gr_plot_psd_f(1)
the family reunion π«Ά
and that's the whole page!! this was gr_plot_psd version 3.10.12.0, dated 2026-01-03, page GR_PLOT_PSD(1). slay, go plot something pretty π
β¨π
π¦ where this page comes from
- fedora 43: gnuradio 3.10.12.0-10.fc43 Β· GPL-3.0-or-later
- fedora 43: gnuradio 3.10.12.0-10.fc43 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms