[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 20011009: COARDS and/or CF-1.0

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: Re: 20011009: COARDS and/or CF-1.0
  • Date: Tue, 09 Oct 2001 16:02:18 -0600

Cristina,

>   :Conventions = "COARDS", "GDV";
> 
> But I couldn't get NCOs, ncgen/ncdump to create the two strings, as you
> mention.  So I decided to go with CF-1.0 alone.  Your input gives this
> decision more credence.  And thanks for pointing out that the double
> strings aren't allowed.  So the multiple strings that 'history' often
> shows are actually one long string?  Or is 'history' an exception?

If you include embedded newlines in an attribute value, ncdump prints
out multiple lines.  ncgen also knows about this, which is how most
"history" attributes work, using multiple lines for the attribute
string.  So you can fake multi-string attributes with something like:

   :Conventions = "COARDS\n",
                  "GDV";

without the attributes getting smashed together.  Thanks for pointing
this out; I had forgotten about it.

--Russ