GreyOrdinates.empty

classmethod GreyOrdinates.empty(filename, axes, dtype=<class 'float'>)[source]

Creates an empty file to store the greyordinates with the type determined by the extension:

  • .nii: CIFTI file
  • .h5/hdf5/he2/he5: HDF5 file representing CIFTI data
  • .zarr: zarr file representing CIFTI data
Parameters:
  • filename – target filename
  • axes – cifti2 axes
  • dtype – data type of array
Returns:

Greyordinate object where CIFTI data can be stored