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:[email protected]] On Behalf Of Jim Biard Sent: 17 December 2015 19:44 To: [email protected] 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: [email protected]<mailto:[email protected]> _______________________________________________ CF-metadata mailing list [email protected]<mailto:[email protected]> 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: [email protected]<mailto:[email protected]> 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 @NOAANCEIclimate<https://twitter.com/NOAANCEIclimate> and @NOAANCEIocngeo<https://twitter.com/NOAANCEIocngeo>.
_______________________________________________ CF-metadata mailing list [email protected] http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata
