Everyone,
The UDUNITS packages (both UDUNITS and UDUNITS-2) interpret the empty
string (i.e., "") as the dimensionless unit 1 -- so if you can't use
"1", then use "" (assuming you pass that string to the UDUNITS library).
The udunits(1) and udunits2(1) programs, however, interpret the empty
string as a user input error and ask for the input unit again.
Regards,
Steve Emmerson
UDUNITS developer
On 2/28/2011 10:18 AM, Rosalyn Hatcher wrote:
Dear Karl,
That is correct. If the variable is deemed unitless, then the checker
will not flag an error if either units=1 or the units attribute is omitted.
If the units attribute is missing, it will, however, produce an
information message suggesting that the units attribute is added for
completeness.
Eg.
------------------
Checking variable: CHL_count
------------------
INFO (3.1): No units attribute set. Please consider adding a units attribute
for completeness.
I introduced the INFO category of message a while ago, for instances
where the checker couldn't be sure of an error (E.g. where an attribute
is being used in a non-standard way), to prompt the user to double check
that what they've put is actually what they meant.
I'll hopefully have a fixed version of the checker available tomorrow
for testing.
Regards,
Ros.
On 28/02/11 16:44, Karl Taylor wrote:
Dear Rosalyn,
I assume the checker will also not complain if the units attribute is
simply omitted when the variable is unitless (i.e., either units="1"
or the attribute is omitted result in the same behavior by the checker).
best regards,
Karl
On 2/28/11 4:28 AM, [email protected] wrote:
Dear Rosalyn,
thanks so much for your reply and your works that is so important for
me. Infact "my" data are produced within MYOCEAN (european) project
and thay are going to test them! so it is important they do not failed
the CF checker test.
Best regards.
cristina
p.s.
Sorry if sometime I miss some e-mails and I didin't answer to them.
This is a very caotic working time....and I'm receiving so many e-mails.
Thanks to all the cf-metadata group to their help!
Citando Rosalyn Hatcher<[email protected]>:
I agree units should be set to "1" and I am currently in the process of
fixing the error in the CF Checker.
Regards,
Ros.
On 27/02/11 17:27, Steven Emmerson wrote:
Cristina,
I recommend the unit "1" for that use.
If the CF checker doesn't like that unit, then it should be fixed,
IMO, because that unit is supported by both the US NIST and the BIPM.
Regards,
Steve Emmerson
UDUNITS developer
On 2/26/2011 12:30 PM,[email protected] wrote:
Dear Roy,
Our variable "chlorophyll count" as is understandable by CF is the
number of individual measurements used to determine a chlorophyll value.
I do need to know what to put at "units" attribute for that variable.
I undestood by the CF convention 1.4 (appendix C) that I have to put
"units="1" as the chlorophyll count is a dimensionless variable...but
the CF checker found it as an error.
I try not to put the Unit attribute ...but again i get an error by che
cf chcker.......so.....
my question is: what unit shoudl I set for my chlorophyll count variable?
thanks for your help.
cristina
-------------------------------------------------------------------
Cristina Tronconi
Istituto di Scienze dell'Atmosfera e del Clima - sezione di Roma
Consiglio Nazionale delle Ricerche
Via Fosso del Cavaliere 100
00133 Roma, Italy
Tel: +39 06 49934342
cell: '39 349 1242954
Fax: +39 06 20660291
e-mail:[email protected]
_______________________________________________
CF-metadata mailing list
[email protected]
http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata
_______________________________________________
CF-metadata mailing list
[email protected]
http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata
--
Rosalyn Hatcher
NCAS Computational Modelling Services
Dept. of Meteorology, University of Reading,
Earley Gate, Reading. RG6 6BB
Email:[email protected] Tel: +44 (0) 118 378 6016
-------------------------------------------------------------------
Cristina Tronconi
Istituto di Scienze dell'Atmosfera e del Clima - sezione di Roma
Consiglio Nazionale delle Ricerche
Via Fosso del Cavaliere 100
00133 Roma, Italy
Tel: +39 06 49934342
cell: '39 349 1242954
Fax: +39 06 20660291
e-mail:[email protected]
_______________________________________________
CF-metadata mailing list
[email protected]
http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata
_______________________________________________
CF-metadata mailing list
[email protected]
http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata
--
Rosalyn Hatcher
NCAS Computational Modelling Services
Dept. of Meteorology, University of Reading,
Earley Gate, Reading. RG6 6BB
Email:[email protected] Tel: +44 (0) 118 378 6016
_______________________________________________
CF-metadata mailing list
[email protected]
http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata
_______________________________________________
CF-metadata mailing list
[email protected]
http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata