Skip to content

udunits: The UDUNITS package supports units of physical quantities.

Overview of package

Package: udunits
Description: The UDUNITS package supports units of physical quantities.
For more information: https://www.unidata.ucar.edu/software/udunits/
Categories: SoftwareDevelopment
License: Unknown

General Usage

The UDUNITS package supports units of physical quantities. Its C library provides for arithmetic manipulation of units and for conversion of numeric values between compatible units. The package contains an extensive unit database, which is in XML format and user-extendable. The package also contains a command-line utility for investigating units and converting values.

This module will add the command udunits to your path.

The following environmental variables have been defined:

  • $UDUNITS_ROOT has been set to the root of the udunits installation
  • $UDUNITS_LIBDIR points to the directory containing the libraries
  • $UDUNITS_INCDIR points to the directory containing the header files

You will probably wish to use these by adding the following flags to your compilation command (e.g. to CFLAGS in your Makefile):

  • -I$UDUNITS_INCDIR

and the following flags to your link command (e.g. LDFLAGS in your Makefile):

  • -L$UDUNITS_LIBDIR -Wl,-rpath,$UDUNITS_LIBDIR

Available versions by cluster

This section lists the available versions of the package udunitson the UMD HPC clusters.

Versions available on the Zaratan cluster

Version Module tags CPU(s) optimized for GPU ready?
2.2.28 2.2.28 icelake, x86_64, zen, zen2 Yes