⇐ ⇒

[CF-metadata] On scalar coordinate variables

From: Jim Biard <jbiard>
Date: Thu, 17 Dec 2015 14:43:32 -0500

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
> _______________________________________________
> CF-metadata mailing list
> 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 
_at_NOAANCEIocngeo <https://twitter.com/NOAANCEIocngeo>. /
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cgd.ucar.edu/pipermail/cf-metadata/attachments/20151217/b9d19fe6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CicsLogoTiny.png
Type: image/png
Size: 15784 bytes
Desc: not available
URL: <http://mailman.cgd.ucar.edu/pipermail/cf-metadata/attachments/20151217/b9d19fe6/attachment-0001.png>
Received on Thu Dec 17 2015 - 12:43:32 GMT

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

⇐ ⇒