Xmcd Mcd Converter -
# Energy (eV) I_plus I_minus 480.0 0.85 0.62 481.0 0.80 0.55 MCD = I_minus – I_plus (or opposite sign depending on convention). If your file already has I_plus and I_minus , compute the difference. 3. Convert Using a Script (Recommended) Python Script (simple) Save as xmcd2mcd.py :
with open(infile, 'r') as f: lines = f.readlines() xmcd mcd converter
print(f"Converted infile → outfile")
import sys infile = sys.argv[1] outfile = sys.argv[2] # Energy (eV) I_plus I_minus 480