Probe Software Users Forum

Software => CalcZAF and Standard => Topic started by: Philipp Poeml on November 05, 2015, 12:45:10 AM

Title: Import export of MACs
Post by: Philipp Poeml on November 05, 2015, 12:45:10 AM
John,

there is something about the usermac.txt. You are supplying one from ITU, which has a particular format. See bottom. But then, when you view the complete mac table in calczaf it gets overwritten by a file with a complete different format.

I am trying to import a few values into the database, but I don't know how to export the old one to txt, add some values, and import it again. How would I do that?


If I say show "MAC table (complete) in Calczaf, it is showing me the MAC table and saving it automatically as usermac.txt.


"Table of MACs (mass absorption coefficients) from C:\Documents and Settings\All Users\Application Data\Probe Software\Probe for EPMA\USERMAC.DAT"
"Emitting Element: H "
Absorber         ka         kb         la         lb         ma         mb   
      H                                                                      
      He                                                                     
      Li                                                                     
      Be                                                                     
      B                                                                      
      C                                                                      
      N                                                                      
      O                                                                      
      F                                                                      
      Ne              

Then, does it overwrite the original usersmac.txt that has this format?

zMeas   zAbsorb   Ka   Kb   La   Lb   Ma   Mb
1   1   0   0   0   0   0   0
2   1   0   0   0   0   0   0
3   1   0   0   0   0   0   0
4   1   8950   0   0   0   0   0
5   1   1730   0   0   0   0   0
6   1   462   0   0   0   0   0
7   1   149   0   0   0   0   0
8   1   57   0   0   0   0   0

I am trying to import a few values into the database, but I don't know how to export the old one to txt, add some values, and import it again. How would I do that?

Cheers
Ph
Title: Re: Import export of MACs
Post by: John Donovan on November 05, 2015, 08:07:52 AM
Sorry about that. I'll add an extra suffix to the display output code so it doesn't overwrite the existing .TXT file.

I'll also add an option to output the current MAC .DAT file to .TXT so you can edit zero (or non-zero) MAC values and then run the update to update your .DAT MAC file.

In the meantime just use the Edit MAC table menu as I fixed that yesterday.   Sorry for the trouble, but adding in all those extra x-ray lines (Ll, Lg, Lv, Ln, Mg, Mg) a few months seems to have caused a few glitches in this edit/update code...
john
Title: Re: Import export of MACs
Post by: John Donovan on November 05, 2015, 04:25:20 PM
Quote from: Philipp Poeml on November 05, 2015, 12:45:10 AM
I am trying to import a few values into the database, but I don't know how to export the old one to txt, add some values, and import it again. How would I do that?

Hi Philipp,
I fixed all the MAC editing code. It should all work fine now.  Thanks for finding that.  It was leftover from the additional x-ray lines work I did a while back!

I also added a new menu to convert your existing USERMAC.DAT file to TXT for editing.  see instructions here:

(https://smf.probesoftware.com/oldpics/i65.tinypic.com/i284n6.jpg)