DPARSFA- Problem removing first time points and fieldmap correction

Dear DPARSFA team,

first, I would like to thank you for your efforts with DPABI, I enjoy working with the toolbox. I hope I’m not sending questions that were already discussed and solved in the forum that I just hadn’t seen.

I encountered two problems for which I am kindly asking for advices.

  1. When I removed the first ten time points of the data the functional images look white pixelated, different from before remove. Before removing the time points the functional images looked as they used to look.
  2. When I did a fieldmap correction, I did it with the raw data (dicoms) and checked the boxes for doing it. After running the toolbox, I received the following error:

Error using DPARSFA_run (line 819)

Index exceeds the number of array elements (0).


Error in DPARSFA>pushbuttonRun_Callback (line 1845)



Error in gui_mainfcn (line 95)



Error in DPARSFA (line 30)

    gui_mainfcn(gui_State, varargin{:});


Error while evaluating UIControl Callback.

Maybe you might send me some hints what I could adapt to solve the problems.


Many thanks in advance.

Looking forward hearing from you.


Kind regards


1. Is your data from Philips? I found sometimes there are problems for writing in int for Philips data. I will change this in the next release.

2. How did you organize your fieldmap data? Seems that's a data organization problem, you can use DPABI->Utilities->Check Data Organization.

Dear Prof. Chao-Gan,

I appreciate your reply and your help! Thank you for the helpful hints.

1) I am using data of a multicenter study including Philips (most), Siemens and GE scanner. The problem occured with Philips, some data measured with a Siemens but not GE. If I may ask you, if there is something I could to to solve the problem? Or is there an appropriate alternative?

2) I checked for the organization and as it seems this is the problem. If I may further ask: I have fieldmaps (T1 or T2 - I only used T1 and not T2) which are stored one dicom file. I tried the organization check with dicoms and niftis converted with dcm2niix (here the information that I have 1.imaginary 1.real 2.imaginary 2.real as niftis). However, I always get the error that something is wrong with my file organization. I also checked the explanation for organization that occurs when fieldmap correction is selected in DPARSFA but, I can't find a phase or magnitude image in my data. May I ask you for a hint what I can do best?

Thank you and grateful regards


1. You can download the developing version: https://github.com/Chaogan-Yan/DPABI

2. You have to convert the real and imaginary into phase and magnitude images. E.g., matlab command: abs() angle()

Dear Prof. Chao-Gan,

I could solve the problem! Thanks a lot for your reply and help.

Kind regards