plot_rsr command not found

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

Introduction

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

plot_rsr: command not found

or when using sudo you get the following error message

sudo: plot_rsr: command not found

Solutions to plot_rsr: command not found

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

In Ubuntu plot_rsr is provided by pyspectral-bin package.

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.

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

sudo apt-get -y install pyspectral-bin

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

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

sudo apt -y install pyspectral-bin

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

sudo aptitude install pyspectral-bin

Summary

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