ConnectTool
 All Classes Namespaces Files Functions Variables Pages
Namespaces | Variables
make_video.py File Reference

Namespaces

 make_video
 Convert some connectivity images into a video.
 

Variables

int make_video.ndays_past = 10
 
tuple make_video.log_id = module_io.open_log(__file__)
 
tuple make_video.time_0 = datetime.datetime.today()
 
string make_video.help_message
 
list make_video.scrafts = []
 
string make_video.background = 'mag'
 
 make_video.perihelion = False
 
 make_video.orbit = False
 
int make_video.n_perihelion = -1
 
int make_video.n_orbit = -1
 
tuple make_video.error_hmodel = module_io.check_hmodel(module_io.hmodel )
 
tuple make_video.error_cmodel = module_io.check_cmodel(module_io.cmodel )
 
tuple make_video.error_magtype = module_io.check_magtype(module_io.magtype)
 
tuple make_video.error_reftime = module_io.check_reftime(module_io.reftime)
 
dictionary make_video.error_scraft = {}
 
dictionary make_video.sc_ref = {}
 
tuple make_video.date_in = module_timespace.Time()
 
tuple make_video.video_dir = module_io.output_videodir()
 
tuple make_video.png2mp4_log_file = os.path.join(video_dir,'log_file')
 
tuple make_video.png2mp4_err_file = os.path.join(video_dir,'err_file')
 
tuple make_video.video_name = module_io.output_globalname(module_io.hmodel,module_io.cmodel,module_io.reftime,scraft,module_io.magtype)
 
list make_video.date_begin = module_orbito.perihelion[sc_ref[scraft]]
 
list make_video.date_end = module_orbito.perihelion[sc_ref[scraft]]
 
 make_video.delta = date_end-date_begin
 
 make_video.ndays = delta.days
 
list make_video.dates = [ date_begin + i*datetime.timedelta(days=1) for i in range(0,delta.days+1) ]
 
dictionary make_video.error_db = {}
 
dictionary make_video.error_background_mag = {}
 
dictionary make_video.error_background_euv171 = {}
 
dictionary make_video.error_background_euv193 = {}
 
dictionary make_video.error_layer_frame = {}
 
dictionary make_video.error_layer_connectivity = {}
 
dictionary make_video.error_layer_subpoint = {}
 
dictionary make_video.error_layer_hcs = {}
 
dictionary make_video.error_layer_visible_disk = {}
 
dictionary make_video.simu_db = {}
 
dictionary make_video.path_background_mag = {}
 
dictionary make_video.path_background_euv171 = {}
 
dictionary make_video.path_background_euv193 = {}
 
dictionary make_video.path_layer_frame = {}
 
dictionary make_video.path_layer_connectivity = {}
 
dictionary make_video.path_layer_subpoint = {}
 
dictionary make_video.path_layer_hcs = {}
 
dictionary make_video.path_layer_visible_disk = {}
 
dictionary make_video.path_image = {}
 
tuple make_video.results
 
 make_video.present_folder = True
 
string make_video.command = ''
 Remove date with errors for date in dates[:]: if error_db[date].error or error_layer_frame[date].error: dates.remove(date) log_id.write(' s from list'date) If errors and no more valid date, get out! if dates == []: log_id.write('No valid date for Sc/Planet s, skip it. More...
 
tuple make_video.time_tmp = module_timespace.Time()
 
list make_video.layers = []
 
tuple make_video.ifile = open(png2mp4_log_file,'r')
 
tuple make_video.lines = ifile.readlines()
 
tuple make_video.time_2 = datetime.datetime.today()