Wednesday, September 7, 2011

PAR to NII

/tmp/foo file:

05F003_B1
05M002_B1
05M003_B1
06F001_B1
06F011_B1
06M001_B1
06M005_B1
06M012_B1
07F002_B1
07F007_B1
07F009_B1
07F010_B1
07F024_B1
07M001_B1
07M005_B1
07M006_B1

$ for ds in `cat /tmp/foo`;do cd ${ds};3dPAR2AFNI.pl -n -s -o ~/tmp *.PAR;cd ../;done


*** WARNING: The number of volumes from the PAR header does not match the number of slices times the number of image                        s!
*** WARNING: Resetting the number of volumes to be the number of slices times the number of images (33).
to3d -session /home/yyw/tmp/  -skip_outliers -prefix 05M002_B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_10_1.nii -time:zt 64                         33 12172.998ms zero -xFOV 131.308R-124.692L -yFOV 130.114A-125.886P -zFOV 35.832I-92.168S 3D:-1:0:128:128:2112:05M0                        02_B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_10_1.REC
++ to3d: AFNI version=AFNI_2011_05_26_1457 (Aug 31 2011) [32-bit]
++ Authored by: RW Cox
*+ WARNING: TR expressed in milliseconds will be converted to TR=12.172998s
++ Counting images:  total=2112 2D slices
++ Each 2D slice is 128 X 128 pixels
++ Image data type = short
++ Reading images: ..........................................
++ 3D dataset written to disk
*** WARNING: The number of volumes from the PAR header does not match the number of slices times the number of image                        s!
*** WARNING: Resetting the number of volumes to be the number of slices times the number of images (33).
to3d -session /home/yyw/tmp/  -skip_outliers -prefix 05M003_B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_10_1.nii -time:zt 64                         33 12172.998ms zero -xFOV 132.021R-123.979L -yFOV 125.893A-130.107P -zFOV 52.876I-75.124S 3D:-1:0:128:128:2112:05M0                        03_B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_10_1.REC
++ to3d: AFNI version=AFNI_2011_05_26_1457 (Aug 31 2011) [32-bit]
++ Authored by: RW Cox
*+ WARNING: TR expressed in milliseconds will be converted to TR=12.172998s
++ Counting images:  total=2112 2D slices
++ Each 2D slice is 128 X 128 pixels
++ Image data type = short
++ Reading images: ..........................................
++ 3D dataset written to disk
*** WARNING: The number of volumes from the PAR header does not match the number of slices times the number of image                        s!
*** WARNING: Resetting the number of volumes to be the number of slices times the number of images (33).
Use of uninitialized value $fileSize in numeric gt (>) at /home/yyw/abin/3dPAR2AFNI.pl line 319.
Skipping 06F001_B1_Reg_-_WIP_DTI_32dir_mimic_NWU_no_stab_031609_SENSE_10_2.PAR: The corresponding REC file is 0 byte                        s in length

*** WARNING: The number of volumes from the PAR header does not match the number of slices times the number of image                        s!
*** WARNING: Resetting the number of volumes to be the number of slices times the number of images (33).
to3d -session /home/yyw/tmp/  -skip_outliers -prefix 06F001_B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_10_1.nii -time:zt 64                         33 12172.998ms zero -xFOV 136.396R-119.604L -yFOV 134.063A-121.937P -zFOV 64.466I-63.534S 3D:-1:0:128:128:2112:06F0                        01_B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_10_1.REC
++ to3d: AFNI version=AFNI_2011_05_26_1457 (Aug 31 2011) [32-bit]
++ Authored by: RW Cox
*+ WARNING: TR expressed in milliseconds will be converted to TR=12.172998s
++ Counting images:  total=2112 2D slices
++ Each 2D slice is 128 X 128 pixels
++ Image data type = short
++ Reading images: ..........................................
++ 3D dataset written to disk
*** WARNING: The number of volumes from the PAR header does not match the number of slices times the number of image                        s!
*** WARNING: Resetting the number of volumes to be the number of slices times the number of images (33).
Use of uninitialized value $fileSize in numeric gt (>) at /home/yyw/abin/3dPAR2AFNI.pl line 319.
Skipping 06F011_B1_Reg_-_WIP_DTI_32dir_mimic_NWU_no_stab_031609_SENSE_10_2.PAR: The corresponding REC file is 0 byte                        s in length

