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

[6]:
import subprocess
[7]:
subprocess.run(["jamp2csv.exe", "../source/JEOL_AES/sampledata.A", "sampledata.A.csv"])
[7]:
CompletedProcess(args=['jamp2csv.exe', '../source/JEOL_AES/sampledata.A', 'sampledata.A.csv'], returncode=4294967291)
[8]:
%run -i jampcsv2graph.py "sampledata.A.csv" --jupytermode
[9]:
%run -i jamptxt2rawpara.py "../source/JEOL_AES/sampledata.A/para" jamp_rawpara_templateXML.xml raw.xml --stdout
<?xml version="1.0" ?>
<metadata>
        <column_name>condition</column_name>
        <column_num>None</column_num>
        <meta key="AP_ACQDATE" type="String">20160509141803</meta>
        <meta key="AP_PENERGY" type="String">10.00</meta>
        <meta key="AP_PCURRENT" type="String">2.000 8</meta>
        <meta key="AP_SPC_ANAMOD" type="String">5</meta>
        <meta key="AP_SPC_ES" type="String">100</meta>
        <meta key="AP_SPC_WSTART" type="String">0.00</meta>
        <meta key="AP_SPC_WSTOP" type="String">2500.00</meta>
        <meta key="AP_SPC_WSTEP" type="String">1.00</meta>
        <meta key="AP_SPC_WDWELL" type="String">30</meta>
        <meta key="AP_SPC_WSWEEPS" type="String">20</meta>
        <meta key="AP_SPOSN_BSMOD" type="String">1 1</meta>
        <meta key="AP_SPOSN_PDIA" type="String">1 10</meta>
        <meta key="AP_SPOSN_BEAM_P1X" type="String">1 0</meta>
        <meta key="AP_SPOSN_BEAM_P1Y" type="String">1 0</meta>
        <meta key="AP_SPOSN_BEAM_P2X" type="String">1 63</meta>
        <meta key="AP_SPOSN_BEAM_P2Y" type="String">1 -63</meta>
        <meta key="AP_STGTILT" type="String">45.0</meta>
        <meta key="AP_COMMENT" type="String">Ag e=10kV M5 45deg During  Sputter Ar0.5kV</meta>
        <meta key="AP_OPERATOR" type="String">NIMSname</meta>
        <meta key="AP_IGN_NEUT_MODE" type="String">1</meta>
        <meta key="AP_DATATYPE" type="String">3</meta>
        <meta key="AP_CHAMBER_PRESS" type="String">2.80 7</meta>
        <meta key="AP_MAG" type="String">1000</meta>
        <meta key="AP_SPC_MESMOD" type="String">3</meta>
        <meta key="AP_SPC_NCEM" type="String">7</meta>
        <meta key="AP_SPC_CEMSTAT" type="String">0 1 1 1 1 1 1 1 0</meta>
        <meta key="AP_SPOSN_EXENO" type="String">1</meta>
        <meta key="AP_IGN_NEUT_IN_ACQ" type="String">2</meta>
        <meta key="AP_IGN_N_BEAM_ENERGY" type="String">0</meta>
</metadata>

[10]:
%run -i jamprawpara2primary.py raw.xml jamp_primarypara_templateXML.xml primary.xml --stdout
<?xml version="1.0" ?>
<metadata>
        <meta key="Operator_identifier" type="String">NIMSname</meta>
        <meta key="Year" type="Numeric">2016</meta>
        <meta key="Month" type="Numeric">05</meta>
        <meta key="Day" type="Numeric">09</meta>
        <meta key="Hours" type="Numeric">14</meta>
        <meta key="Minutes" type="Numeric">18</meta>
        <meta key="Seconds" type="Numeric">03</meta>
        <meta key="Probe_energy" type="Quantity" unit="keV">10.00</meta>
        <meta key="Probe_current" type="Quantity" unit="A">2.000x10^8</meta>
        <meta key="Analyser_mode" type="String">CRR</meta>
        <meta key="Analyser_pass_energy" type="Quantity" unit="eV"></meta>
        <meta key="Abscissa_start" type="Quantity" unit="eV">0.00</meta>
        <meta key="Abscissa_end" type="Quantity" unit="eV">2500.00</meta>
        <meta key="Abscissa_increment" type="Quantity" unit="eV">1.00</meta>
        <meta key="Collection_time" type="Quantity" unit="ms">30</meta>
        <meta key="Number_of_scans" type="Numeric">20</meta>
        <meta key="Probe_scan_mode" type="String">Spot</meta>
        <meta key="Probe_diameter" type="Quantity" unit="um">10</meta>
        <meta key="Upper_left_x_coordinate" type="Numeric">0</meta>
        <meta key="Upper_left_y_coordinate" type="Numeric">0</meta>
        <meta key="Lower_right_x_coordinate" type="Numeric">63</meta>
        <meta key="Lower_right_y_coordinate" type="Numeric">-63</meta>
        <meta key="Probe_polar_angle_to_sample_normal" type="Quantity" unit="deg">45.0</meta>
        <meta key="Comment" type="String">Ag e=10kV M5 45deg During  Sputter Ar0.5kV</meta>
        <meta key="Neutralization_active_mode" type="String">inactive</meta>
        <meta key="Data_type" type="String">Wide</meta>
        <meta key="Analysis_chamber_pressure_when_measurement_finished" type="Quantity" unit="Pa">2.80x10^(-7)</meta>
        <column_num>1</column_num>
        <column_name>condition</column_name>
</metadata>