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. data file format (emmanuelle montarges-pelletier) 2. Re: data file format (Matthew) 3. Re: data file format (Bruce Ravel) 4. The most important fitting parameters (Bridget Ingham)
----------------------------------------------------------------------
Message: 1 Date: Wed, 21 Jun 2006 10:25:47 +0200 From: emmanuelle montarges-pelletier
Subject: [Ifeffit] data file format To: ifeffit@millenia.cars.aps.anl.gov Message-ID: <1F268809-6D80-4EE8-996D-209DFF3FEE07@ensg.inpl-nancy.fr> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Hello I have some problems with data file format as I try to import exafs files in Artemis or in Athena. I am working on a powerbook G4, with OSX 10.4.6. I installed the ifeffit package, including Athena and Artemis. Athena could open any XAS "raw" file from fluorescence or transmission measurements. However, if I perform any modifications on these raw files with exterior programs (Michalowicz programs, Kaleidagraph) and try to import the new files , saved as text files, Athena or Arthemis can not open them. I guess it may come from the encoding of the text file. Do you have any clue on this encoding issue? Do you know any program which would allow me to transform these text files in readable files for Artemis? Thank you for your answer sincerely Emmanuelle
There are two types of encodings which may differ among text files from different countries and OSs. I don't know how Athena&Co. handle either of them. One is that numbers and decimals can differ per country. If Kgraph is using a local encoding other than the American standard, say, using commas instead of periods, it's possible that Artemis won't understand it. I have the same problem with my analysis programs. Every so often I get a panicky email from a user whose files won't open. The other variation is in what constitutes the end of a line, which is OS-dependent. It could be carriage return, linefeed, or CR-LF. mam
Salut Emmanuelle,
Matthew's suggestion of floats with commas is a good suggestion. A&A make no attempt at respecting localization. (That is, a number between one and two might be written as 1,234 -- which would confuse A&A -- rather than 1.234.) If that is the case, your best bet is to go back to the exterior program and ask it nicely to write out points instead of commas. Or you might need to edit the file by hand.
I thought that the end-of-line issue (Matthew's other suggestion) was one that was solved in A&A years ago. If that proves not to be the case, please let me know.
Another possibility is that the exterior program added other text to the file that is confusing A&A. Here is my explanation of how Athena reads ascii data files
http://cars9.uchicago.edu/iffwiki/FAQ/HoraeQuestions
and here is the explanation of the file-reading function in Ifeffit which Athena uses:
http://cars9.uchicago.edu/~ifeffit/refman/node24.html
The situation in Artemis is similar, although restricted in the sense that Artemis is expecting its data to be chi(k).
If none of that clarifies the issue for you, I'll need to see an example of the data file which is causing the problem.
The easiest way to move data from Athena to Artemis is to have Artemis import its data directly from the Athena project file.
If there is some data processing feature that Athena does not do but which you require before moving on to data analysis, you should consider making a feature request here on the mailing list. Athena will never get the features that you need if I am not aware that they are needed!
B
Just an additional point: take care to save the file as unix file and not standard Mac (use a free text editor as TextWrangler to do this kind of manipulation). Michel -- __________________________________________ Michel Jaouen Universite de Poitiers - UFR Sciences - SP2MI LMP UMR 6630-CNRS Boulevard Pierre et Marie Curie - Teleport 2 BP 30179 86962 Futuroscope - Chasseneuil Cedex France Tel : (33) 5 49 49 67 37 Fax : (33) 5 49 49 66 92 e-mail : Michel.Jaouen@univ-poitiers.fr __________________________________________