Next: , Previous: nc_get_varm_ type, Up: Variables


6.31 Reading and Writing Character String Values

Prior to version 4.0, strings could only be stored as simple arrays of characters. Users may still wish to store strings this way, as it ensures maximum compatibility with other software.

Starting in netCDF-4.0, the atomic string type allows a new way to store strings, as a variable length array in the underlying HDF5 layer. This allows arrays of strings to be stored compactly.

For more information of classic models strings Classic Strings. For more information on the netCDF-4.0 string type Arrays of Strings.