Thread Subject: Loading a .fid file into Matlab?

Subject: Loading a .fid file into Matlab?

From: Louise Anderson

Date: 17 Jun, 2010 12:22:05

Message: 1 of 6

Hi,
I am trying to write a program for MRI image reconstruction in Matlab at the moment and would like to load the raw k-space data into Matlab. The data is from a Bruker BioSpin machine with file extention .fid, is there any way of loading it directly into Matlab or do I need to find some way to convert it into an ASCII file first?
Any help would be greatly appreciated!
Best Regards,
Louise Anderson

Subject: Loading a .fid file into Matlab?

From: us

Date: 17 Jun, 2010 12:30:23

Message: 2 of 6

"Louise Anderson" <andersol@student.chalmers.se> wrote in message <hvd41d$ho4$1@fred.mathworks.com>...
> Hi,
> I am trying to write a program for MRI image reconstruction in Matlab at the moment and would like to load the raw k-space data into Matlab. The data is from a Bruker BioSpin machine with file extention .fid, is there any way of loading it directly into Matlab or do I need to find some way to convert it into an ASCII file first?
> Any help would be greatly appreciated!
> Best Regards,
> Louise Anderson

a hint:
- if you know the anatomy of those files, use ML's low-level i/o functions to slurp it...

% just to name a few...
     help fopen;
     help fclose;
     help fread;
     help memmapfile;

us

Subject: Loading a .fid file into Matlab?

From: Louise Anderson

Date: 17 Jun, 2010 13:01:08

Message: 3 of 6

"us " <us@neurol.unizh.ch> wrote in message <hvd4gv$id7$1@fred.mathworks.com>...
> "Louise Anderson" <andersol@student.chalmers.se> wrote in message <hvd41d$ho4$1@fred.mathworks.com>...
> > Hi,
> > I am trying to write a program for MRI image reconstruction in Matlab at the moment and would like to load the raw k-space data into Matlab. The data is from a Bruker BioSpin machine with file extention .fid, is there any way of loading it directly into Matlab or do I need to find some way to convert it into an ASCII file first?
> > Any help would be greatly appreciated!
> > Best Regards,
> > Louise Anderson
>
> a hint:
> - if you know the anatomy of those files, use ML's low-level i/o functions to slurp it...
>
> % just to name a few...
> help fopen;
> help fclose;
> help fread;
> help memmapfile;
>
> us


Hi,
Unfortunatly, I do not know the underlying structure of them. Is there anybody else who have succeded of loading a .fid file into Matlab, or written some interface for it?
Kind regards,
Louise

Subject: Loading a .fid file into Matlab?

From: us

Date: 17 Jun, 2010 13:16:04

Message: 4 of 6

"Louise Anderson" <andersol@student.chalmers.se> wrote in message <hvd6ak$d2f$1@fred.mathworks.com>...
> "us " <us@neurol.unizh.ch> wrote in message <hvd4gv$id7$1@fred.mathworks.com>...
> > "Louise Anderson" <andersol@student.chalmers.se> wrote in message <hvd41d$ho4$1@fred.mathworks.com>...
> > > Hi,
> > > I am trying to write a program for MRI image reconstruction in Matlab at the moment and would like to load the raw k-space data into Matlab. The data is from a Bruker BioSpin machine with file extention .fid, is there any way of loading it directly into Matlab or do I need to find some way to convert it into an ASCII file first?
> > > Any help would be greatly appreciated!
> > > Best Regards,
> > > Louise Anderson
> >
> > a hint:
> > - if you know the anatomy of those files, use ML's low-level i/o functions to slurp it...
> >
> > % just to name a few...
> > help fopen;
> > help fclose;
> > help fread;
> > help memmapfile;
> >
> > us
>
>
> Hi,
> Unfortunatly, I do not know the underlying structure of them. Is there anybody else who have succeded of loading a .fid file into Matlab, or written some interface for it?
> Kind regards,
> Louise

well... this may(!) be helpful

http://www.pascal-man.com/navigation/faq-java-browser/file-conversion.shtml

us

Subject: Loading a .fid file into Matlab?

From: Walter Roberson

Date: 17 Jun, 2010 13:29:22

Message: 5 of 6

Louise Anderson wrote:
> "us " <us@neurol.unizh.ch> wrote in message
> <hvd4gv$id7$1@fred.mathworks.com>...
>> "Louise Anderson" <andersol@student.chalmers.se> wrote in message
>> <hvd41d$ho4$1@fred.mathworks.com>...

>> > I am trying to write a program for MRI image reconstruction in
>> Matlab at the moment and would like to load the raw k-space data into
>> Matlab. The data is from a Bruker BioSpin machine with file extention
>> .fid, is there any way of loading it directly into Matlab or do I need
>> to find some way to convert it into an ASCII file first?

> Unfortunatly, I do not know the underlying structure of them. Is there
> anybody else who have succeded of loading a .fid file into Matlab, or
> written some interface for it?

If the Bruker BioSpin are like the Bruker ElectroSpin then there is a
console command to convert them to ascii.

The format for the 360 and 400 fid files is not especially complex;
about the only real trick is that you have to detect the 'endian'. Do
*not* simply check out a couple of files and use the byte order of
those, as the devices are allowed to store in either byte order, and
eventually you will receive a file in the other byte order.

Unfortunately I no longer remember what the .fid format _is_, and I
believe we have lost the conversion code.

See, for example,

http://www.pascal-man.com/navigation/faq-java-browser/fid-To-Ascii.shtml

Subject: Loading a .fid file into Matlab?

From: Louise Anderson

Date: 17 Jun, 2010 13:43:05

Message: 6 of 6

Walter Roberson <roberson@hushmail.com> wrote in message <SqpSn.100952$304.30244@newsfe12.iad>...
> Louise Anderson wrote:
> > "us " <us@neurol.unizh.ch> wrote in message
> > <hvd4gv$id7$1@fred.mathworks.com>...
> >> "Louise Anderson" <andersol@student.chalmers.se> wrote in message
> >> <hvd41d$ho4$1@fred.mathworks.com>...
>
> >> > I am trying to write a program for MRI image reconstruction in
> >> Matlab at the moment and would like to load the raw k-space data into
> >> Matlab. The data is from a Bruker BioSpin machine with file extention
> >> .fid, is there any way of loading it directly into Matlab or do I need
> >> to find some way to convert it into an ASCII file first?
>
> > Unfortunatly, I do not know the underlying structure of them. Is there
> > anybody else who have succeded of loading a .fid file into Matlab, or
> > written some interface for it?
>
> If the Bruker BioSpin are like the Bruker ElectroSpin then there is a
> console command to convert them to ascii.
>
> The format for the 360 and 400 fid files is not especially complex;
> about the only real trick is that you have to detect the 'endian'. Do
> *not* simply check out a couple of files and use the byte order of
> those, as the devices are allowed to store in either byte order, and
> eventually you will receive a file in the other byte order.
>
> Unfortunately I no longer remember what the .fid format _is_, and I
> believe we have lost the conversion code.
>
> See, for example,
>
> http://www.pascal-man.com/navigation/faq-java-browser/fid-To-Ascii.shtml

Thank you so much for your help! I will try this approach =)
Bers regards,
Louise

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
reference us 17 Jun, 2010 08:34:09
mri Louise Anderson 17 Jun, 2010 08:24:09
rssFeed for this Thread

Contact us at files@mathworks.com