[CF-metadata] help
Hello, I have a problem. iN MY NETCDF FILE I define the CHL_count variable. it is a dimensionless variable. I used the standard name modifier: COUNT for the variable CHL. for IT I define: units=1 as indicated in the Appendix C of the cf-conventions1_4.pdf. but the cf checker gives me this error: -- Checking variable: CHL_count -- ERROR (3.1): Units are not consistent with those given in the standard_name table. WHAT SHOULD I PUT FOR THE ATTRIBUTE UNITS FOR THE CHL_COUNT VARIABLE? IT IS DIMENSIONLESS! THANKS IN ADVANCE CRISTINA TRONCONI --- 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: cristina.tronc...@artov.isac.cnr.it ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata
Re: [CF-metadata] CF Standards
Hi all, If a, b, a_bnds, and b_bnds are dimensionless (and I think they are), then CF should not raise an error that no units attribute set. Does anyone disagree? thanks, Karl On 2/23/11 6:55 AM, Kyle Olivo wrote: Hi Charles, We recently CMORized the Amon variable clw and noticed that the output doesn't seem to adhere to CF standards. double a_bnds(lev, bnds) ; a_bnds:long_name = vertical coordinate formula term: a(k+1/2) ; double b_bnds(lev, bnds) ; b_bnds:long_name = vertical coordinate formula term: b(k+1/2) ; double a(lev) ; a:long_name = vertical coordinate formula term: a(k) ; double b(lev) ; b:long_name = vertical coordinate formula term: b(k) ; CF-Checker results: -- Checking variable: a -- ERROR (3.1): No units attribute set -- Checking variable: a_bnds -- ERROR (3.1): No units attribute set -- Checking variable: b -- ERROR (3.1): No units attribute set -- Checking variable: b_bnds -- ERROR (3.1): No units attribute set Any advice on how to proceed on this? Should a units value of some kinds have been included in the Amon MIP table? Thanks, Kyle ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata
Re: [CF-metadata] help
Hi Chritina, For dimensionless variables, you can either omit the units attribute or set it to 1. I don't understand why this error is raised. Did you assign a standard_name to CHL_count? If so, what did you assign? thanks, Karl On 2/23/11 6:48 AM, cristina.tronc...@artov.isac.cnr.it wrote: Hello, I have a problem. iN MY NETCDF FILE I define the CHL_count variable. it is a dimensionless variable. I used the standard name modifier: COUNT for the variable CHL. for IT I define: units=1 as indicated in the Appendix C of the cf-conventions1_4.pdf. but the cf checker gives me this error: -- Checking variable: CHL_count -- ERROR (3.1): Units are not consistent with those given in the standard_name table. WHAT SHOULD I PUT FOR THE ATTRIBUTE UNITS FOR THE CHL_COUNT VARIABLE? IT IS DIMENSIONLESS! THANKS IN ADVANCE CRISTINA TRONCONI --- 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: cristina.tronc...@artov.isac.cnr.it ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata
Re: [CF-metadata] CF Standards
The checker also didn't recognize that the a and b variables are being used to describe a dimensionless vertical coordinate. So I'm wondering whether the coordinate variable, lev(lev), has the standard_name and formula_terms attributes that should allow the checker to recognize them. Brian On Wed, Feb 23, 2011 at 06:17:01PM +, Jonathan Gregory wrote: Dear Karl et al To me it looks like the checker couldn't tell that they were bounds variables, because there is no bounds attribute pointing to them. They look like data variables. Best wishes Jonathan On Wed, Feb 23, 2011 at 09:48:21AM -0800, Karl Taylor wrote: Date: Wed, 23 Feb 2011 09:48:21 -0800 From: Karl Taylor taylo...@llnl.gov User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 To: Kyle Olivo kyle.ol...@noaa.gov CC: aparna Radhakrishnan aparna.radhakrish...@noaa.gov, cf-metadata@cgd.ucar.edu cf-metadata@cgd.ucar.edu, Doutriaux, Charles doutria...@llnl.gov Subject: Re: [CF-metadata] CF Standards Hi all, If a, b, a_bnds, and b_bnds are dimensionless (and I think they are), then CF should not raise an error that no units attribute set. Does anyone disagree? thanks, Karl On 2/23/11 6:55 AM, Kyle Olivo wrote: Hi Charles, We recently CMORized the Amon variable clw and noticed that the output doesn't seem to adhere to CF standards. double a_bnds(lev, bnds) ; a_bnds:long_name = vertical coordinate formula term: a(k+1/2) ; double b_bnds(lev, bnds) ; b_bnds:long_name = vertical coordinate formula term: b(k+1/2) ; double a(lev) ; a:long_name = vertical coordinate formula term: a(k) ; double b(lev) ; b:long_name = vertical coordinate formula term: b(k) ; CF-Checker results: -- Checking variable: a -- ERROR (3.1): No units attribute set -- Checking variable: a_bnds -- ERROR (3.1): No units attribute set -- Checking variable: b -- ERROR (3.1): No units attribute set -- Checking variable: b_bnds -- ERROR (3.1): No units attribute set Any advice on how to proceed on this? Should a units value of some kinds have been included in the Amon MIP table? Thanks, Kyle ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata
Re: [CF-metadata] CF Standards
Adding the appropriate bounds attribute removes the errors for variables a_bnds, b_bnds (though now it displays info regarding non-standard usage), but still flags the lack of units in a and b as an error. New metadata: double a(lev) ; a:bounds = a_bnds ; a:long_name = vertical coordinate formula term: a(k) ; double a_bnds(lev, bnds) ; a_bnds:long_name = vertical coordinate formula term: a(k+1/2) ; CF-Checker output: -- Checking variable: b -- INFO: attribute 'bounds' is being used in a non-standard way ERROR (3.1): No units attribute set -- Checking variable: b_bnds -- -- - Kyle On 02/23/2011 01:17 PM, Jonathan Gregory wrote: Dear Karl et al To me it looks like the checker couldn't tell that they were bounds variables, because there is no bounds attribute pointing to them. They look like data variables. Best wishes Jonathan On Wed, Feb 23, 2011 at 09:48:21AM -0800, Karl Taylor wrote: Date: Wed, 23 Feb 2011 09:48:21 -0800 From: Karl Taylortaylo...@llnl.gov User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 To: Kyle Olivokyle.ol...@noaa.gov CC: aparna Radhakrishnanaparna.radhakrish...@noaa.gov, cf-metadata@cgd.ucar.educf-metadata@cgd.ucar.edu, Doutriaux, Charlesdoutria...@llnl.gov Subject: Re: [CF-metadata] CF Standards Hi all, If a, b, a_bnds, and b_bnds are dimensionless (and I think they are), then CF should not raise an error that no units attribute set. Does anyone disagree? thanks, Karl On 2/23/11 6:55 AM, Kyle Olivo wrote: Hi Charles, We recently CMORized the Amon variable clw and noticed that the output doesn't seem to adhere to CF standards. double a_bnds(lev, bnds) ; a_bnds:long_name = vertical coordinate formula term: a(k+1/2) ; double b_bnds(lev, bnds) ; b_bnds:long_name = vertical coordinate formula term: b(k+1/2) ; double a(lev) ; a:long_name = vertical coordinate formula term: a(k) ; double b(lev) ; b:long_name = vertical coordinate formula term: b(k) ; CF-Checker results: -- Checking variable: a -- ERROR (3.1): No units attribute set -- Checking variable: a_bnds -- ERROR (3.1): No units attribute set -- Checking variable: b -- ERROR (3.1): No units attribute set -- Checking variable: b_bnds -- ERROR (3.1): No units attribute set Any advice on how to proceed on this? Should a units value of some kinds have been included in the Amon MIP table? Thanks, Kyle ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata -- Kyle Olivo Modeling Services Group Geophysical Fluid Dynamics Lab o: 609-452-5316 | c: 541-450-9010 ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata
Re: [CF-metadata] help
Hi Karl, Christina's problem is because her usage of standard name modifier is changing the canonical units from those of the unmodified Standard Name. Only solutions I can see are either to omit the Standard Name from this channel or set up a new Standard Name for raw chorophyll as counts. The latter seems to me to be not be as easy as it sounds. Any other opinions? Cheers, Roy. From: cf-metadata-boun...@cgd.ucar.edu [cf-metadata-boun...@cgd.ucar.edu] On Behalf Of Karl Taylor [taylo...@llnl.gov] Sent: 23 February 2011 17:54 To: cristina.tronc...@artov.isac.cnr.it Cc: cf-metadata@cgd.ucar.edu Subject: Re: [CF-metadata] help Hi Chritina, For dimensionless variables, you can either omit the units attribute or set it to 1. I don't understand why this error is raised. Did you assign a standard_name to CHL_count? If so, what did you assign? thanks, Karl On 2/23/11 6:48 AM, cristina.tronc...@artov.isac.cnr.itmailto:cristina.tronc...@artov.isac.cnr.it wrote: Hello, I have a problem. iN MY NETCDF FILE I define the CHL_count variable. it is a dimensionless variable. I used the standard name modifier: COUNT for the variable CHL. for IT I define: units=1 as indicated in the Appendix C of the cf-conventions1_4.pdf. but the cf checker gives me this error: -- Checking variable: CHL_count -- ERROR (3.1): Units are not consistent with those given in the standard_name table. WHAT SHOULD I PUT FOR THE ATTRIBUTE UNITS FOR THE CHL_COUNT VARIABLE? IT IS DIMENSIONLESS! THANKS IN ADVANCE CRISTINA TRONCONI --- 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: cristina.tronc...@artov.isac.cnr.itmailto:cristina.tronc...@artov.isac.cnr.it ___ CF-metadata mailing list CF-metadata@cgd.ucar.edumailto:CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata -- This message (and any attachments) is for the recipient only NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system.___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata
Re: [CF-metadata] CF Standards
So I'm wondering whether the coordinate variable, lev(lev), has the standard_name and formula_terms attributes that should allow the checker to recognize them. From the file: double lev(lev) ; lev:bounds = lev_bnds ; lev:units = 1 ; lev:axis = Z ; lev:positive = down ; lev:long_name = hybrid sigma pressure coordinate ; lev:standard_name = atmosphere_hybrid_sigma_pressure_coordinate ; lev:formula = p = a*p0 + b*ps ; lev:formula_terms = p0: p0 a: a b: b ps: ps ; double lev_bnds(lev, bnds) ; lev_bnds:formula = p = a*p0 + b*ps ; lev_bnds:standard_name = atmosphere_hybrid_sigma_pressure_coordinate ; lev_bnds:units = 1 ; lev_bnds:formula_terms = p0: p0 a: a_bnds b: b_bnds ps: ps ; - Kyle On 02/23/2011 01:37 PM, Brian Eaton wrote: The checker also didn't recognize that the a and b variables are being used to describe a dimensionless vertical coordinate. So I'm wondering whether the coordinate variable, lev(lev), has the standard_name and formula_terms attributes that should allow the checker to recognize them. Brian On Wed, Feb 23, 2011 at 06:17:01PM +, Jonathan Gregory wrote: Dear Karl et al To me it looks like the checker couldn't tell that they were bounds variables, because there is no bounds attribute pointing to them. They look like data variables. Best wishes Jonathan On Wed, Feb 23, 2011 at 09:48:21AM -0800, Karl Taylor wrote: Date: Wed, 23 Feb 2011 09:48:21 -0800 From: Karl Taylortaylo...@llnl.gov User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 To: Kyle Olivokyle.ol...@noaa.gov CC: aparna Radhakrishnanaparna.radhakrish...@noaa.gov, cf-metadata@cgd.ucar.educf-metadata@cgd.ucar.edu, Doutriaux, Charlesdoutria...@llnl.gov Subject: Re: [CF-metadata] CF Standards Hi all, If a, b, a_bnds, and b_bnds are dimensionless (and I think they are), then CF should not raise an error that no units attribute set. Does anyone disagree? thanks, Karl On 2/23/11 6:55 AM, Kyle Olivo wrote: Hi Charles, We recently CMORized the Amon variable clw and noticed that the output doesn't seem to adhere to CF standards. double a_bnds(lev, bnds) ; a_bnds:long_name = vertical coordinate formula term: a(k+1/2) ; double b_bnds(lev, bnds) ; b_bnds:long_name = vertical coordinate formula term: b(k+1/2) ; double a(lev) ; a:long_name = vertical coordinate formula term: a(k) ; double b(lev) ; b:long_name = vertical coordinate formula term: b(k) ; CF-Checker results: -- Checking variable: a -- ERROR (3.1): No units attribute set -- Checking variable: a_bnds -- ERROR (3.1): No units attribute set -- Checking variable: b -- ERROR (3.1): No units attribute set -- Checking variable: b_bnds -- ERROR (3.1): No units attribute set Any advice on how to proceed on this? Should a units value of some kinds have been included in the Amon MIP table? Thanks, Kyle ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata -- Kyle Olivo Modeling Services Group Geophysical Fluid Dynamics Lab o: 609-452-5316 | c: 541-450-9010 ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata
[CF-metadata] Proposal for new standard names
Dear all, I'd like to propose the following two standard names, which conform to the existing pattens.They represent the tendency for the mass fraction of cloud condensed water in GCMs. Their units are in 1/s. We hope to use these variables in the Cloud Feedback Model Intercomparison Project (CFMIP). (1) tendency_of_mass_fraction_of_stratiform_cloud_liquid_water_in_air_ due_to_sedimentation (2) tendency_of_mass_fraction_of_stratiform_cloud_condensed_water_in_air_ _due_to_sedimentation_of_cloud_liquid_water The phrase '_of_cloud_liquid_water' is included in (2) in order to distinguish it from the 'sedimentation_of_cloud_ice'. Best wishes, Tomoo --- Tomoo OGURA National Institute for Environmental Studies 16-2 Onogawa, Tsukuba, Ibaraki 305-8506 Japan Phone +81-29-850-2484 Fax +81-29-850-2960 ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata
Re: [CF-metadata] CF Standards
I think it is wrong to add a bounds attribute to a formula term attached to a vertical coordinate. Only the coordinate itself should have a bounds attribute. The reason this seemed to fix the problem is presumably that the CF checker does not require (or look for?) units to be attached to bounds variables; the units are by convention the same as the coordinate variable itself. Karl On 2/23/11 10:34 AM, Kyle Olivo wrote: Adding the appropriate bounds attribute removes the errors for variables a_bnds, b_bnds (though now it displays info regarding non-standard usage), but still flags the lack of units in a and b as an error. New metadata: double a(lev) ; a:bounds = a_bnds ; a:long_name = vertical coordinate formula term: a(k) ; double a_bnds(lev, bnds) ; a_bnds:long_name = vertical coordinate formula term: a(k+1/2) ; CF-Checker output: -- Checking variable: b -- INFO: attribute 'bounds' is being used in a non-standard way ERROR (3.1): No units attribute set -- Checking variable: b_bnds -- -- - Kyle On 02/23/2011 01:17 PM, Jonathan Gregory wrote: Dear Karl et al To me it looks like the checker couldn't tell that they were bounds variables, because there is no bounds attribute pointing to them. They look like data variables. Best wishes Jonathan On Wed, Feb 23, 2011 at 09:48:21AM -0800, Karl Taylor wrote: Date: Wed, 23 Feb 2011 09:48:21 -0800 From: Karl Taylortaylo...@llnl.gov User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 To: Kyle Olivokyle.ol...@noaa.gov CC: aparna Radhakrishnanaparna.radhakrish...@noaa.gov, cf-metadata@cgd.ucar.educf-metadata@cgd.ucar.edu, Doutriaux, Charlesdoutria...@llnl.gov Subject: Re: [CF-metadata] CF Standards Hi all, If a, b, a_bnds, and b_bnds are dimensionless (and I think they are), then CF should not raise an error that no units attribute set. Does anyone disagree? thanks, Karl On 2/23/11 6:55 AM, Kyle Olivo wrote: Hi Charles, We recently CMORized the Amon variable clw and noticed that the output doesn't seem to adhere to CF standards. double a_bnds(lev, bnds) ; a_bnds:long_name = vertical coordinate formula term: a(k+1/2) ; double b_bnds(lev, bnds) ; b_bnds:long_name = vertical coordinate formula term: b(k+1/2) ; double a(lev) ; a:long_name = vertical coordinate formula term: a(k) ; double b(lev) ; b:long_name = vertical coordinate formula term: b(k) ; CF-Checker results: -- Checking variable: a -- ERROR (3.1): No units attribute set -- Checking variable: a_bnds -- ERROR (3.1): No units attribute set -- Checking variable: b -- ERROR (3.1): No units attribute set -- Checking variable: b_bnds -- ERROR (3.1): No units attribute set Any advice on how to proceed on this? Should a units value of some kinds have been included in the Amon MIP table? Thanks, Kyle ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata
Re: [CF-metadata] CF Standards
Should it matter if they are bounds variables or not? Certainly if they are not, then the checker should not object to them being dimensionless (since they have not be identified by a standard_name to require units). Karl On 2/23/11 10:17 AM, Jonathan Gregory wrote: Dear Karl et al To me it looks like the checker couldn't tell that they were bounds variables, because there is no bounds attribute pointing to them. They look like data variables. Best wishes Jonathan On Wed, Feb 23, 2011 at 09:48:21AM -0800, Karl Taylor wrote: Date: Wed, 23 Feb 2011 09:48:21 -0800 From: Karl Taylortaylo...@llnl.gov User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 To: Kyle Olivokyle.ol...@noaa.gov CC: aparna Radhakrishnanaparna.radhakrish...@noaa.gov, cf-metadata@cgd.ucar.educf-metadata@cgd.ucar.edu, Doutriaux, Charlesdoutria...@llnl.gov Subject: Re: [CF-metadata] CF Standards Hi all, If a, b, a_bnds, and b_bnds are dimensionless (and I think they are), then CF should not raise an error that no units attribute set. Does anyone disagree? thanks, Karl On 2/23/11 6:55 AM, Kyle Olivo wrote: Hi Charles, We recently CMORized the Amon variable clw and noticed that the output doesn't seem to adhere to CF standards. double a_bnds(lev, bnds) ; a_bnds:long_name = vertical coordinate formula term: a(k+1/2) ; double b_bnds(lev, bnds) ; b_bnds:long_name = vertical coordinate formula term: b(k+1/2) ; double a(lev) ; a:long_name = vertical coordinate formula term: a(k) ; double b(lev) ; b:long_name = vertical coordinate formula term: b(k) ; CF-Checker results: -- Checking variable: a -- ERROR (3.1): No units attribute set -- Checking variable: a_bnds -- ERROR (3.1): No units attribute set -- Checking variable: b -- ERROR (3.1): No units attribute set -- Checking variable: b_bnds -- ERROR (3.1): No units attribute set Any advice on how to proceed on this? Should a units value of some kinds have been included in the Amon MIP table? Thanks, Kyle ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata
Re: [CF-metadata] CF Standards
This all looks correct to me. Karl On 2/23/11 10:59 AM, Kyle Olivo wrote: So I'm wondering whether the coordinate variable, lev(lev), has the standard_name and formula_terms attributes that should allow the checker to recognize them. From the file: double lev(lev) ; lev:bounds = lev_bnds ; lev:units = 1 ; lev:axis = Z ; lev:positive = down ; lev:long_name = hybrid sigma pressure coordinate ; lev:standard_name = atmosphere_hybrid_sigma_pressure_coordinate ; lev:formula = p = a*p0 + b*ps ; lev:formula_terms = p0: p0 a: a b: b ps: ps ; double lev_bnds(lev, bnds) ; lev_bnds:formula = p = a*p0 + b*ps ; lev_bnds:standard_name = atmosphere_hybrid_sigma_pressure_coordinate ; lev_bnds:units = 1 ; lev_bnds:formula_terms = p0: p0 a: a_bnds b: b_bnds ps: ps ; - Kyle On 02/23/2011 01:37 PM, Brian Eaton wrote: The checker also didn't recognize that the a and b variables are being used to describe a dimensionless vertical coordinate. So I'm wondering whether the coordinate variable, lev(lev), has the standard_name and formula_terms attributes that should allow the checker to recognize them. Brian On Wed, Feb 23, 2011 at 06:17:01PM +, Jonathan Gregory wrote: Dear Karl et al To me it looks like the checker couldn't tell that they were bounds variables, because there is no bounds attribute pointing to them. They look like data variables. Best wishes Jonathan On Wed, Feb 23, 2011 at 09:48:21AM -0800, Karl Taylor wrote: Date: Wed, 23 Feb 2011 09:48:21 -0800 From: Karl Taylortaylo...@llnl.gov User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 To: Kyle Olivokyle.ol...@noaa.gov CC: aparna Radhakrishnanaparna.radhakrish...@noaa.gov, cf-metadata@cgd.ucar.educf-metadata@cgd.ucar.edu, Doutriaux, Charlesdoutria...@llnl.gov Subject: Re: [CF-metadata] CF Standards Hi all, If a, b, a_bnds, and b_bnds are dimensionless (and I think they are), then CF should not raise an error that no units attribute set. Does anyone disagree? thanks, Karl On 2/23/11 6:55 AM, Kyle Olivo wrote: Hi Charles, We recently CMORized the Amon variable clw and noticed that the output doesn't seem to adhere to CF standards. double a_bnds(lev, bnds) ; a_bnds:long_name = vertical coordinate formula term: a(k+1/2) ; double b_bnds(lev, bnds) ; b_bnds:long_name = vertical coordinate formula term: b(k+1/2) ; double a(lev) ; a:long_name = vertical coordinate formula term: a(k) ; double b(lev) ; b:long_name = vertical coordinate formula term: b(k) ; CF-Checker results: -- Checking variable: a -- ERROR (3.1): No units attribute set -- Checking variable: a_bnds -- ERROR (3.1): No units attribute set -- Checking variable: b -- ERROR (3.1): No units attribute set -- Checking variable: b_bnds -- ERROR (3.1): No units attribute set Any advice on how to proceed on this? Should a units value of some kinds have been included in the Amon MIP table? Thanks, Kyle ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata
Re: [CF-metadata] help
Hi all, I'm not sure about this. If you search the standard_names, you don't find any that include count, do you? If not, then why does the CF checker even look at the units attribute. It can't know what the units should be. I suspect that the checker must raise an error whenever units are missing, even though it's o.k. for them to be missing if the quantity is dimensionless. Best, Karl On 2/23/11 10:56 AM, Lowry, Roy K. wrote: Hi Karl, Christina's problem is because her usage of standard name modifier is changing the canonical units from those of the unmodified Standard Name. Only solutions I can see are either to omit the Standard Name from this channel or set up a new Standard Name for raw chorophyll as counts. The latter seems to me to be not be as easy as it sounds. Any other opinions? Cheers, Roy. *From:* cf-metadata-boun...@cgd.ucar.edu [cf-metadata-boun...@cgd.ucar.edu] On Behalf Of Karl Taylor [taylo...@llnl.gov] *Sent:* 23 February 2011 17:54 *To:* cristina.tronc...@artov.isac.cnr.it *Cc:* cf-metadata@cgd.ucar.edu *Subject:* Re: [CF-metadata] help Hi Chritina, For dimensionless variables, you can either omit the units attribute or set it to 1. I don't understand why this error is raised. Did you assign a standard_name to CHL_count? If so, what did you assign? thanks, Karl On 2/23/11 6:48 AM, cristina.tronc...@artov.isac.cnr.it wrote: Hello, I have a problem. iN MY NETCDF FILE I define the CHL_count variable. it is a dimensionless variable. I used the standard name modifier: COUNT for the variable CHL. for IT I define: units=1 as indicated in the Appendix C of the cf-conventions1_4.pdf. but the cf checker gives me this error: -- Checking variable: CHL_count -- ERROR (3.1): Units are not consistent with those given in the standard_name table. WHAT SHOULD I PUT FOR THE ATTRIBUTE UNITS FOR THE CHL_COUNT VARIABLE? IT IS DIMENSIONLESS! THANKS IN ADVANCE CRISTINA TRONCONI --- 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:cristina.tronc...@artov.isac.cnr.it ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata -- This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata
Re: [CF-metadata] CF Standards
Hi Karl, I agree with all your comments on this thread. In particular, the checker shouldn't complain that a, b, a_bnds, and b_bnds don't have units when it doesn't have any information that indicates they are dimensional quantities. As an aside though, I do think there would be value in having the CF checker be made to recognize when variables are part of the definition of a dimensionless vertical coordinate via the formula_terms attribute. In the example below, there are two variables called out by formula_terms, p0 and ps, which do need to have units in order for the formula to be evaluated correctly. The checker could make that check. Best, Brian On Wed, Feb 23, 2011 at 05:59:55PM -0800, Karl Taylor wrote: This all looks correct to me. Karl On 2/23/11 10:59 AM, Kyle Olivo wrote: So I'm wondering whether the coordinate variable, lev(lev), has the standard_name and formula_terms attributes that should allow the checker to recognize them. From the file: double lev(lev) ; lev:bounds = lev_bnds ; lev:units = 1 ; lev:axis = Z ; lev:positive = down ; lev:long_name = hybrid sigma pressure coordinate ; lev:standard_name = atmosphere_hybrid_sigma_pressure_coordinate ; lev:formula = p = a*p0 + b*ps ; lev:formula_terms = p0: p0 a: a b: b ps: ps ; double lev_bnds(lev, bnds) ; lev_bnds:formula = p = a*p0 + b*ps ; lev_bnds:standard_name = atmosphere_hybrid_sigma_pressure_coordinate ; lev_bnds:units = 1 ; lev_bnds:formula_terms = p0: p0 a: a_bnds b: b_bnds ps: ps ; - Kyle On 02/23/2011 01:37 PM, Brian Eaton wrote: The checker also didn't recognize that the a and b variables are being used to describe a dimensionless vertical coordinate. So I'm wondering whether the coordinate variable, lev(lev), has the standard_name and formula_terms attributes that should allow the checker to recognize them. Brian On Wed, Feb 23, 2011 at 06:17:01PM +, Jonathan Gregory wrote: Dear Karl et al To me it looks like the checker couldn't tell that they were bounds variables, because there is no bounds attribute pointing to them. They look like data variables. Best wishes Jonathan On Wed, Feb 23, 2011 at 09:48:21AM -0800, Karl Taylor wrote: Date: Wed, 23 Feb 2011 09:48:21 -0800 From: Karl Taylortaylo...@llnl.gov User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 To: Kyle Olivokyle.ol...@noaa.gov CC: aparna Radhakrishnanaparna.radhakrish...@noaa.gov, cf-metadata@cgd.ucar.educf-metadata@cgd.ucar.edu, Doutriaux, Charlesdoutria...@llnl.gov Subject: Re: [CF-metadata] CF Standards Hi all, If a, b, a_bnds, and b_bnds are dimensionless (and I think they are), then CF should not raise an error that no units attribute set. Does anyone disagree? thanks, Karl On 2/23/11 6:55 AM, Kyle Olivo wrote: Hi Charles, We recently CMORized the Amon variable clw and noticed that the output doesn't seem to adhere to CF standards. double a_bnds(lev, bnds) ; a_bnds:long_name = vertical coordinate formula term: a(k+1/2) ; double b_bnds(lev, bnds) ; b_bnds:long_name = vertical coordinate formula term: b(k+1/2) ; double a(lev) ; a:long_name = vertical coordinate formula term: a(k) ; double b(lev) ; b:long_name = vertical coordinate formula term: b(k) ; CF-Checker results: -- Checking variable: a -- ERROR (3.1): No units attribute set -- Checking variable: a_bnds -- ERROR (3.1): No units attribute set -- Checking variable: b -- ERROR (3.1): No units attribute set -- Checking variable: b_bnds -- ERROR (3.1): No units attribute set Any advice on how to proceed on this? Should a units value of some kinds have been included in the Amon MIP table? Thanks, Kyle ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata ___ CF-metadata mailing list CF-metadata@cgd.ucar.edu http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata