[MINC-users] quick voxel loop question

Andrew Janke minc-users@bic.mni.mcgill.ca
Mon, 15 Dec 2003 10:47:13 -0500


On Mon, 15 Dec 2003, Maxime Descoteaux wrote:

> Quick question about file I/O....
> Can we give an option to overwrite files when using voxel_loop.  Right
> now, if a file already exists in my list of output files, nccreate sends
> an error message:
>
> nccreate: filename "/tmp/max/vesselness.mnc": File exists
> micreate: MINC package entry point

You need to set a "clobber" option.

      set_loop_clobber(loop_opts, TRUE);



--
Andrew Janke   ( rotor@cmr.uq.edu.au || www.cmr.uq.edu.au/~rotor )
Australia->University of Queensland->Centre for Magnetic Resonance
W: +61 7 3365 4100  ||  H: +61 7 3800 4042  ||  M: +61 4 2138 8581