Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 27 lines (21 sloc) 0.63 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
import sys, os
from movierot import Movie

def brightmax(i):
    """
Smoothly varying brightness with time so that the movie looks good
"""
    return brightmax0/(1.0+(float(i)/50)**2)

brightmax0 = 2.e8

# Parse command line arguments
execname = os.path.split(sys.argv[0])[-1]
try:
    runid = sys.argv[1]
    itime = int(sys.argv[2])
except IndexError, ValueError:
    print "Usage: %s RUNID ITIME" % execname
    exit

movie = Movie(runid=runid, movieid="tumble-%4.4i" % itime,
time=itime, nframes=72, verbose=1, force=0)

movie.brightmax = brightmax(itime)
movie.camera.set_steps(5.0, 5.0)
movie.makemovie()
Something went wrong with that request. Please try again.