[Ifit-users] A question about importing data with iFit

Emmanuel FARHI farhi at ill.fr
Sat Dec 8 18:39:21 CET 2012


Hi Henrik,

In order to find where 'monitor' appears, you can use:

  >> [content,field]=findstr(a, 'monitor')

will return the string containing the token, and the field name for this
string. The equivalent numerical data field is the one without 'Headers.'.
So you can get it with:

  >> numfield=strrep(field, 'Headers.','');
  >> m=get(a, numfield);
  >> monitors=m(:,2); % second column occording to the findstr result.

I have checked that the iFit.zip corresponds with the version 1.3. You may
try to download it again.

Emmanuel.

On Fri, December 7, 2012 16:43, Henrik Jacobsen wrote:
> Hi Emmanuel
> I have some data that I would like to plot using iFit. An example data
> files is attached. It's from a scan on D9, so the dataset is 51 sets of
> counts on a PSD. iFit puts the data into a 51x1024 iData, but I would like
> it to be 51 x 32x32. I think I can fix that using the reshape command, so
> that is not so important.
> However, iFit does not find the monitor count, which I need to normalize
> the data properly. Part of a data file looks like this:
>
> FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
>        4       1
>
>             time         monitor       Total Cou     angles*1000
>
>   0.25000000E+05  0.38575600E+06  0.16520000E+04  0.69999000E+05
>
> IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
>     1024
>
>        1       0       0       0       0       0       0       1       1
>     0
>        0       0       1       1       0       1       0       1       0
>     0
>        0       0       1       1       1       1       0       1       0
>     0
>        1       1       0       2       0       0       0       0       0
>     1
>        0       1       1       2       1       1       0       0       0
>     0
>
> I would like iFit to automatically set the monitor to each file to be the
> value specified in monitor (i.e. in this case  0.38575600E+06). Do you
> know
> of a way to do that?
>
> Also, I tried to download iFit 1.3, but the folder I downloaded says it's
> version 1.2..
>
> Best
>
> Henrik
>


-- 
FARHI Emmanuel <farhi at ill.fr>
Groupe DS/CS, ILL4/156, Tel 04 76 20 71 35
ILL, Grenoble




More information about the ifit-users mailing list