AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
November 18, 2014 03:50PM
Hi All,

I've written a python program that does TR-wise scrubbing, code here: [github.com]

This edits the dimensions of the output file in the time dimension, and changes the relevent fields in the header, before writing out a NIFTI file.

I've used this code in the past without much trouble, but now I am noticing that AFNI programs do not like the output of this program. When I try to do something like volume smoothing, I get these messages:

            3dBlurInMask \
                -prefix ${SESS}/func_volsmooth.${ID}.${NUM}.nii.gz \
                -Mmask ${SESS}/anat_smoothmask.nii.gz \
                -FWHM ${FWHM} \
                -input ${SESS}/${INPUT}.${ID}.${NUM}.nii.gz

** WARNING: NIfTI file /projects/jdv/data/epitome/SPINS/SPN01_CMH_P001/REST/SESS01//func_scrubbed.TEST.01.nii.gz dimensions altered since AFNI extension was added
++ 3dBlurInMask: AFNI version=AFNI_2011_12_21_1014 (Sep 30 2014) [64-bit]
++ Authored by: RW Cox
++ 1 unique nonzero values in -Mmask; 43315 nonzero voxels

** WARNING: NIfTI file /projects/jdv/data/epitome/SPINS/SPN01_CMH_P001/REST/SESS01//func_scrubbed.TEST.01.nii.gz dimensions altered since AFNI extension was added
++ forcing output to be stored in float format
 + voxels in Mmask[1] = 43315
** ERROR: nifti_image_write_hdr_img: NBL does not match nim
++ Output dataset /projects/jdv/data/epitome/SPINS/SPN01_CMH_P001/REST/SESS01//func_volsmooth.TEST.01.nii.gz

and this output file "func_volsmooth.TEST.01.nii.gz" is empty.

I've uploaded the input, mask, and output files here:

[link down]

Could anyone point me in the right direction?

Thanks so much,
Joseph

[edit: updated link]



Edited 1 time(s). Last edit at 03/30/2015 08:27AM by jdviviano.
Subject Author Posted

3dBlurInMask: ERROR: nifti_image_write_hdr_img: NBL does not match nim

jdviviano November 18, 2014 03:50PM

Re: 3dBlurInMask: ERROR: nifti_image_write_hdr_img: NBL does not match nim

rick reynolds November 18, 2014 08:28PM

Re: 3dBlurInMask: ERROR: nifti_image_write_hdr_img: NBL does not match nim

jdviviano November 19, 2014 01:45AM

Re: 3dBlurInMask: ERROR: nifti_image_write_hdr_img: NBL does not match nim

Daniel Glen November 21, 2014 05:32PM