I wonder if your output file path doesn’t exist on your computer (e.g., has a typo). For example, is there a missing “/” before “home”? The error message implies that after computing everything, it can’t access the specified location for output.
For example, I tried running this code from the AFNI Bootcamp output directory of afni_proc.py “~/AFNI_data6/FT_analysis/FT.results”, where the output prefix includes a path that does not exist:
#!/bin/tcsh
set acf_errts = `1dcat blur_est.FT.1D"{3}[0..2]"`
echo "++ The there ACF params for the errts are: ${acf_errts}"
3dClustSim \
-mask mask_epi_anat.FT+tlrc.HEAD \
-acf ${acf_errts} \
-LOTS \
-niml -both \
-prefix doesnt_exist/test_csim
and got similar error output to yours:
NIML: fail to open file doesnt_exist/test_csim.NN3_bisided.niml for writing
....
But when I changed the output to a location that existed, I did not get that error.
What is the output of (I expect this gives an error):
? NB: I am only guessing at what the correct location might be. The top of the file tree should start with “/”.
–pt
ps: Just for future Message Board posts: copy+pasting terminal text would be more helpful than snapshotting images. For example, I hope I typed your example path correctly on my computer. It is also easier to read. Thanks.
The
National Institute of Mental Health (NIMH) is part of the National Institutes of
Health (NIH), a component of the U.S. Department of Health and Human
Services.