Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (21 sloc) 0.781 kB
from movierot import Movie
def brightmax(i):
"""
Smoothly varying brightness with time so that the movie looks good
"""
return brightmax0*(1.0+(float(i)/30)**2)/(1.0+(float(i)/50)**3)
brightmax0 = 1.e6
itime = 393
n = 9
dth = 360.0/n
movie = Movie(runid="t50m32-weak-dm0", movieid="tumble%4.4i" % itime,
time=itime, nframes=n, verbose=1, force=1) # only recreate images, not maps
movie.brightmax = brightmax(itime)
movie.camera.set_steps(dth, dth)
movie.makemovie()
movie = Movie(runid="t50m32-weak-zerob-e01", movieid="tumble%4.4i" % itime,
time=itime, nframes=n, verbose=1, force=1) # only recreate images, not maps
movie.brightmax = brightmax(itime)
movie.camera.set_angles(360.0, 360.0)
movie.camera.set_steps(dth, dth)
movie.makemovie()
Jump to Line
Something went wrong with that request. Please try again.