BookRags.com Literature Guides Literature
Guides
Criticism & Essays Criticism &
Essays
Questions & Answers Questions &
Answers
Lesson Plans Lesson
Plans
My Bibliography Periodic Table U.S. Presidents Shakespeare Sonnet Shake-Up
Research Anything:        
History | Encyclopedias | Films | News | Create a Bibliography | More... Login | Register | Help
Not What You Meant?  There are 28 definitions for Unit.

Units (Unix)

Print-Friendly
About 1 pages (372 words)

Bookmark and Share Know this topic well? Help others and get FREE products!

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. The plain text database units.dat is a good reference in itself. The original units program has been a standard part of Unix since the early Bell Laboratories versions. 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.[1] The relatively newer GNU free software version of units (or GNU Units) is written by Adrian Mariano.

Contents

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

  1. ^ As specified from several NetCDF conventions, e.g.:

External links

View More Summaries on Units (Unix)
 
Ask any question on Units (Unix) and get it answered FAST!
Answer questions in BookRags Q&A and earn points toward
discounted or even FREE Study Guides and other BookRags products!
Learn more about BookRags Q&A
Copyrights
Units (Unix) from Wíkipedia. ©2006 by Wíkipedia. Licensed under the GNU Free Documentation License. View a list of authors or edit this article.

Article Navigation
Join BookRagslearn moreJoin BookRags




About BookRags | Customer Service | Report an Error | Terms of Use | Privacy Policy