Dear Bruce,
The patch worked, I was able to configure the plugin and import the binary data. I changed the default columns, otherwise some files were imported scrambled:
Energy :1 (that one was ok)
I0 : 6 (that one was ok)
Narrow (I imported I_Trans instead): column 7
Trans (I imported Total_fluo instead): column 8
Wide (I imported S K-alpha fluo instead): column 9.
Thanks for the quick and helpful reply.
Raoul
________________________________________
From: ifeffit-bounces@millenia.cars.aps.anl.gov [ifeffit-bounces@millenia.cars.aps.anl.gov] on behalf of ifeffit-request@millenia.cars.aps.anl.gov [ifeffit-request@millenia.cars.aps.anl.gov]
Sent: January 30, 2013 1:00 PM
To: ifeffit@millenia.cars.aps.anl.gov
Subject: Ifeffit Digest, Vol 119, Issue 31
Send Ifeffit mailing list submissions to
ifeffit@millenia.cars.aps.anl.gov
To subscribe or unsubscribe via the World Wide Web, visit
http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
or, via email, send a message with subject or body 'help' to
ifeffit-request@millenia.cars.aps.anl.gov
You can reach the person managing the list at
ifeffit-owner@millenia.cars.aps.anl.gov
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Ifeffit digest..."
Today's Topics:
1. Look for paper about WL (Gudrun Lisa Bovenkamp)
2. Re: Help with importing binary files from NSLS BM X15B in
athena (Bruce Ravel)
3. Re: Look for paper about WL (Bruce Ravel)
----------------------------------------------------------------------
Message: 1
Date: Wed, 30 Jan 2013 04:27:35 +0100
From: "Gudrun Lisa Bovenkamp"
I'm trying to import binary files generated at BM X15B of NSLS, at the S K-edge. I selected the corresponding plugin, and Athena (Demeter 0.9.14) does not import the columns 7-10 containing the Io, It, IF and S Kalpha-fluo. It only imports the first few columns and they don't contain the information I need. If I ask Athena to import more columns it crashes and exit. When I use the utility at BM X15B to convert the binary files in simple text files, Athena does not recognize the text files as data file. I'm I doing something wrong ? Any idea how to solve this problem ? I have attached a binary file, its text translation (using the utility available at BM X15B), and a screenshot of what happens when I import a binary file.
The problem seems to be one of column selection. I am suspicious that a detail of how the data are saved to the binary files may have changed since I wrote the X15B plugin many years ago. Attached are two file that you should be able to drop in place on top of your current installation. Put both files in C:\strawberry\perl\site\lib\Demeter\Plugins The file "X15B.pm" wil replace the version of the file that is already there. The file "x15b.demeter_conf" is new. Make sure that you save them with filenames *exactly* as written above. For instance, if you let Outlook save "X15B.pm" as "X15B.pm.txt", it won't be recognized by Athena and everything I say below won't work. The new file will allow you configure the X15B plugin. In the Plugin Registry page, rightt click on the X15B entry. See: http://bruceravel.github.com/demeter/aug/other/plugin.html#athena%27spluginr... The variables set using that configuration file, tell Athena which columns from the original data file (also which columns from the text conversion using the beamlilne tool) should be preserved when Athena converts the binary blob to an ascii column file. Most of the columns are filled with zeros, which is why the plugin wants to discard those columns. Side note: Athena deals very pooly with ascii data file that don't have the energy in the first column, which is why it has trouble reading the text file from the beamline tool. I would like to hear back from you about how this works out. If it works well for you, then it will be included in the next release of the software. If there are still problems -- then I need to know. B PS: It is possible that the "x15b.demeter_conf" file has the columns for narrow and wide backwards. Let me know if you think that's the case. I am writing this email without wandering down to X15B to ask Paul the details. -- Bruce Ravel ------------------------------------ bravel@bnl.gov National Institute of Standards and Technology Synchrotron Methods Group at NSLS --- Beamlines U7A, X24A, X23A2 Building 535A Upton NY, 11973 Homepage: http://xafs.org/BruceRavel Software: https://github.com/bruceravel