AES[JEOL]¶
フォルダに含まれるファイルの説明¶
プログラム名 |
説明 |
|---|---|
jamp2csv.exe |
JEOL製変換ツール(データファイルが格納されたフォルダからtxtファイルを作成するツール) |
jampcsv2graph.py |
csvファイルからスペクトルの図を作成するツール |
jamptxt2rawpara.py |
txtファイルから装置出力パラメータを抽出するツール |
jamprawpara2primary.py |
装置出力パラメータファイルから主要パラメータを抽出するツール |
jamp_rawpara_templateXML.xml |
装置出力パラメータ抽出に使用するテンプレートファイル |
jamp_primarypara_templateXML.xml |
主要パラメータ抽出に使用するテンプレートファイル |
Jupyter Notebook での実行¶
Anaconda Prompt を立ち上げ、ダウンロードディレクトリ配下の JEOL_AES_tools に移動します。
cd [download directory]/JEOL_AES_tools
Jupyter Notebook を立ち上げます。
jupyter notebook
Jupyter notebook から aes_jeol.ipynb を利用すると簡単に実行できます。
Jupyter notebook での使い方は AES(JEOL) for jupyter notebook を参照してください。
コマンド¶
.A形式のデータファイルが格納されたフォルダをテキストファイルに変換します。jamp2csv.exe Filename.A Filename.A.csv
カレントディレクトリに
Filename.A.csvを出力します。
Note
jamp2csv.exe は Windows用実行ファイルです。
Filename.A.csv形式のファイルから画像を作成します。python jampcsv2graph.py Filename.A.csv
カレントディレクトリに
Filename.A.pngを出力します。
Note
narrowスペクトルの場合は,_blockN.png(N=0,1,…) と測定領域数に対応するpngファイルを生成します。
単一測定である場合には Filename.A.png と Filename.A_block0.png の同一のファイルが出力されます。
Filename.A/paraのファイルから装置出力パラメータを抽出し、raw.xmlを出力します。python jamptxt2rawpara.py Filename.A/para jamp_rawpara_templateXML.xml raw.xml
装置出力パラメータファイル
raw.xmlから主要パラメータを抽出し、primary.xmlに出力します。python jamprawpara2primary.py raw.xml jamp_primarypara_templateXML.xml primary.xml
Description of files in this folder.¶
Name of program |
Desprition |
|---|---|
jamp2csv.exe |
a translation tool made by JEOL.(a tool that makes a txt file from data file stored in the folder.) |
jampcsv2graph.py |
a tool that makes a spectral diagram from a csv file. |
jamptxt2rawpara.py |
a tool that extracts device output parameters from a txt file. |
jamprawpara2primary.py |
a tool that extracts primary parameters from a device output parameter file. |
jamp_rawpara_templateXML.xml |
a template file that is used for the extraction of device output parameters. |
jamp_primarypara_templateXML.xml |
a template file that is used for the extraction of primary parameters. |
Execution of script by Jupyter Notebook.¶
Launch anaconda prompt window and move to JEOL_AES_tools directory located below the download directory.
cd [download directory]/JEOL_AES_tools
There, launch Jupyter Notebook.
jupyter notebook
It is possible and also easier to use aes_jeol.ipynb on Jupyter Notebook to execute of the program.
Please refer to AES(JEOL) for jupyter Notebook for how to excute it by Jupyter Notebook.
Using commands on command prompt.¶
This executable file converts a file with
.Atype extension into a text file with.csvextension.jamp2csv.exe Filename.A Filename.A.csv
This outputs
Filename.A.csvin the current directory.
Note
jamp2csv.exe is an execuatble file only for Windows.
This creates an image from
Filename.A.csvfile.python jampcsv2graph.py Filename.A.csv
This outputs
Filename.A.pngin the current directory.
Note
In case of narrow spectrum device, this generates _blockN.png files(for N=0,1,…) and png files corresponding to the number of intervals in the measurement frequency.
In case of single measurement, Filename.A.png and Filename.A_block0.png are generated once and the same.
This scirpt outputs
raw.xmlfile after extracting device output parameters fromFilename.A/parafile.python jamptxt2rawpara.py Filename.A/para jamp_rawpara_templateXML.xml raw.xml
This script outputs
primary.xmlfile after extracting primary parameters from a device output parameter fileraw.xml.python jamprawpara2primary.py raw.xml jamp_primarypara_templateXML.xml primary.xml