*** WARNING: The number of volumes from the PAR header does not match the number of slices times the number of image                        s!
*** WARNING: Resetting the number of volumes to be the number of slices times the number of images (33).
to3d -session /home/yyw/tmp/  -skip_outliers -prefix 06F011_B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_10_1.nii -time:zt 64                         33 12172.998ms zero -xFOV 134.012R-121.988L -yFOV 131.34A-124.66P -zFOV 44.628I-83.372S 3D:-1:0:128:128:2112:06F011                        _B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_10_1.REC
++ to3d: AFNI version=AFNI_2011_05_26_1457 (Aug 31 2011) [32-bit]
++ Authored by: RW Cox
*+ WARNING: TR expressed in milliseconds will be converted to TR=12.172998s
++ Counting images:  total=2112 2D slices
++ Each 2D slice is 128 X 128 pixels
++ Image data type = short
++ Reading images: ..........................................
++ 3D dataset written to disk
*** WARNING: The number of volumes from the PAR header does not match the number of slices times the number of image                        s!
*** WARNING: Resetting the number of volumes to be the number of slices times the number of images (8.25).
to3d -session /home/yyw/tmp/  -skip_outliers -prefix 06M001_B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_10_1.nii -time:zt 64                         8.25 12172.998ms zero -xFOV 133.015R-122.985L -yFOV 135.021A-120.979P -zFOV 47.952I-80.048S 3D:-1:0:128:128:528:06M                        001_B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_10_1.REC
++ to3d: AFNI version=AFNI_2011_05_26_1457 (Aug 31 2011) [32-bit]
++ Authored by: RW Cox
*+ WARNING: TR expressed in milliseconds will be converted to TR=12.172998s
++ Counting images:  total=528 2D slices
** Number of slices on command line   = 528
** Number of slices needed for -time: = 512
** Something is wrong with your command line!
*** WARNING: The number of volumes from the PAR header does not match the number of slices times the number of image                        s!
*** WARNING: Resetting the number of volumes to be the number of slices times the number of images (6.703125).
to3d -session /home/yyw/tmp/  -skip_outliers -prefix 06M005_B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_10_1.nii -time:zt 64                         6.703125 12172.998ms zero -xFOV 128R-128L -yFOV 146.373A-109.627P -zFOV 27.911I-100.089S 3D:-1:0:128:128:429:06M005                        _B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_10_1.REC
++ to3d: AFNI version=AFNI_2011_05_26_1457 (Aug 31 2011) [32-bit]
++ Authored by: RW Cox
*+ WARNING: TR expressed in milliseconds will be converted to TR=12.172998s
++ Counting images:  total=429 2D slices
** Number of slices on command line   = 429
** Number of slices needed for -time: = 384
** Something is wrong with your command line!
*** WARNING: The number of volumes from the PAR header does not match the number of slices times the number of image                        s!
*** WARNING: Resetting the number of volumes to be the number of slices times the number of images (9.796875).
to3d -session /home/yyw/tmp/  -skip_outliers -prefix 06M012_B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_11_1.nii -time:zt 64                         9.796875 12172.998ms zero -xFOV 128R-128L -yFOV 124.564A-131.436P -zFOV 44.527I-83.473S 3D:-1:0:128:128:627:06M012_                        B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_11_1.REC
++ to3d: AFNI version=AFNI_2011_05_26_1457 (Aug 31 2011) [32-bit]
++ Authored by: RW Cox
*+ WARNING: TR expressed in milliseconds will be converted to TR=12.172998s
++ Counting images:  total=627 2D slices
** Number of slices on command line   = 627
** Number of slices needed for -time: = 576
** Something is wrong with your command line!
Unable to open *.PAR for reading: No such file or directory.
*** WARNING: The number of volumes from the PAR header does not match the number of slices times the number of image                        s!
*** WARNING: Resetting the number of volumes to be the number of slices times the number of images (33).
to3d -session /home/yyw/tmp/  -skip_outliers -prefix 07F007_B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_12_1.nii -time:zt 64                         33 12172.998ms zero -xFOV 132.864R-123.136L -yFOV 129.946A-126.054P -zFOV 26.062I-101.938S 3D:-1:0:128:128:2112:07F                        007_B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_12_1.REC
++ to3d: AFNI version=AFNI_2011_05_26_1457 (Aug 31 2011) [32-bit]
++ Authored by: RW Cox
*+ WARNING: TR expressed in milliseconds will be converted to TR=12.172998s
++ Counting images:  total=2112 2D slices
++ Each 2D slice is 128 X 128 pixels
++ Image data type = short
++ Reading images: ..........................................
++ 3D dataset written to disk
*** WARNING: The number of volumes from the PAR header does not match the number of slices times the number of image                        s!
*** WARNING: Resetting the number of volumes to be the number of slices times the number of images (33).
to3d -session /home/yyw/tmp/  -skip_outliers -prefix 07F009_B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_10_1.nii -time:zt 64                         33 12172.998ms zero -xFOV 130.88R-125.12L -yFOV 139.693A-116.307P -zFOV 43.619I-84.381S 3D:-1:0:128:128:2112:07F009                        _B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_10_1.REC
++ to3d: AFNI version=AFNI_2011_05_26_1457 (Aug 31 2011) [32-bit]
++ Authored by: RW Cox
*+ WARNING: TR expressed in milliseconds will be converted to TR=12.172998s
++ Counting images:  total=2112 2D slices
++ Each 2D slice is 128 X 128 pixels
++ Image data type = short
++ Reading images: ..........................................
++ 3D dataset written to disk
*** WARNING: The number of volumes from the PAR header does not match the number of slices times the number of image                        s!
*** WARNING: Resetting the number of volumes to be the number of slices times the number of images (33).
to3d -session /home/yyw/tmp/  -skip_outliers -prefix 07F010_B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_11_1.nii -time:zt 64                         33 12172.998ms zero -xFOV 133.622R-122.378L -yFOV 124.672A-131.328P -zFOV 28.198I-99.802S 3D:-1:0:128:128:2112:07F0                        10_B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_11_1.REC
++ to3d: AFNI version=AFNI_2011_05_26_1457 (Aug 31 2011) [32-bit]
++ Authored by: RW Cox
*+ WARNING: TR expressed in milliseconds will be converted to TR=12.172998s
++ Counting images:  total=2112 2D slices
++ Each 2D slice is 128 X 128 pixels
++ Image data type = short
++ Reading images: ..........................................
++ 3D dataset written to disk
*** WARNING: The number of volumes from the PAR header does not match the number of slices times the number of image                        s!
*** WARNING: Resetting the number of volumes to be the number of slices times the number of images (5.671875).
to3d -session /home/yyw/tmp/  -skip_outliers -prefix 07F024_B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_11_1.nii -time:zt 64                         5.671875 12172.998ms zero -xFOV 134.289R-121.711L -yFOV 132.193A-123.807P -zFOV 27.662I-100.338S 3D:-1:0:128:128:36                        3:07F024_B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_11_1.REC
++ to3d: AFNI version=AFNI_2011_05_26_1457 (Aug 31 2011) [32-bit]
++ Authored by: RW Cox
*+ WARNING: TR expressed in milliseconds will be converted to TR=12.172998s
++ Counting images:  total=363 2D slices
** Number of slices on command line   = 363
** Number of slices needed for -time: = 320
** Something is wrong with your command line!
*** WARNING: The number of volumes from the PAR header does not match the number of slices times the number of image                        s!
*** WARNING: Resetting the number of volumes to be the number of slices times the number of images (26.125).
to3d -session /home/yyw/tmp/  -skip_outliers -prefix 07M001_B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_10_1.nii -time:zt 64                         26.125 12172.998ms zero -xFOV 128.749R-127.251L -yFOV 146.393A-109.607P -zFOV 28.621I-99.379S 3D:-1:0:128:128:1672:                        07M001_B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_10_1.REC
++ to3d: AFNI version=AFNI_2011_05_26_1457 (Aug 31 2011) [32-bit]
++ Authored by: RW Cox
*+ WARNING: TR expressed in milliseconds will be converted to TR=12.172998s
++ Counting images:  total=1672 2D slices
** Number of slices on command line   = 1672
** Number of slices needed for -time: = 1664
** Something is wrong with your command line!
*** WARNING: The number of volumes from the PAR header does not match the number of slices times the number of image                        s!
*** WARNING: Resetting the number of volumes to be the number of slices times the number of images (33).
to3d -session /home/yyw/tmp/  -skip_outliers -prefix 07M005_B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_12_1.nii -time:zt 64                         33 12172.998ms zero -xFOV 132.021R-123.979L -yFOV 125.128A-130.872P -zFOV 32.983I-95.017S 3D:-1:0:128:128:2112:07M0                        05_B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_12_1.REC
++ to3d: AFNI version=AFNI_2011_05_26_1457 (Aug 31 2011) [32-bit]
++ Authored by: RW Cox
*+ WARNING: TR expressed in milliseconds will be converted to TR=12.172998s
++ Counting images:  total=2112 2D slices
++ Each 2D slice is 128 X 128 pixels
++ Image data type = short
++ Reading images: ..........................................
++ 3D dataset written to disk
*** WARNING: The number of volumes from the PAR header does not match the number of slices times the number of image                        s!
*** WARNING: Resetting the number of volumes to be the number of slices times the number of images (33).
to3d -session /home/yyw/tmp/  -skip_outliers -prefix 07M006_B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_10_1.nii -time:zt 64                         33 12172.998ms zero -xFOV 130.516R-125.484L -yFOV 137.434A-118.566P -zFOV 79.094I-48.906S 3D:-1:0:128:128:2112:07M0                        06_B1_WIP_IRC19B_DTI_32dir_2x2x2_SENSE_10_1.REC
++ to3d: AFNI version=AFNI_2011_05_26_1457 (Aug 31 2011) [32-bit]
++ Authored by: RW Cox
*+ WARNING: TR expressed in milliseconds will be converted to TR=12.172998s
++ Counting images:  total=2112 2D slices
++ Each 2D slice is 128 X 128 pixels
++ Image data type = short
++ Reading images: ..........................................
++ 3D dataset written to disk

No comments:

Post a Comment