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.
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