AES(survey)[ULVAC-PHI]

フォルダに含まれるファイルの説明

プログラム名

説明

MPExport.exe

ULVAC-PHI製変換ツール(.spe,.proのファイルからtxtファイルを作成するツール)

phiaes_txt2csv.py

txtファイルからFND(Formatted Numerical Data)のcsvファイルを作成するツール

phiaes_csv2graph.py

FND(Formatted Numerical Data)のcsvファイルからスペクトルの図を作成するツール

phiaes_txt2rawXML.py

txtファイルから装置出力パラメータを抽出するツール

phiaes_raw_templateXML.xml

装置出力パラメータ抽出に使用するテンプレートファイル

phiaes_raw2primaryXML.py

装置出力パラメータファイルから主要パラメータを抽出するツール

phiaes_primary_templateXML.xml

主要パラメータ抽出に使用するテンプレートファイル

Jupyter Notebook での実行

Anaconda Prompt を立ち上げ、ダウンロードディレクトリ配下の PHI_AES_survey_tools に移動します。

cd [download directory]/PHI_AES_survey_tools

Jupyter notebook を立ち上げます。

jupyter notebook

Jupyter notebook から phi_aes_doc.ipynb を利用すると簡単に実行できます。

Jupyter notebook での使い方は AES(PHI) for jupyter notebook を参照してください。

コマンド

.spe 形式のファイルをテキストファイルに変換します。  :

MPExport.exe -Filename:"..\source\PHI_AES\Au_foil2.spe" -TSV

カレントディレクトリに Au_foil2.spe.txt を出力します。

Note

MPExport.exe は Windows用実行ファイルです。-Filename: の後に変換元のファイル名を記述します。

カレントディレクトリ以外の場所を指定する場合のパスは Windows の記述形式で指定します。  :

(例)..¥source¥Au_foil2.spe

その他のオプションについては、

MPExport.exe

を単体で実行して参照してください。

Warning

linuxなどで動作させる場合には、wine などのwindowアプリケーション対応ソフトを使用して動作させてください。

.txt 形式のファイルをフォーマットした数値データ .csv に変換します。

python phiaes_txt2csv.py "Au_foil2.txt"

カレントディレクトリに Au_foil2.csv を出力します。

Note

-h オプションをつけて実行すると、ヘルプを表示します。

python phiaes_txt2csv.py -h

.csv 形式のファイルから画像を作成します。

python phiaes_csv2graph.py "Au_foil2.csv"

カレントディレクトリに Au_foil2.png を出力します。

Note

ファイル名に日本語が含まれる場合、対応するフォントが存在しないとエラーとなり画像が作成されない場合があります。

.txt 形式のファイルから装置出力パラメータを抽出し、 raw.xml を出力します。

python phiaes_txt2rawXML.py "Au_foil2.txt" phiaes_raw_templateXML.xml raw.xml

Note

--stdout のオプションをつけると標準出力にも出力します。

python phiaes_txt2rawXML.py "Au_foil2.txt" phiaes_raw_templateXML.xml raw.xml --stdout

装置出力パラメータファイル raw.xml から主要パラメータを抽出し、 primary.xml に出力します。

python phiaes_raw2primaryXML.py raw.xml phiaes_primary_templateXML.xml primary.xml

Descriptions of files in this folder.

Name of program

Description.

MPExport.exe

a conversion tool made by ULVAC-PHI(this tool makes a txt file from .spe or .pro files)

phiaes_txt2csv.py

a tool that makes a FND(Formatted Numerical Data)csv file from a txt file.

phiaes_csv2graph.py

a tool makes a spectral diagram from a FND(Formatted Numerical Data)csv file.

phiaes_txt2rawXML.py

a tool extracts device output parameters from a txt file.

phiaes_raw_templateXML.xml

a template file used for the extraction of device output parameters.

phiaes_raw2primaryXML.py

a tool extracts primary parameters from a device output parameter file.

phiaes_primary_templateXML.xml

a template file that is used for extracting primary parameters.

Excution by Jupyter Notebook.

Launch anaconda prompt window and move to PHI_AES_survey_tools directory located below the download directory.

cd [download directory]/PHI_AES_survey_tools

Launch Jupyter notebook.

jupyter notebook

If you launch using phi_aes_doc.ipynb from Jupyter notebook, it may be easier.

Please refer to AES(PHI) for jupyter notebook for how to use it from Jupyter notebook.

Commands in command prompt.

This MPExport.exe file converts .spe type files to text files.

MPExport.exe -Filename:"..\source\PHI_AES\Au_foil2.spe" -TSV

This outputs Au_foil2.spe.txt in the current directory.

Note

MPExport.exe is an executable file only for Windows. -Filename: is followed by the path name of the file to be converted.

If you want to specify a location other than the current directory, please specify the path in such a way that Windows understands.

Example..\source\Au_foil2.spe

If you want to see other options, run a command alone.

MPExport.exe

This shows you other options.

Warning

If you are using Linux operating system, you have to use a compatibility layer like wine on your host system in order to run Windows’ applications.

This script converts a .txt text file to a .csv file where data are formatted numerically.

python phiaes_txt2csv.py "Au_foil2.txt"

This outputs Au_foil2.csv in the current directory.

Note

-h option,when added at the end in the command-line as follows,displays help messeges.

python phiaes_txt2csv.py -h

This script creates an image from a .csv file.

python phiaes_csv2graph.py "Au_foil2.csv"

This outputs Au_foil2.png in the current directory.

Note

If there contain some Japanese characters in a file name, and if there are not corresponding fonts installed, an error might be raised for the command and the image might not be produced in the directory.

This outputs a raw.xml file after extracting device output parameters from a .txt file.

python phiaes_txt2rawXML.py "Au_foil2.txt" phiaes_raw_templateXML.xml raw.xml

Note

--stdout option also redirects the output stream to the standard output.

python phiaes_txt2rawXML.py "Au_foil2.txt" phiaes_raw_templateXML.xml raw.xml --stdout

This outputs as a primary.xml file after extracting primary parameters from a device output parameter file raw.xml .

python phiaes_raw2primaryXML.py raw.xml phiaes_primary_templateXML.xml primary.xml