xcp_d.utils.write_save.read_ndata

xcp_d.utils.write_save.read_ndata(datafile, maskfile=None)[source]

Read nifti or cifti file.

Parameters:
  • datafile (str) – nifti or cifti file

  • maskfile (str) – Path to a binary mask. Unused for CIFTI data.

Outputs:

data ((TxS) numpy.ndarray) – Vertices or voxels by timepoints.