Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > HDF5

h5readattr

We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

Reads attributes from an HDF5 file.

 

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT

 

Syntax

Description

attr = h5readattr("filename", "attr_path", "attr_name");

Reads the attribute named "attr_name" at the location "attr_path" within the HDF5 file named "filename."

 

Parameter

Type

Description

filename

string

name of the HDF5 file.

attr_path

string

name (path) of the dataset or group to which the attribute belongs to.

attr_name

string

name of the attribute to be read.

 

Examples

filename = "samplefile.h5";

A = h5info(filename);

 

attr_path = A.Groups{1}.Name;

attr_name = A.Groups{1}.Attributes{1}.Name;

 

attr = h5readattr(filename, attr_path, attr_name);

 

See Also

h5info, h5read, Reading HDF5 files

Copyright Lumerical Inc. | Privacy | Site Map