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 fori...@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.
--------------------------------------------------------------------------------
_______________________________________________
CF-metadata mailing list
CF-metadata@cgd.ucar.edu
http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata