How To Install ncl-ncarg on Ubuntu 20.04

In this tutorial we learn how to install ncl-ncarg on Ubuntu 20.04. ncl-ncarg is NCAR Command Language and NCAR graphics

Introduction

In this tutorial we learn how to install ncl-ncarg on Ubuntu 20.04.

What is ncl-ncarg

ncl-ncarg is:

The NCAR Command Language (NCL) is a free interpreted language designed specifically for scientific data processing and visualization. NCL has robust file input and output. It can read and write netCDF-3, netCDF-4 classic HDF4, HDF5, binary, and ASCII data, and read HDF-EOS2, GRIB1 and GRIB2. The graphics are world class and highly customizable.

The software comes with a couple of useful command line tools:

  • ncl_filedump - prints the contents of supported files (netCDF, HDF, GRIB1, GRIB2, HDF-EOS2, and CCM History Tape)
  • ncl_convert2nc - converts one or more GRIB1, GRIB2, HDF and/or HDF-EOS iles to netCDF formatted files.

There are three methods to install ncl-ncarg 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 ncl-ncarg Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install ncl-ncarg

Install ncl-ncarg Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ncl-ncarg

Install ncl-ncarg 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 ncl-ncarg using aptitude by running the following command:

sudo aptitude -y install ncl-ncarg

How To Uninstall ncl-ncarg on Ubuntu 20.04

To uninstall only the ncl-ncarg package we can use the following command:

sudo apt-get remove ncl-ncarg

Uninstall ncl-ncarg And Its Dependencies

To uninstall ncl-ncarg and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove ncl-ncarg

Remove ncl-ncarg Configurations and Data

To remove ncl-ncarg configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge ncl-ncarg

Remove ncl-ncarg configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ncl-ncarg

References

Summary

In this tutorial we learn how to install ncl-ncarg package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.