to_hdf5

Import in python using from mcutils.utils.cifti import to_hdf5

mcutils.utils.cifti.to_hdf5(group: h5py.Group, arr, axes: Sequence[nibabel.cifti2.cifti2_axes.Axis], compression='gzip')[source]

Store the CIFTI array in an HDF5 format

Parameters
  • group – HDF5 group to store the data in (can be top-level HDF5 file)

  • arr – data array

  • axes – sequence of axes (optionally None)

  • compression – which compression to use on the main data array (None, ‘gzip’, or ‘lzf’)