make_template_shorts.csh 584 B

1234567891011121314151617
  1. #!/bin/tcsh
  2. # make short versions of all the float templates
  3. set dsetlist = ( inia19 macMNI_rescale yerkes19 )
  4. foreach dset ( $dsetlist )
  5. 3dcalc -a ${dset}.nii.gz -datum short -nscale -expr a -prefix ${dset}_short.nii.gz
  6. end
  7. # Yerkes has negative values and very large field of view
  8. # extending far beyond brain
  9. 3dAutomask -apply_prefix yerkes19_short_am.nii.gz yerkes19_short.nii.gz
  10. # for non-AFNI generated templates, mark the others as templates with spaces
  11. 3drefit -space INIA19 inia19*.nii.gz
  12. 3drefit -space YERKES19 yerkes19*.nii.gz
  13. 3drefit -space MACMNI macMNI*.nii.gz