[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[UDUNITS #CZQ-242287]: ua v. au


Interpretation of a unit string token like "ua" occurs in phases with the first 
match stopping the interpretation: 1) unit name; 2 unit name with a prefix; 3) 
unit symbol; 4 unit symbol with a prefix. Unfortunately, "ua" is a unit symbol. 
Here's its entry:

            <comment>Pre-2012 resolution by the IAU</comment>
            <def>1.495979e11 m</def>
            <definition>unit of measurement equal to 149.6 million kilometers, 
the mean distance from the center of the earth to the center of the sun 
according to the International Bureau of Weights and Measures (BIPM) in 

I don't know what they were thinking. Maybe "unit astronomique"?

This is one of the reasons why I recommend the use of unit names rather than 

> Had a question about what appears to be a curious inconsistency.
> When is a letter interpreted as a prefix as opposed to part of a
> multicharacter base unit?
> on RHEL 6 (udunits 2.1.19)
> Example 1:
> au is interpreted as atto-u, i.e. atto-atomic mass unit
> a is "are" but
> ua is not "micro-are", but instead astronomical unit.
> How are these ambiguities resolved in udunits2?
> --
> Tschüss ...rick...

Steve Emmerson

Ticket Details
Ticket ID: CZQ-242287
Department: Support UDUNITS
Priority: High
Status: Closed