Usage of AES(PHI) tools for Jupyter NotebookΒΆ

[1]:
import subprocess
import plotly
subprocess.run(["MPExport.exe", "-Filename:..\source\PHI_AES\Au_foil2.spe", "-TSV"])
[1]:
CompletedProcess(args=['MPExport.exe', '-Filename:..\\source\\PHI_AES\\Au_foil2.spe', '-TSV'], returncode=0)
[2]:
%run -i phiaes_txt2csv.py "Au_foil2.txt"
SPECTRUM
[3]:
%run -i phiaes_csv2graph.py "Au_foil2.csv" --jupytermode
No handles with labels found to put in legend.
[4]:
%run -i phiaes_txt2rawXML.py "Au_foil2.txt" phiaes_raw_templateXML.xml raw.xml --stdout
<?xml version="1.0" ?>
<metadata>
        <meta key="Platform" type="String">PC</meta>
        <meta key="Technique" type="String">AES</meta>
        <meta key="FileType" type="String">SPECTRUM</meta>
        <meta key="FileDesc" type="String"></meta>
        <meta key="FileDate" type="String">117 5 15</meta>
        <meta key="AcqFileDate" type="String">117 5 15</meta>
        <meta key="AcqFilename" type="String">Au_foil2.spe</meta>
        <meta key="EBeamEnergy" type="String">10.0 keV</meta>
        <meta key="EBeamCurrent" type="String">1.035171e-08 A</meta>
        <meta key="EBeamDiameter" type="String">0.00 nm</meta>
        <meta key="SourceAnalyserAngle" type="String">0.0 d</meta>
        <meta key="AnalyserMode" type="String">FRR</meta>
        <meta key="AnalyserWorkFcn" type="String">4.5 eV</meta>
        <meta key="SputterRaster" type="String">0.0 0.0 um</meta>
        <meta key="PreAcqSputterTime" type="String">0 s</meta>
        <meta key="PreAcqSputterRate" type="String">1.0 A/s</meta>
        <meta key="NoSpectralReg" type="String">1</meta>
        <meta key="SpectralRegDef" type="String">1 1 Sur1 111 2401 1.0000 0.0 2400.0 0.0 2400.0 0.200000 0.00 none</meta>
        <meta key="Magnification" type="String">10000.0</meta>
        <meta key="NoSpatialArea" type="String">1</meta>
        <meta key="SpatialAreaDef" type="String">1 Full 1 (0.0 0.0 0.0 0.0 0.0)</meta>
        <meta key="ImageSizeXY" type="String">invalid XrayBeamDiameter</meta>
        <column_num>1</column_num>
        <column_name>condition</column_name>
</metadata>

[5]:
%run -i phiaes_raw2primaryXML.py raw.xml phiaes_primary_templateXML.xml primpara.xml --stdout
<?xml version="1.0" ?>
<metadata>
        <meta key="Technique" type="String">AES</meta>
        <meta key="Experiment_mode" type="String">SPECTRUM</meta>
        <meta key="File_name" type="String">Au_foil2.spe</meta>
        <meta key="EBeamEnergy" type="Quantity" unit="keV">10.0</meta>
        <meta key="EBeamCurrent" type="Quantity" unit="A">1.035171e-08</meta>
        <meta key="EBeamDiameter" type="Quantity" unit="nm">0.00</meta>
        <meta key="Magnification" type="Numeric">10000.0</meta>
        <meta key="Source_analyser_angle_for_AES" type="Quantity" unit="deg">0.0</meta>
        <meta key="Analyser_mode" type="String">FRR</meta>
        <meta key="Analyser_work_function" type="Quantity" unit="eV">4.5</meta>
        <meta key="Sputtering_Raster_Area" type="Quantity" unit="um">0.0x0.0</meta>
        <meta key="NoSpectralReg" type="Numeric">1</meta>
        <meta key="NoSpatialArea" type="Numeric">1</meta>
        <meta key="Element_and_transition" type="String">Sur1</meta>
        <meta key="Abscissa_increment" type="Quantity" unit="eV">1.0000</meta>
        <meta key="Abscissa_start" type="Quantity" unit="eV">0.0</meta>
        <meta key="Abscissa_end" type="Quantity" unit="eV">2400.0</meta>
        <meta key="Collection_time" type="Quantity" unit="s">0.200000</meta>
        <meta key="Mode_of_signal_detection" type="String">none</meta>
        <column_num>1</column_num>
        <column_name>condition</column_name>
</metadata>

[ ]: