GreyOrdinates.to_filename

GreyOrdinates.to_filename(filename)[source]

Stores the greyordinate data to the given filename.

Type of storage is determined by the extension of the filename:

  • .dscalar/dconn/dlabel.nii: CIFTI file
  • .h5/hdf5/he2/he5: HDF5 file representing CIFTI data
  • .zarr: zarr file representing CIFTI data
  • .gii: GIFTI file (only stores surface data;
    raises error if more that one surface is represented in the greyordinates)
  • .nii: NIFTI file (only stores the volumetric data)
Parameters:filename – target filename