How To Install pyspectral-bin on Ubuntu 20.04
Introduction
In this tutorial we learn how to install pyspectral-bin
on Ubuntu 20.04.
What is pyspectral-bin
pyspectral-bin 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.
This package provides utilities and executable scripts.
There are three methods to install pyspectral-bin
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install pyspectral-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 pyspectral-bin
using apt-get
by running the following command:
sudo apt-get -y install pyspectral-bin
Install pyspectral-bin Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install pyspectral-bin
using apt
by running the following command:
sudo apt -y install pyspectral-bin
Install pyspectral-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 Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install pyspectral-bin
using aptitude
by running the following command:
sudo aptitude -y install pyspectral-bin
How To Uninstall pyspectral-bin on Ubuntu 20.04
To uninstall only the pyspectral-bin
package we can use the following command:
sudo apt-get remove pyspectral-bin
Uninstall pyspectral-bin And Its Dependencies
To uninstall pyspectral-bin
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove pyspectral-bin
Remove pyspectral-bin Configurations and Data
To remove pyspectral-bin
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge pyspectral-bin
Remove pyspectral-bin configuration, data, and all of its dependencies
We can use the following command to remove pyspectral-bin
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge pyspectral-bin
References
Summary
In this tutorial we learn how to install pyspectral-bin
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.