Quantcast

Documentation Center

  • Trial Software
  • Product Updates

H5T.get_member_type

Data type of specified member

Syntax

type_id = H5T.get_member_type(type_id,membno)

Description

type_id = H5T.get_member_type(type_id,membno) returns the data type of the member specified by membno in the data type specified by type_id.

Examples

Get the size of the data type of the first member of a compound data type.

fid = H5F.open('example.h5');
dset_id = H5D.open(fid,'/g3/compound');
compound_type_id = H5D.get_type(dset_id);
member_type_id = H5T.get_member_type(compound_type_id,0);
type_size = H5T.get_size(member_type_id);

See Also

Was this topic helpful?