Hi,
What version of FSL and what OS are you using?
The tempname seems to be fine to me, so I don't think your problem is related to that, since it is designed to write temporary files in /tmp
Maybe if you can provide more details for:
> The above fslmaths command can not /tmp/tpcf89a366_db3e_4d3f_b8b4_4b9eae69b5b5.hdr & *.img
then we might be able to help.
All the best,
Mark
On 3 Jan 2014, at 12:29, SUBSCRIBE FSL B. Jeong <[log in to unmask]> wrote:
> Dear FSLers,
>
> I have a question about read_avw.m (& may be save_avw.m ).
>
> The 'read_avw.m' file use both 'fslmaths' and 'tempname' which is a matlab function.
>
> I wonder a problem is here.
> While 'tempname' generate a text including '/' such as '/tmp/tpcf89a366_db3e_4d3f_b8b4_4b9eae69b5b5',
> 'fslmaths' may not deal with '/' like below.
>
>> fslmaths bu.nii.gz /tmp/tpcf89a366_db3e_4d3f_b8b4_4b9eae69b5b5
> ( corresponding to a script which is 'command = sprintf('FSLOUTPUTTYPE=NIFTI_PAIR; export FSLOUTPUTTYPE; $FSLDIR/bin/fslmaths %s %s', fname, tmpname)' in read_avw.m )
>
> The above fslmaths command can not /tmp/tpcf89a366_db3e_4d3f_b8b4_4b9eae69b5b5.hdr & *.img
>
> Also, 'call_fsl(command)' command in read_avw.m does not work.
>
> I wonder that's why I got error messages like below when I use read_avw.m, :
>
> Error using fread
> Invalid file identifier. Use fopen to generate a valid file identifier.
>
> Error in read_avw_hdr (line 21)
> testval = fread(fid,1,'int32')
>
> B. Jeong
|