nc4tonc3 command not found

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

Introduction

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

nc4tonc3: command not found

or when using sudo you get the following error message

sudo: nc4tonc3: command not found

Solutions to nc4tonc3: command not found

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

In Ubuntu nc4tonc3 is provided by python3-netcdf4 package.

python3-netcdf4 is:

NetCDF version 4 has many features not found in earlier versions of the library and is implemented on top of HDF5. This module can read and write files in both the new netCDF 4 and the old netCDF 3 format, and can create files that are readable by HDF5 clients. The API is modelled after Scientific.IO.NetCDF, and should be familiar to users of that module.

Most new features of netCDF 4 are implemented, such as multiple unlimited dimensions, groups and zlib data compression. All the new numeric data types (such as 64 bit and unsigned integer types) are implemented. Compound and variable length (vlen) data types are supported, but the enum and opaque data types are not. Mixtures of compound and vlen data types (compound types containing vlens, and vlens containing compound types) are not supported.

This package contains the netCDF 4 module for Python 3.

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

sudo apt-get -y install python3-netcdf4

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

You can also use apt command to install python3-netcdf4.

sudo apt -y install python3-netcdf4

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

sudo aptitude install python3-netcdf4

Summary

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