tedana.io.OutputGenerator.save_img

OutputGenerator.save_img(data, name, mask=None)[source]

Save image data to a nifti file.

Parameters:
  • data (nibabel.Nifti1Image or (Mb,) array_like or (Mb x T) array_like) – Data to save to a file. If this is img_like then it is treated as unmasked data. If this is array_like, it will be expanded to a 3D volume using the mask in the io_generator or the provided mask. Data to save to a file.

  • name (str) – Full file path for output file.

  • mask ((Mb,) array_like) – A boolean array with the same number of True values as values in the only or second dimension of data. Used to expand data into a 3D volume for saving.

Notes

Will coerce 64-bit float and int arrays into 32-bit arrays.