The source type is not curv but paint, so use --src_type paint. Even better would be to use mgh, ie, create lh.thickness_diff as an mgh instead of w (ie, lh.thickness_diff.mgh). And then spec the output to be mgh as well. If you use mgh, then there is no need to spec the format. The paint format is being phased out.
doug
Julien wrote:
Hello there,
I'm trying to resample some thickness difference maps using mri_surf2surf. Unfortunately, I keep getting the following error:
[engram:Multispect] (nmr-std-env) mri_surf2surf --srcsubject 002_MEF_A \ --sval $SUBJECTS_DIR/thickness/002_MEF_A-002_MPRAGE_A/surf/lh.thickness_diff.w \ --src_type curv \ --trgsubject 001_MEF_A \ --tval $SUBJECTS_DIR/thickness/002_MEF_A-002_MPRAGE_A/surf/lh.thickness_diff_resampled_to_001_MEF_A.w \ --trg_type paint \ --hemi lh \ --surfreg sphere.reg
Registration surface changed to sphere.reg srcsubject = 002_MEF_A srcval = /space/engram/1/users/Multispect/thickness/002_MEF_A-002_MPRAGE_A/surf/lh.thickness_diff.w
srctype = curv trgsubject = 001_MEF_A trgval = /space/engram/1/users/Multispect/thickness/002_MEF_A-002_MPRAGE_A/surf/lh.thickness_diff_resampled_to_001_MEF_A.w
trgtype = paint surfreg = sphere.reg srchemi = lh trghemi = lh frame = 0 fwhm-in = 0 fwhm-out = 0 Reading source surface reg /space/engram/1/users/Multispect/002_MEF_A/surf/lh.sphere.reg Loading source data Reading curvature file /space/engram/1/users/Multispect/thickness/002_MEF_A-002_MPRAGE_A/surf/lh.thickness_diff.ÔC
MRISreadCurvature: could not open /space/engram/1/users/Multispect/thickness/002_MEF_A-002_MPRAGE_A/surf/lh.thickness_diff.ÔC
No such file or directory ERROR: reading curvature file
From the initial command output, it appears as though the paths are input correctly, but upon reading the file it appears to be trying to open "lh.thickness_diff.ÔC" instead of "lh.thickness_diff.w" and subsequently failing. Am I doing anything incorrectly here?
Thanks, Julien