How To Install ast on CentOS 7

In this tutorial we learn how to install ast on CentOS 7. ast is A Library for Handling World Coordinate Systems in Astronomy

Introduction

In this tutorial we learn how to install ast on CentOS 7.

What is ast

The AST library provides a comprehensive range of facilities for attaching world coordinate systems to astronomical data, for retrieving and interpreting that information and for generating graphical output based on it. It’s main selling points are * Ease of use. * Facilities for generating plots of generalized non-linear, potentially discontinuous 2-D or 3-D coordinate systems, with detailed control of the appearance of the plot. * Facilities for converting transparently between different coordinate systems, including a wide range of celestial, spectral and time coordinate systems. * Facilities for searching a general collection of connected coordinate systems for a coordinate system with any given set of characteristics. * Allows code for handling WCS information to be written in a general way without regard to the specific nature of the coordinate systems being handled (i.e. whether they represent sky positions, spectral positions, focal plane positions, pixel positions, etc). * Flexible system for saving and retrieving WCS information, including (but not limited to) a range of different popular FITS descriptions. * Written in C but has interfaces for C, Fortran, Java (via JNI), Perl, and UNIX shell. * Extensive documentation.

We can use yum or dnf to install ast on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install ast.

Install ast on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install ast using yum by running the following command:

sudo yum -y install ast

Install ast on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install ast using dnf by running the following command:

sudo dnf -y install ast

How To Uninstall ast on CentOS 7

To uninstall only the ast package we can use the following command:

sudo dnf remove ast

References

Summary

In this tutorial we learn how to install ast on CentOS 7 using yum and dnf.