Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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

[UDUNITS #JLQ-522131]: udunits2 and utScan, utIsTime



Sue,

> So what your saying is all time units should be convertible
> with seconds and if this fails the unit was not a time unit?

That's correct.

> The CF-1-0 convention states that the only way to determine
> a time variable is check that the units are time units.

Ideally, a "physical quantity" library would exist that could
be used instead of the unit library to check things like this.
Unfortunately, such a library doesn't exist and so the unit
library is pressed into this role.

> Here is one more question: The Cf-1.0 doc also states that
> to determine a z coordinate variable you check for the "positive" attribute
> or you need to determine that the units are units of pressure.
> Would you use the same ut_are_convertible function but do something like this:
> 
> if (ut_are_convertible(unit, ut_get_unit_by_name(system, "Pa")) {
> ...
> }

That would work.

> Thanks,
> Sue


Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: JLQ-522131
Department: Support UDUNITS
Priority: Normal
Status: Closed


 
 
  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