Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 
  CommunityCorner
Director's Page
Strategic Plan
Metrics Assessment
2006 Users Workshop
Unidata Seminar Series
CommunitE-letter
Unidata Events
Community Announcements
Job Opportunities
Acronyms List
 
  ToolBox
  Downloads
  Data
  Software Tools
  Data-flow Quick Help
  Support
  Mailing Lists
  Forums
  RSS Feeds
 
  DisplayAnalysis
  GEMPAK
  McIDAS
  IDV
 
  DataAccess
  LDM
  IDD
  THREDDS
  OPeNDAP/DODS
 
  DataManagement
  libcf
  netCDF
  netCDF Java
  UDUNITS
 
 
UDUNITS
The Unidata units library supports conversion of unit specifications between formatted and binary forms, arithmetic manipulation of unit specifications, and conversion of values between compatible scales of measurement.
UDUNITS Introduction and Use
The Unidata units library, UDUNITS, supports conversion of unit specifications between formatted and binary forms, arithmetic manipulation of unit specifications, and conversion of values between compatible scales of measurement.
A unit is the amount by which a physical quantity is measured. For example:
Physical Quantity Possible Unit
time weeks
distance centimeters
power watts
The UDUNITS package also contains an interactive utility, udunits, which has two modes. In one mode, both an input and output unit specification are given, causing the utility to print the conversion between them:

You have: inch
You want: cm
cm = inch*2.54
cm = inch/0.393701

You have: (15 lbs force/in)^2
You want: atm2
atm2 = (15 lbs force/in)^2*0.995719
atm2 = (15 lbs force/in)^2/1.0043

You have: celsius
You want: fahrenheit
fahrenheit = celsius*1.8 + 32
fahrenheit = celsius/0.555556 + 32

In the other mode, only an input unit specification is given. This causes the utility to print the definition -- in standard units -- of the input unit:

You have: fahrenheit
You want:
Definition: "0.555556 kelvin @ 255.372"

You have: geopotential meters
You want:
Definition: "9.80665 meter2 second-2"

Further information on this package can be found in the C manual page or FORTRAN manual page, the associated utility manual page, or the perl extension manual page.
 
UDUNITS News and Announcements
See the package's release notes file.
 
UDUNITS Availability
The latest release is available from the Unidata downloads page.
 
UDUNITS Installation
See the package's INSTALL file.
Builds on Other Platforms
Known Problems
Supported Units
IDL Interface
 
UDUNITS Support
Search or browse the UDUNITS support archives
Search or browse the netCDF support archives
Search or browse the netcdfgroup mailing list archives
Questions or comments can be sent to Unidata UDUNITS Support
 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690