ConnectTool
 All Classes Namespaces Files Functions Variables Pages
Variables
view_images Namespace Reference

For a given simulation, merge all layers and show the final complete image in dir.test/TEST. More...

Variables

 log_id = None
 
tuple folder_test = os.path.join('dir.test','TEST')
 
string help_message
 
list scrafts = []
 
string background = 'mag'
 
tuple error_hmodel = module_io.check_hmodel(module_io.hmodel )
 
tuple error_cmodel = module_io.check_cmodel(module_io.cmodel )
 
tuple error_magtype = module_io.check_magtype(module_io.magtype)
 
tuple error_reftime = module_io.check_reftime(module_io.reftime)
 
dictionary error_scraft = {}
 
tuple date_in = module_timespace.Time()
 
tuple error_db = module_io.ErrorClass(False,'')
 
tuple results
 
 present_folder = True
 
list simu_db = results[0]
 
tuple image_out = os.path.join(folder_test,'final_%s.png'%(scraft))
 
list images_in = []
 
string command = 'eog %s/final_*.png'
 

Detailed Description

For a given simulation, merge all layers and show the final complete image in dir.test/TEST.

Author
M. Indurain
Date
2019

Variable Documentation

string view_images.background = 'mag'
string view_images.command = 'eog %s/final_*.png'
tuple view_images.date_in = module_timespace.Time()
tuple view_images.error_cmodel = module_io.check_cmodel(module_io.cmodel )
tuple view_images.error_db = module_io.ErrorClass(False,'')
tuple view_images.error_hmodel = module_io.check_hmodel(module_io.hmodel )
tuple view_images.error_magtype = module_io.check_magtype(module_io.magtype)
tuple view_images.error_reftime = module_io.check_reftime(module_io.reftime)
dictionary view_images.error_scraft = {}
tuple view_images.folder_test = os.path.join('dir.test','TEST')
string view_images.help_message
Initial value:
1 = """
2 For a given simulation, merge all layers and show the final complete image in dir.test/TEST.\n
3 Usage :\n
4 python dir.test/view_images.py -sc sc_name -hmodel heliospheric_model -cmodel coronal_model -magtype magnetic_type -reftime reference_time -sc sc_name -y year -m month -d day -H hour --mag --171 --193
5 [-h] : brief help
6 scName : SC/Planet name. May have multiple names (-sc Name1 -sc Name2...). PSP,STA,EARTH,ALL. Default PSP
7 heliospheric_model : Heliospheric model. PARKER. Default PARKER.
8 coronal_model : Coronal model. PFSS,MFM. Default PFSS.
9 magnetic_type : Type of magnetic data. WSO,NSO,ADAPT for PFSS coronal model. Default WSO. DUMFRIC for MFM coronal model. Default DUMFRIC.
10 reference_time : Referential time. SCTIME,SUNTIME. Default SCTIME.
11 year : year in UTC. Default today UTC year.
12 month : month in UTC. Default today UTC month.
13 day : day in UTC. Default today UTC day.
14 hour : hour in UTC. Default 0.
15 --mag : background is magnetic data (default)
16 --171 : background is euv171 map
17 --193 : background is euv193 map
18 """
tuple view_images.image_out = os.path.join(folder_test,'final_%s.png'%(scraft))
list view_images.images_in = []
view_images.log_id = None
view_images.present_folder = True
tuple view_images.results
Initial value:
1 = module_db.find_element(module_db.database_table,connector,cursor,\
2  scraft = scraft,\
3  heliospheric_model = module_io.hmodel,\
4  coronal_model = module_io.cmodel,\
5  reference_time = module_io.reftime,\
6  magnetogram_type = module_io.magtype,\
7  date = date_in.datetime.strftime('%Y-%m-%d %H:%M:%S'),\
8  orderby='ASC',ordercol='operation_mode_id')
def find_element
Find an element in a table.
Definition: module_db.py:257
list view_images.scrafts = []
list view_images.simu_db = results[0]