read_hdf4

psipy.io.util.read_hdf4(path, sds_id='Data-Set-2')

Read a HDF4 file.

Reads a single dataset from a single HDF4 file, returning the scalar data and associated coordinates.

Parameters
path

Path to the file.

sds_idstr, optional

ID of the dataset to get.

Returns
datandarray

Scalar data.

coordslist of ndarray

Cooordinates values along each axis of the data.