Error importing .nii file?

Questions about BrainVisa usage and installation

Moderators: riviere, denghien

francois
Posts: 61
Joined: Tue Jul 25, 2017 9:37 am

Error importing .nii file?

Postby francois » Thu Mar 08, 2018 2:29 pm

Hello,

What's wrong with this volume: https://www.dropbox.com/s/pph7iqff08rwf ... i.zip?dl=0 ?
It was sent to me by developers at Yokogawa/Ricoh (Japanese MEG manufacturer)...

in Import T1 MRI 2 The following command failed : "AimsFileConvert" "-i" "c:\users\franc\appdata\local\temp\tmpbiwup9.nii" "-o" "C:\Work\RawData\brainvisa_db\subjects\Ricoh01\t1mri\default_acquisition\Ricoh01.nii.gz" "-t" "S16" "-r" "--omin" "0" "--omax" "4095"
ImportationError


Thanks
Francois

User avatar
riviere
Site Admin
Posts: 1358
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Re: Error importing .nii file?

Postby riviere » Fri Mar 09, 2018 11:01 am

Hi,

There is a problem in the handling of some temporary files actually on Windows, we have already found and fixed it in our sources, but haven't got time to release the fixed version yet.
In your case I thing the problem is triggered by the fact that your image is considered as float voxel values where they are expected to be 16 bit ints (what they are actually), so an additional conversion is done, which runs into this temp file problem.
You can try "fixing" this manually by forcing the data type manually, using this command:

Code: Select all

AimsFileConvert -i F:\RawData\0Formats\Data\Ricoh\Example2\2_PatientMEGData\NIfTI\Anatomy.nii -o F:\RawData\0Formats\Data\Ricoh\Example2\2_PatientMEGData\NIfTI\Anatomy.nii -t S16

Only the scale factors will change actually (but you can write the output in a different place if you are afraid of overwriting the input image), then try again, it might work this time.

We will release a fix when we can... (please be patient...)

Denis

francois
Posts: 61
Joined: Tue Jul 25, 2017 9:37 am

Re: Error importing .nii file?

Postby francois » Fri Mar 09, 2018 3:41 pm

Ok thanks.
And it works with the WSL version too :)


Return to “BrainVISA”

Who is online

Users browsing this forum: No registered users and 2 guests