Dear Jon and Volkmar,
Realign&Unwarp uses a temporary directory with a call to tempname() (see
spm_uw_estimate.m). So, looking at the code in tempdir.m, you can choose
which directory to use by defining the environment variable TMP (odd
choice as the standard is TMPDIR).
SPM also has spm_platform('tempdir') that relies on an environment
variable SPMTMP; I don't think it's currently being used.
So, moving forward, we have three options:
1/ leave things as they are and rely on getenv('TMP').
2/ change spm_uw_estimate.m to use tempname(spm_platform('tempdir')) and
rely on getenv('SPMTMP').
3/ have the temporary files from Realign&Unwarp stored in the directory
where the data are (as we do, eg, for ResI*.nii when estimating a GLM).
Best regards,
Guillaume.
On 21/02/18 08:00, Volkmar Glauche wrote:
> Hi Jon,
>
> at least for MRI modalities I am not aware of processing steps that use a temporary folder. Can you give an example? Most image manipulation functions write their results to the same folder where the original files are. A few others put their files into MATLABs current working directory. To make sure no output gets lost or mixed up, I usually change MATLABs current working directory to a place where I want to drop these files.
>
> Best
> Volkmar
>
--
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|