How To Install python3-pyspectral on Kali Linux

In this tutorial we learn how to install python3-pyspectral on Kali Linux. python3-pyspectral is Reading and manipulaing satellite sensor spectral responses

Introduction

In this tutorial we learn how to install python3-pyspectral on Kali Linux.

What is python3-pyspectral

python3-pyspectral is:

Reading and manipulaing satellite sensor spectral responses and the solar spectrum, to perform various corrections to VIS and NIR band data.

Given a passive sensor on a meteorological satellite PySpectral provides the relative spectral response (rsr) function(s) and offer some basic operations like convolution with the solar spectrum to derive the in band solar flux, for instance.

The focus is on imaging sensors like AVHRR, VIIRS, MODIS, ABI, AHI, OLCI and SEVIRI. But more sensors are included and if others are needed they can be easily added. With PySpectral it is possible to derive the reflective and emissive parts of the signal observed in any NIR band around 3-4 microns where both passive terrestrial emission and solar backscatter mix the information received by the satellite. Furthermore PySpectral allows correcting true color imagery for the background (climatological) atmospheric signal due to Rayleigh scattering of molecules, absorption by atmospheric gases and aerosols, and Mie scattering of aerosols.

There are three methods to install python3-pyspectral on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install python3-pyspectral Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install python3-pyspectral

Install python3-pyspectral Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python3-pyspectral

Install python3-pyspectral Using aptitude

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

sudo aptitude update

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

sudo aptitude -y install python3-pyspectral

How To Uninstall python3-pyspectral on Kali Linux

To uninstall only the python3-pyspectral package we can use the following command:

sudo apt-get remove python3-pyspectral

Uninstall python3-pyspectral And Its Dependencies

To uninstall python3-pyspectral and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove python3-pyspectral

Remove python3-pyspectral Configurations and Data

To remove python3-pyspectral configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge python3-pyspectral

Remove python3-pyspectral configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python3-pyspectral

Dependencies

python3-pyspectral have the following dependencies:

References

Summary

In this tutorial we learn how to install python3-pyspectral package on Kali Linux using different package management tools: apt, apt-get and aptitude.