pymoctool command not found

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

Introduction

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

pymoctool: command not found

or when using sudo you get the following error message

sudo: pymoctool: command not found

Solutions to pymoctool: command not found

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

In Ubuntu pymoctool is provided by pymoctool package.

pymoctool is:

‘pymoctool’ is a command-line Python-based library for manipulating Multi-Order Coverage maps (MOCs).

Frequently astronomical survey catalogues or images are sparse and cover only a small part of the sky. In a Multi-Order Coverage map the extent of data in a particular dataset is cached as a pre-calculated mask image. The hierarchical nature enables fast boolean operations in image space, without needing to perform complex geometrical calculations. Services such as VizieR generally offer the MOC masks, allowing a faster experience in graphical applications such as Aladin, or for researchers quickly needing to locate which datasets may contain overlapping coverage.

The MOC mask image itself is tessellated and stored in NASA HealPix format, encoded inside a FITS image container. Using the HealPix (Hierarchical Equal Area isoLatitude Pixelization) tessellation method ensures that more precision (pixels) in the mask are available when describing complex shapes such as approximating survey or polygon edges, while only needing to store a single big cell/pixel when an coverage is either completely inside, or outside of the mask. Catalogues can be rendered on the mask as circles.

It is written in Python and uses the PyMOC library.

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

sudo apt-get -y install pymoctool

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

You can also use apt command to install pymoctool.

sudo apt -y install pymoctool

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

sudo aptitude install pymoctool

Summary

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