xcp_d.utils.write_save

Utilities to read and write nifiti and cifti data.

Functions

get_cifti_intents()

Return a dictionary of CIFTI extensions and associated intents.

read_gii(surf_gii)

Use nibabel to read surface file.

read_ndata(datafile[, maskfile])

Read nifti or cifti file.

write_gii(datat, template, filename, hemi)

Use nibabel to write surface file.

write_ndata(data_matrix, template, filename)

Save numpy array to a nifti or cifti file.