problem to convert GIS image to Analyse image

AIMS library and commands usage

Moderators: denghien, riviere

Post Reply
richards
Posts: 21
Joined: Mon Jun 12, 2006 3:21 pm

problem to convert GIS image to Analyse image

Post by richards »

Hello

Does someone know how to convert a GIS image to an Analyse image ?
richards
Posts: 21
Joined: Mon Jun 12, 2006 3:21 pm

Post by richards »

I tried to use: AimsFIleConvert -i tep -o tep.hdr , but I get the following error message:

[richards@cacao3 emma_new]$ AimsFileConvert -i tep1_recallee -f hdr -o tep
filein : tep1_recallee
fileout : tep
ascii : 0
rescale : 0
format : hdr
type :
objtype :
xdim : 0
ydim : 0
zdim : 0
reading tep1_recallee as Volume / FLOAT...
reading done
converting data...
convert done
writing tep...
Erreur du bus
[richards@cacao3 emma_new]$

I'll be very thankfull if someone may help me
User avatar
Jean-Francois Mangin
Posts: 337
Joined: Mon Mar 01, 2004 10:24 am
Location: Neurospin, CEA, France
Contact:

Post by Jean-Francois Mangin »

Just a try, I am not the wizard:
try other extension, for instance .img, to specify
analyze format.

Are you sure your input data is correct?

Type AimsFileConvert -h to get some other options.
The floating point format is rather tricky to deal with...
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Post by riviere »

Hi,

The -f option is wrong here, you should either use '-f SPM' or no -f option at all but specify a compatible extension in the output filename: all of the following commands should produce the same result:

Code: Select all

AimsFIleConvert -i tep -o tep.hdr
AimsFIleConvert -i tep -o tep.img
AimsFIleConvert -i tep -o tep -f SPM
But in any case the command should not crash with this bus error: there seems to be a bug somewhere, but I'm rather surprised of it: these tools work well for us and we are using them everyday...
Which system are you using, Linux I guess (from the error message), but which distribution ? Which package of BrainVisa are you using ? Did your command output anything at all (any tep.ima/tep.dim/tep.* files) or did it crash before writing anything ? Have you made sure you have write access on the output directory, and enough space/quota left on this filesystem ?

Denis
richards
Posts: 21
Joined: Mon Jun 12, 2006 3:21 pm

Post by richards »

Ok I have solved my problem with "AimsFileConvert -i tep -o tep.img"

Thank you !!
Post Reply