aoflagger command not found

In this troubleshooting guide we learn how to fix aoflagger command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

aoflagger: command not found

or when using sudo you get the following error message

sudo: aoflagger: command not found

Solutions to aoflagger: command not found

How To Fix aoflagger: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu aoflagger is provided by aoflagger package.

aoflagger is:

The AOFlagger is a tool that can find and remove radio-frequency interference (RFI) in radio astronomical observations. The code has been highly optimized for speed and accuracy. It is used by default for the LOFAR radio telescope and thus is in productional stage. The software can run in a fully automated way, but a graphical interface is provided to analyse results and tweak the strategy. The preferred input file format is the Casa Measurement Set (MS) format.

Besides the flagger, the software consists of tools to efficiently visualize data in different ways, such as plotting time-frequency diagrams and power spectra. It provides the programs aoflagger, rfigui, aoqplot, aoquality and more.

To fix this problem, we can install more using the command below.

sudo apt-get -y install aoflagger

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install aoflagger.

sudo apt -y install aoflagger

Or if you have aptitude installed you can use the following command.

sudo aptitude install aoflagger

Summary

In this tutorial we learn how to fix aoflagger command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.