18.11.2012 Views

ASE Manual Release 3.6.1.2825 CAMd - CampOS Wiki

ASE Manual Release 3.6.1.2825 CAMd - CampOS Wiki

ASE Manual Release 3.6.1.2825 CAMd - CampOS Wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER<br />

EIGHT<br />

FREQUENTLY ASKED QUESTIONS<br />

8.1 <strong>ASE</strong>-GUI<br />

See also the documantation for ag.<br />

8.1.1 How do I export images from a trajectory to png or pov files?<br />

With ag, you can choose File → Save, but this is not fun if you need to do it for many images. Here is how to do<br />

it on the command line for a number of images:<br />

ag images.traj@0 -o image0.pov<br />

ag images.traj@1 -o image1.pov<br />

ag images.traj@2 -o image2.pov<br />

If you have many images, it will be easier to do it using the Python interpreter:<br />

>>> from ase import *<br />

>>> for n, image in enumerate(read(’images.traj@:3’)):<br />

... write(’image%d.pov’ % n, image, run_povray=True, pause=False,<br />

... rotation=’-90x,10z’)<br />

Here, we also:<br />

Try:<br />

• run povray to generate png files<br />

• disable pausing between the images<br />

• set a rotation (choose View → Rotate ... in ag to select the best rotation angles)<br />

>>> help(write)<br />

to see all possibilities or read more here.<br />

8.2 General<br />

8.2.1 Citation: how should I cite <strong>ASE</strong>?<br />

If you find <strong>ASE</strong> useful in your research please cite:<br />

S. R. Bahn and K. W. Jacobsen<br />

An object-oriented scripting interface to a legacy electronic structure code<br />

Comput. Sci. Eng., Vol. 4, 56-66, 2002<br />

BibTex (doc/<strong>ASE</strong>.bib):<br />

179

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!