write_vol

write_vol(vol, filename, format='NIFTI', data_type=None)

Write a neuroimaging volume to file.

Parameters

Name Type Description Default
vol NeuroVol The volume to write required
filename str or Path Output filename required
format str Output format (currently only “NIFTI” supported) 'NIFTI'
data_type str Output data type (e.g., “FLOAT32”, “INT16”) Defaults to “FLOAT” for NIfTI, inferred from input for AFNI None
Back to top