⇐ ⇒

[CF-metadata] On scalar coordinate variables

From: Hollis, Dan <dan.hollis>
Date: Fri, 18 Dec 2015 09:36:32 +0000

David - Thanks for the additional example. I knew I was bound to have missed something.

Jim - I agree. I looked through the CF conventions for some string-related examples and they all used 'char'. What I didn't spot (or appreciate the significance of) was that they all had a length dimension. Thanks for the correction.

Dan


From: CF-metadata [mailto:cf-metadata-bounces at cgd.ucar.edu] On Behalf Of Jim Biard
Sent: 17 December 2015 19:44
To: cf-metadata at cgd.ucar.edu
Subject: Re: [CF-metadata] On scalar coordinate variables

Shouldn't the the variables s, a, and t be of type string? I believe that a scalar variable of type char is one character long, isn't it? (See Section 5.2 of the NUG<https://www.unidata.ucar.edu/software/netcdf/docs/netcdf.html#CDL-Data-Types>)
On 12/17/15 1:53 PM, David Hassell wrote:

Hello Dan,



Thanks for the nice example. I think there is an extra case you could

include. From #104:



  "If a string-valued auxiliary coordinate variable has only one

   dimension (the maximum length of the string), it is a string-valued

   scalar coordinate variable"



Adding that to your example (dimension maxlen, variable u):



 dimensions:

   x = 180;

   y = 290;

   p = 1;

   n = 5;

   maxlen = 256;



 variables:

   float d(y, x, p, n);

     d: coordinates = "lat lon h s a z t u";



   float x(x); # coordinate variable

   float y(y); # coordinate variable

   float p(p); # size 1 coordinate variable



   float lat(y, x); # auxiliary coordinate variable

   float lon(y, x); # auxiliary coordinate variable

   float h(p); # size 1 auxiliary coordinate variable

   char s(n); # string-valued auxiliary coordinate variable

   char a(p); # size 1 string-valued auxiliary coordinate variable



   float z; # numeric scalar coordinate variable

   char t; # string-valued scalar coordinate variable

   char u(maxlen); # string-valued scalar coordinate variable



All the best,



David

--
David Hassell
National Centre for Atmospheric Science (NCAS)
Department of Meteorology, University of Reading,
Earley Gate, PO Box 243,
Reading RG6 6BB, U.K.
Tel   : +44 118 3785613
E-mail: d.c.hassell at reading.ac.uk<mailto:d.c.hassell at reading.ac.uk>
_______________________________________________
CF-metadata mailing list
CF-metadata at cgd.ucar.edu<mailto:CF-metadata at cgd.ucar.edu>
http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata
--
[CICS-NC]<http://www.cicsnc.org/>Visit us on
Facebook <http://www.facebook.com/cicsnc>
Jim Biard
Research Scholar
Cooperative Institute for Climate and Satellites NC <http://cicsnc.org/>
North Carolina State University <http://ncsu.edu/>
NOAA National Centers for Environmental Information <http://ncdc.noaa.gov/>
formerly NOAA's National Climatic Data Center
151 Patton Ave, Asheville, NC 28801
e: jbiard at cicsnc.org<mailto:jbiard at cicsnc.org>
o: +1 828 271 4900
Connect with us on Facebook for climate<https://www.facebook.com/NOAANCEIclimate> and ocean and geophysics<https://www.facebook.com/NOAANCEIoceangeo> information, and follow us on Twitter at _at_NOAANCEIclimate<https://twitter.com/NOAANCEIclimate> and @NOAANCEIocngeo<https://twitter.com/NOAANCEIocngeo>.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cgd.ucar.edu/pipermail/cf-metadata/attachments/20151218/92bd0b3e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 15784 bytes
Desc: image001.png
URL: <http://mailman.cgd.ucar.edu/pipermail/cf-metadata/attachments/20151218/92bd0b3e/attachment-0001.png>
Received on Fri Dec 18 2015 - 02:36:32 GMT

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

⇐ ⇒