NetCDF-4 has added support for four different user defined data types.
compound type
variable length array type
opaque type
enum type
Users may construct user defined type with the various NF90_DEF_* functions described in this section. They may learn about user defined types by using the NF90_INQ_ functions defined in this section.
Once types are constructed, define variables of the new type with NF90_DEF_VAR (see NF90_DEF_VAR). Write to them with NF90_PUT_VAR (see NF90_PUT_VAR). Read data of user-defined type with NF90_GET_VAR (see NF90_GET_VAR).
Create attributes of the new type with NF90_PUT_ATT (see NF90_PUT_ATT). Read attributes of the new type with NF90_GET_ATT (see NF90_GET_ATT).