⇐ ⇒

[CF-metadata] udunits time unit question

From: John Caron <caron>
Date: Tue, 22 Mar 2011 06:53:20 -0600

Consider:

    int time(sample=1001);
      :long_name = "Measurement time";
      :standard_name = "time";
      :units = "days since 1970-01-01";

vs

    int time(sample=1001);
      :long_name = "Measurement time";
      :standard_name = "time";
      :units = "3 days since 1970-01-01";

values = 1, 2, 3, ...

are these equivalent or does the second one mean every 3 days ? Is the
second one illegal ?

the CF doc says:

   The|units|attribute takes a string value formatted as per the
recommendations in the Udunits package [UDUNITS
<http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.5/cf-conventions.html#udunits>].

but theres no particular grammar documented there, nor is the above
question answered.

these are relatively minor problems, but if you want to implement the
spec with another library, then you realize that there is no clear spec
- just a reference library. this is a common mistake in software -
confusing the reference implementation from an actual specification.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cgd.ucar.edu/pipermail/cf-metadata/attachments/20110322/1c9a22bc/attachment-0001.html>
Received on Tue Mar 22 2011 - 06:53:20 GMT

This archive was generated by hypermail 2.3.0 : Tue Sep 13 2022 - 23:02:41 BST

⇐ ⇒