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

Re: IllegalArgumentException with addVariableAttribute





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.