SST Lab Dokuwiki Header
内容へ移動
@surface
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
トレース:
script:traj2xyz
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== traj2xyz ====== <code python> #!/usr/bin/env python import os import tempfile from optparse import OptionParser from ase.io.trajectory import PickleTrajectory from ase.io import write cmd = OptionParser(usage = '%prog input_traj_file output_xyz_file') (opt, argv) = cmd.parse_args() if len(argv) != 2: cmd.print_help() raise SystemExit trajfile = argv[0] xyzfile = argv[1] traj1 = PickleTrajectory(trajfile) atoms1 = [] for it in traj1: atoms1.append(it) write(xyzfile, images = atoms1, format = 'xyz', comment = trajfile) </code> ===== Usage ===== <code sh> $ traj2xyz usage: input_traj_file output_xyz_file $ </code>
script/traj2xyz.txt
· 最終更新: 2022/08/23 13:34 by
127.0.0.1
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