How To Install synphot-data on Ubuntu 18.04
Introduction
In this tutorial we learn how to install synphot-data
on Ubuntu 18.04.
What is synphot-data
synphot-data is:
pysynphot simulates photometric data and spectra as they are observed with the Hubble Space Telescope (HST).
This package downloads the data files for synphot and pysynphot:
- HST component throughput files and graph and component lookup tables,
- Stellar and galactic model files,
- the Castelli and Kurucz 2004 Atlas,
- the Kurucz 1993 Atlas,
- the Phoenix Models, and
- the HST Calibration Spectra.
Note that installing this package will cause downloading more than 600 MB of data from archive.stsci.edu.
There are three methods to install synphot-data
on Ubuntu 18.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 synphot-data Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install synphot-data
using apt-get
by running the following command:
sudo apt-get -y install synphot-data
Install synphot-data Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install synphot-data
using apt
by running the following command:
sudo apt -y install synphot-data
Install synphot-data 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 synphot-data
using aptitude
by running the following command:
sudo aptitude -y install synphot-data
How To Uninstall synphot-data on Ubuntu 18.04
To uninstall only the synphot-data
package we can use the following command:
sudo apt-get remove synphot-data
Uninstall synphot-data And Its Dependencies
To uninstall synphot-data
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove synphot-data
Remove synphot-data Configurations and Data
To remove synphot-data
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge synphot-data
Remove synphot-data configuration, data, and all of its dependencies
We can use the following command to remove synphot-data
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge synphot-data
References
Summary
In this tutorial we learn how to install synphot-data
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.