How To Install pygac-bin on Debian 12

Learn how to install pygac-bin on Debian 12 with this tutorial. pygac-bin is Python package to read and calibrate NOAA AVHRR GAC data - scripts

Introduction

In this tutorial we learn how to install pygac-bin on Debian 12.

What is pygac-bin

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.

There are three methods to install pygac-bin on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install pygac-bin Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install pygac-bin using apt-get by running the following command:

sudo apt-get -y install pygac-bin

Install pygac-bin Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install pygac-bin using apt by running the following command:

sudo apt -y install pygac-bin

Install pygac-bin Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install pygac-bin using aptitude by running the following command:

sudo aptitude -y install pygac-bin

How To Uninstall pygac-bin on Debian 12

To uninstall only the pygac-bin package we can use the following command:

sudo apt-get remove pygac-bin

Uninstall pygac-bin And Its Dependencies

To uninstall pygac-bin and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove pygac-bin

Remove pygac-bin Configurations and Data

To remove pygac-bin configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge pygac-bin

Remove pygac-bin configuration, data, and all of its dependencies

We can use the following command to remove pygac-bin configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge pygac-bin

Dependencies

pygac-bin have the following dependencies:

References

Summary

In this tutorial we learn how to install pygac-bin package on Debian 12 using different package management tools: apt, apt-get and aptitude.