Units (Unix)

Units (Unix)

Units is a Unix computer program for conversion of units of quantities. It has a database of measurements, including esoteric and historical measurements. This for instance allows conversion of velocities specified in furlongs per fortnight, and pressures specified in tons per acre. The plain text database "units.dat" is a good reference in itself, as it is extensively commented and cites numerous sources.

The original "units" program has been a standard part of Unix since the early Bell Laboratories versions.fact|date=April 2007

" [http://www.unidata.ucar.edu/downloads/udunits/index.jsp UDUNITS] " is a similar utility program, except that it has an additional programming library interface and date conversion abilities. UDUNITS is considered the "de facto" program and library for variable unit conversion for netCDF files. [As specified from several NetCDF conventions, e.g.:
*COARDS - cite web |title=Conventions for the standardization of NetCDF files |date=1995-02-10 |url=http://ferret.wrc.noaa.gov/noaa_coop/coop_cdf_profile.html
*CF - cite web |title=NetCDF Climate and Forecast (CF) Metadata Conventions |url=http://www.cgd.ucar.edu/cms/eaton/cf-metadata/CF-1.0.html |date=2003-10-28
]

The relatively newer GNU free software version of "units" (or GNU Units) is written by Adrian Mariano.

Usage

"Units" will output the result of the conversion in two lines. Usually the first line (multiplication) is the desired result. The second line is the same conversion expressed as a division.

"Units" can also do math while converting, including several built in mathematical functions such as sin, cos, atan, log, exp, etc.

If you attempt to convert types of measurements that are incompatible "units" will print a conformability error message and display a reduced form of each measurement.

Examples

Interactive mode

2083 units, 71 prefixes, 32 nonlinear units You have: 10 furlongs You want: miles * 1.2500025 / 0.7999984 You have: 1 gallon + 3 pints You want: quarts * 5.5 / 0.18181818 You have: sqrt(miles^2) You want: Definition: 1609.344 m You have:

On the command line (non-interactive)

% units 'ten furlongs per fortnight' 'kilometers per hour' * 0.0059871548 / 167.02424

% units cup ounces conformability error 0.00023658824 m^3 0.028349523 kg

References

External links

* [http://www.gnu.org/software/units/units.html GNU Units homepage]
* [http://gnuwin32.sourceforge.net/packages/units.htm Native port for Windows of GNU Units]
* [http://www.linuxmanpages.com/man1/units.1.php GNU Units man page]
* [http://www.unitsconvert.com On-line units converter based on Units]
* [http://www.units-converter.com A simple on-line converter based on Units]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Units — es una aplicación informática para UNIX y derivados, utilizada para convertir unidades. En su versión 1.85 tiene soporte para 2.438 unidades, 71 prefijos y 32 unidades no lineales. Incluye algunas unidades de interés histórico y otras esotéricas; …   Wikipedia Español

  • Units of information — are a way of measuring a quantity of information or an entropy. Primary units Small amount of information just as logarithm of number of states.According to Shannon, The choice of a logarithmic base corresponds to the choice of a unit for… …   Wikipedia

  • df (Unix) — df (abbreviation for disk free) is a standard Unix computer program used to display the amount of available disk space for filesystems on which the invoking user has appropriate read access. df is usually implemented by reading the mtab file or… …   Wikipedia

  • Df (Unix) — df (abbreviation for disk free ) is a standard Unix computer program used to display the amount of available disk space for filesystems on which the invoking user has appropriate read access. df is usually implemented by reading the mtab file or… …   Wikipedia

  • Программы UNIX-подобных операционных систем — Это список популярных программ, работающих в операционных системах основанных на UNIX (POSIX совместимых). Некоторые из этих программ являются стандартными для UNIX подобных систем. Содержание 1 Системный софт 1.1 Общего назначения …   Википедия

  • Categoría:Software para Unix — Esta categoría es un contenedor general, utilizado para organizar categorías más precisas. Por su naturaleza amplia, sólo deben aparecer en ella los artículos muy generales. Por favor, utiliza en lo posible alguna de las subcategorías. Nota: Se… …   Wikipedia Español

  • dd (Unix) — In computing, dd is a common Unix program whose primary purpose is the low level copying and conversion of raw data. According to the manual page for Version 7 Unix,[1] it will convert and copy a file . It is used to copy a specified number of… …   Wikipedia

  • du (Unix) — example screenshot of du in a terminal du (abbreviated from disk usage) is a standard Unix program used to estimate file space usage space used under a particular directory or files on a file system. Contents …   Wikipedia

  • Df (Unix) — df (abréviation de disk free en anglais) est une commande UNIX utilisée pour afficher la valeur d espace disque disponible des systèmes de fichier dont l utilisateur possède l accès en lecture. df est habituellement implémenté en lisant le… …   Wikipédia en Français

  • Dd (Unix) — dd is a common UNIX program whose primary purpose is the low level copying and conversion of raw data. dd is an abbreviation for data definition in IBM JCL, and the command s syntax is meant to be reminiscent of this. cite web |… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”