H5T.vlen_create

Create new variable-length data type

Syntax

vlen_type_id = H5T.vlen_create(base_id)

Description

vlen_type_id = H5T.vlen_create(base_id) creates a new variable-length (VL) data type. base_id specifies the base type of the data type to create.

Examples

Create a variable length data type for 64-bit floating-point numbers.

base_type_id = H5T.copy('H5T_NATIVE_DOUBLE');
vlen_type_id = H5T.vlen_create(base_type_id);

Limitations

  • You can create variable length datatypes only if the base datatype class is one of the following:

    • H5T_INTEGER

    • H5T_FLOAT

    • H5T_STRING with variable length or a fixed length of 1.