Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (27 sloc) 0.827 kb
from movierot import Movie
import sys, os
def brightmax(i):
"""
Smoothly varying brightness with time so that the movie looks good
This will have to be changed for the krum runs DONE 20 Jan 2008
"""
return brightmax0/(1.0+(float(i)/100))
# Parse command line arguments
execname = os.path.split(sys.argv[0])[-1]
try:
runid = sys.argv[1]
it1 = int(sys.argv[2])
it2 = int(sys.argv[3])
except IndexError, ValueError:
print "Usage: %s RUNID ITIME1 ITIME2" % execname
exit
if runid.find('krumx') >= 0:
Movie.boxsize = 40.0
brightmax0 = 5.e2
else:
Movie.boxsize = 20.0
brightmax0 = 4.e3
movie = Movie(runid=runid, movieid="evo",
time=it2, frame=1, nframes=it2-it1+1,
verbose=1, force=-1) # force=-1 means don't make anything but movie
movie.makemovie()
Jump to Line
Something went wrong with that request. Please try again.