1.1.0 setAttribute supports type
patrick-zippenfenig
released this
23 Nov 13:54
·
14 commits
to master
since this release
setAttribute
now accepts a type parameter to select the netcdf type.
This can be used to write an array of Int8 as char
instead of byte
type.
// Write attribute as [Char] instead of string with 0 terminator
try file.setAttribute("TITLE_CHAR", Array("My data set".utf8CString), type: .char)