You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>>a=vcs.init()
>>>importcdms2>>>f=cdms2.open(vcs.sample_data+'/clt.nc')
>>>v=f('v') # use the data file to create a cdms2 slab>>>u=f('u') # use the data file to create a cdms2 slab>>>png_files= [] # for saving file names to make the mpeg>>>foriinrange(10): # create a number of pngs to use for an mpeg
... a.clear()
... if (i%2):
... a.plot(u,v)
... else:
... a.plot(v,u)
... a.png('my_png__%i'%i)
... png_files.append('my_png__%i.png'%i)
>>>a.ffmpeg('mymovie.mpeg',png_files) # generates from list of filesTrue>>>a.ffmpeg('mymovie.mpeg',files="my_png__[0-9]*\.png") # generate from files with name matching regexTrue>>>a.ffmpeg('mymovie.mpeg',png_files,bitrate=512) # generates mpeg at 512kbitTrue>>>a.ffmpeg('mymovie.mpeg',png_files,rate=50) # generates movie with 50 frame per secondTrue
I'm not sure if I'm using the regex functionality correctly or if it even works, but it looks like test_file isn't being declared before its value is checked.
The text was updated successfully, but these errors were encountered:
@doutriaux1 @chaosphere2112
Given the following doctest:
I'm getting the exception:
I'm not sure if I'm using the regex functionality correctly or if it even works, but it looks like
test_file
isn't being declared before its value is checked.The text was updated successfully, but these errors were encountered: