⇐ ⇒

[CF-metadata] "Andrew Clegg": udunits 1 or 2 for CF?

From: Andrew Clegg <ancl>
Date: Thu, 04 Mar 2010 10:08:13 +0000

Steve,
> The UDUNITS-1 library had a bug in it. The bug was that "g" was
> interpreted as meaning "gravity" (i.e., "standard_free_fall") rather
> than "gram". This was corrected in version 1.12.10 of the UDUNITS-1
> package, which was released on 2009-09-17.
>
> The UDUNITS-2 package did not have this bug from the outset.
>
Thanks for this, however this is not the only incompatibility I have
found. Another one is specifying microns. Udunits1 understands 'um',
while Udunits2 recognises '?m'. I note that the CF conventions list in
Table 3.1 that the abbreviation for micro is 'u', not '?'.

It may well be that these are the only 2 incompatibilities - in which
case, it might be wise to note these specifically in the conventions, ie
to specify that "The value of the |units| attribute is a string that can
be recognized by UNIDATA"s Udunits package (version 1.12.10 or higher)
<http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.4/cf-conventions.html#udunits>",
and perhaps that '1e-6' should be used in place of u/? to ensure
compatibility with both versions.

Cheers,
Andrew

--------------------------------------------------------------------------------
Plymouth Marine Laboratory
 
Registered Office:
Prospect Place
The Hoe
Plymouth PL1 3DH
 
Website: www.pml.ac.uk
Registered Charity No. 1091222
PML is a company limited by guarantee
registered in England & Wales
company number 4178503

PML is a member of the Plymouth Marine Sciences Partnership
Website: www.pmsp.org.uk
--------------------------------------------------------------------------------
This e-mail, its content and any file attachments are confidential.

If you have received this e-mail in error please do not copy, disclose it to any third party or use the contents or attachments in any way. Please notify the sender by replying to this e-mail or e-mail forinfo at pml.ac.uk and then delete the email without making any copies or using it in any other way.

The content of this message may contain personal views which are not the views of Plymouth Marine Laboratory unless specifically stated.

You are reminded that e-mail communications are not secure and may contain viruses. Plymouth Marine Laboratory accepts no liability for any loss or damage which may be caused by viruses.
--------------------------------------------------------------------------------
Received on Thu Mar 04 2010 - 03:08:13 GMT

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

⇐ ⇒