makevestafile スクリプト

単位格子ベクトルが互いに直交しない場合、ASEのWriteCube関数がつくるGaussian CubeフォーマットのファイルをVESTAが正しく処理しないようなので、VESTAファイルを直接書き出すスクリプトを作成した。cubeファイルを埋め込む場合ここでつくったVESTAファイルと埋め込まれたCUBEファイルは必ず同じディレクトリになければならない。VESTAファイルを直接テキストエディタで開きCUBEファイルの名前を相対パス名で書けば任意の場所にCUBEファイルをおくこともできる。

使い方

$ makevestafile 
usage: makevestafile [-e embeded_cube_file] input_nc_file output_vesta_file
 
options:
  -h, --help            show this help message and exit
  -eembeded_cube_file, --embed=embeded_cube_file
                        Embed the embeded_cube_file in the output_vesta_file.