pencil.visu.animate_slices_maketomovie

Functions

make_movie([field, datadir, proc, extension, format, ...])

read 2D slice files and assemble an animation in a mpg movie.

Module Contents

pencil.visu.animate_slices_maketomovie.make_movie(field='uu1', datadir='data/', proc=-1, extension='xz', format='native', tmin=0.0, tmax=1e+38, amin=0.0, amax=1.0, transform='', oldfile=False, norm=None, save=None, figsize=(16, 4), fps=12)

read 2D slice files and assemble an animation in a mpg movie.

Quickly written from the example at http://matplotlib.sourceforge.net/faq/howto_faq.html

Options:

field — which variable to slice datadir— path to data directory proc — an integer giving the processor to read a slice from extension — which plane of xy,xz,yz,Xz. for 2D this should be overwritten. format — endian. one of little, big, or native (default) tmin — start time tmax — end time amin — minimum value for image scaling amax — maximum value for image scaling transform — insert arbitrary numerical code to modify the slice norm — scales calar data save — directory to save file figsize — tuple containing the size of the figure fps — Frames per seconds for the video