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

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



Sue,

> Hi there,
> Are utIsTime a part of the UDUNITS-2 package?

Not explicitly.

> If not is there an equivalent?
> I need some funtion to test whether a netCDF coordinate
> var is a time var.

Try converting the unit with a second, e.g.,

    if (ut_are_convertible(unit, ut_get_unit_by_name(system, "second")) {
        ...
    }

Regards,
Steve Emmerson

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


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.