Routines (alphabetical) > Routines: H > HDF5 Routines > H5_GETDATA

# H5_GETDATA

This function returns a dataset from an HDF5 file, given the identifier (StrID) of the dataset. To read a subset of the data, use H5D_READ instead.

## Examples

file = FILEPATH('hdf5_test.h5', $

SUBDIRECTORY=['examples','data'])

data = H5_GETDATA(file, '/images/Eskimo')

HELP, data

IDL displays:

DATA BYTE = Array[600, 649]

## Syntax

Result = H5_GETDATA(Filename, StrID)

## Arguments

### Filename

A string denoting the name of the HDF5 file from which IDL will read the dataset.

### StrID

A scalar string giving the full identifier of the dataset within the file. See H5_LIST for more information on the identifier.

## Keywords

None

## Version History

8.3 | Introduced

## See Also

H5_LIST, H5_PUTDATA