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

Re: IllegalArgumentException with addVariableAttribute

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: IllegalArgumentException with addVariableAttribute
  • Date: Mon, 26 Aug 2002 15:29:07 -0600



Mark A Ohrenschall wrote:


I can't help but wonder why arrays of numbers are allowed, but not strings -- 
it seems that strings are
the more obvious usage for attribute values.


i dont actually know, its in the basic netcdf data model.

but, you could ask a different question: why have vector-valued attributes at all? generally attributes are thought of as (key,value) pairs, where the value should be atomic. more complicated things have to be made into variables.


so if you really have arbitrary strings, make a seperate attribute for each 
one, or put them into variables.