Hello Brigitte,
Yes - netCDF string valued attributes can contain spaces, commas and
many (any?) other characters, such as +, -, _, (, ), etc. So,
institute_id = "INSTITUTE1, INSTITUTE2, and INSTITUTE3";
is fine. For a few attributes (like standard_name) a limited character
set is required to be CF compliant.
One last thought: I don't know exactly what your data are, but perhaps
the CF attribute "institution" would be a better choice of attribute
name (
http://cfconventions.org/1.6.html#description-of-file-contents)?
Hope that helps.
All the best,
David
---- Original message from Brigitte Koffi (12PM 26 Jun 14)
> Date: Thu, 26 Jun 2014 12:10:44 +0200
> From: Brigitte Koffi <Brigitte.Koffi-Lefeivre at jrc.ec.europa.eu>
> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215
> Thunderbird/17.0.3
> To: cf-metadata at cgd.ucar.edu
> Subject: [CF-metadata] String attribute syntax
>
> Dear all
>
> Can string attributes contain blanks or comma characters?
> For instance, in case of netCDF files from multiple institutes, can one define "INSTITUTE1, INSTITUTE2, and INSTITUTE3"
> as "institute_id"?
>
> Thank you for your help,
>
> Brigitte
>
>
> _______________________________________________
> CF-metadata mailing list
> CF-metadata at cgd.ucar.edu
> http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata
--
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
Received on Thu Jun 26 2014 - 04:50:01 BST