[CF-metadata] udunits 1 or 2 for CF?
Bruno PIGUET wrote:
> Le mercredi 03 mars 2010 ? 15:10 +0000, Andrew Clegg a ?crit :
>
>> [...] In udunits1, I used 'ukg m^-3', which
>> udunits2 rejects as invalid. udunits2 accepts 'mg m^-3' (which is much
>> better!), but udunits1 interprets this as to do with gravity. Because of
>> this, I can't include a unit string which is generally compatible with
>> udunits...
>>
>
> As a personal choice, to deal with this problem, I use the full word
> "gram" with udunits-1. And "mgram" is accepted as milligram, which I
> find better than ukg, which i would never have thought of by myself.
>
> I guess (can't test it by now) that "mgram" should also be accepted by
> udunits-2. Is it an option for you ?
>
> Bruno.
>
I never thought of using the full word 'gram' - I've just checked and
'gram' and 'mgram' work on udunits-2 as well. Thanks.
However, I'm still concerned that there are differences between the 2
versions, and that this should be at least noted in the conventions.
Other people in the future will probably have the same problem, and it
would be nice to have a definitive answer. My (strong) personal
preference is to say that all unit strings should be correct when
interpreted with udunits-2, rather than relying on a set of 'hacks' to
ensure compatibility between the 2.
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 - 08:06:01 GMT
This archive was generated by hypermail 2.3.0
: Tue Sep 13 2022 - 23:02:41 BST