H5T_COMPOUND_CREATE

The H5T_COMPOUND_CREATE function creates a compound datatype object.

Example

dt1 = H5T_ENUM_CREATE()

H5T_ENUM_SET_DATA, dt1, ['Radar_1', 'Radar_2'], [1, 2]

dt2 = H5T_IDL_CREATE(1ul)

dt = H5T_COMPOUND_CREATE([dt1, dt2], ['Radar_Id', 'Ctrl_Num'])

Syntax

Result = H5T_COMPOUND_CREATE(Datatype_id, Name)

Return Value

Returns a long integer containing the identifier of the new compound datatype.

Note: Datatype identifiers created by this function should be released with H5T_CLOSE.

Arguments

Datatype_id

A long integer or array of long integers containing the datatype identifiers to use when creating the compound datatype. The number of elements in Datatype_id must match the number of elements in Name.

Name

A scalar string or string array containing the names to use when creating the compound datatype. The number of elements in Name must match the number of elements in Datatype_id.

Keywords

None

Version History

6.3

Introduced

See Also

H5T_ARRAY_CREATE, H5T_IDL_CREATE, H5T_CLOSE