This historical guide uses the frozen gr38 tag. It preserves the older combined package and its application paths.
For current software, use the DSPIRA software guide.
This installs spectrometer_w_cal.grc and other GNU Radio astronomy programs on Ubuntu 20.04.
Complete the following steps:
-
Open a terminal window in Ubuntu.
- Install GNU Radio external python dependencies and SDR drivers by typing the following and hit enter:
sudo apt install gnuradio gr-osmosdr airspy python3-h5py python3-ephem git cmake liborc-0.4-dev -y -
To clone the repository: in the terminal, type and Enter:
git clone --branch gr38 https://github.com/WVURAIL/radio-research-software.git gr-radio_astro -
Switch to the gr-radio_astro directory:
cd gr-radio_astro -
Confirm the historical release by typing:
git describe --tags --exact-match -
Make a build directory:
mkdir build, and then move to it:cd build -
Then run the following in the build directory:
cmake .. sudo make sudo make installAdditional Steps for setting the proper Python environment:
-
Open a terminal window.
-
Make sure you are at the home directory (type and Enter
cd). Then typegedit .bashrcto open the .bashrc file in an editor. -
Scroll to the file’s bottom and add a blank line. Paste this code:
export PYTHONPATH=/usr/local/lib/python3/dist-packages:/usr/local/lib/python3.8/dist-packages:$PYTHONPATH -
Save and close (x in upper right corner).
- Additionally you can create appropriate symbolic links
- Open
gnuradio-companionin a terminal, then clickHelp --> About. Note the Python version in the dialog. - For Python 3.8, type
cd /usr/local/lib/python3.8/dist-packages. For Python 3.9, usecd /usr/local/lib/python3.9/dist-packages. - Type
ln -s /usr/local/lib/python3/dist-packages/radio_astro
- Open
Check that the Installation was Successful
- Restart your terminal window. Run the program in GNU Radio:
- In a terminal window type
gnuradio-companion -
Open the spectrometer_w_cal.grc program as follows:
File --> Open --> gr-radio_astro --> examples --> DSPIRA --> spectrometer_w_cal.grc - Plug an Airspy radio, with the LNA attached, into the USB port. Run the program by hitting the start triangle (“execute the flowgraph”) on the menu bar at top. If no errors occur, you are all set!
- In a terminal window type
Updating an older installation
The gr38 tag is a frozen release, not an update branch.
Keep existing receiver settings and customized flowgraphs before changing environments.
For current development, use the DSPIRA installation guide with GNU Radio 3.10.
Do not use git pull to update this historical tag.