pygac-run command not found

In this troubleshooting guide we learn how to fix pygac-run command not found error message

Introduction

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

pygac-run: command not found

or when using sudo you get the following error message

sudo: pygac-run: command not found

Solutions to pygac-run: command not found

How To Fix pygac-run: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu pygac-run is provided by pygac-bin package.

pygac-bin is:

pygac reads NOAA AVHRR Global Area Coverage (GAC) data, and performs state of the art calibration and navigation.

It must be noted that pygac expects Level 1b file to contain normal GAC header and data records, the format of which are mentioned in the official NOAA POD and KLM Data User Guides. The user should not prepend any other header (e.g. when downloading GAC data from CLASS archive etc) to the L1b file. In the first pre-processing step, pygac determines whether the GAC data comes from the second (i.e. NOAA-14 and before) or the third generation (NOAA-15 and onwards) AVHRR instrument by “pygac-run”. This is done by reading the first three bytes of the data set. If they contain the any of the following values, [“CMS”, “NSS”, “UKM”, “DSS”], then the KLM reader from “gac_klm.py” file is invoked, otherwise the POD reader is invoked (gac_pod.py).

This package provides utilities and executable scripts.

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

sudo apt-get -y install pygac-bin

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

You can also use apt command to install pygac-bin.

sudo apt -y install pygac-bin

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

sudo aptitude install pygac-bin

Summary

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