This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
D. Hogan, > I think there are a few bugs in the XML database for the latest > udunits2. I discovered these when I was translating most of the > udunits2 database into Kepler/Ptolemy II units. Ptolemy handles units > as variables so I couldn't simply link to libudunits2. > > These are used in definitions but there are no names, symbols or aliases > for them. They all have a singular form but are missing these plural > forms: > > lib> egrep -n "(international_inches|hours|micromoles)" *.xml > udunits2-common.xml:423: <def>12 international_inches</def> > udunits2-common.xml:1609: <def>2056 hours</def> > <!-- exact --> > udunits2-common.xml:1634: <def>446.2 micromoles/meter^2</def> The UDUNITS-2 package knows how to create a plural form from a singular form using the standard rules for such (e.g., "inch" -> "inches"). Consequently, the <plural/> element is only need for exceptions (e.g., "foot"). Regards, Steve Emmerson Ticket Details =================== Ticket ID: ECD-376578 Department: Support UDUNITS Priority: Normal Status: Closed