SWDatabase
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Variables
test_read_adapt_gong_date Namespace Reference

Variables

string help_message
 
tuple date_min = datetime.datetime(2019,7,1)
 
 date_max = module_common.utc_today
 
 tmp = date_min
 
string axis_name_y = 'Latitude'
 
string axis_name_x = 'Carrington Longitude'
 
int axis_size = 10
 
string axis_color = 'k'
 
int dphi = 40
 
list xtick_loc = [ i*dphi for i in range(0,int(360./dphi)+1) ]
 
list xtick_label = [ str(int(xtick_loc[i])) for i in range(0,len(xtick_loc)) ]
 
list ytick_loc = [ -90,-80,-60,-40,-20,0,20,40,60,80,90 ]
 
list ytick_label = [ str(int(ytick_loc[i])) for i in range(0,len(ytick_loc)) ]
 
tuple folder_test = os.path.join('dir.test','TEST')
 
tuple fig_size = (12,6)
 
int fig_resolution = 100
 
 delta = date_max-date_min
 
 ndays = delta.days
 
list dates = [ date_min + i*datetime.timedelta(days=1) for i in range(0,ndays+1) ]
 
tuple date_in = module_timespace.Time()
 
tuple fig = plt.figure(num=1,figsize=fig_size,dpi=fig_resolution)
 
string map2D_type = 'NSO'
 NSO Read the file. More...
 
string mag_table = 'OBS_MAPS_NSO'
 
tuple mag_db = database_map2D.time2map(mag_table,date_in)
 
tuple magmap_path = os.path.join(mag_db['dirname'],mag_db['filename'])
 
tuple magmap_data = interface_read_map2D.read(mag_table,magmap_path)
 
tuple sub = plt.subplot(221)
 
tuple img = plot_common.map2D(sub,mag_table,magmap_data,mag_db['vmin'],mag_db['vmax'],1)
 
tuple eq = plot_common.equator(sub,'black')
 
tuple min_value = np.nanmin(magmap_data.data)
 
tuple max_value = np.nanmax(magmap_data.data)
 
tuple mean_value = np.nanmean(magmap_data.data)
 
string command = 'eog %s/test_*.png'
 

Variable Documentation

string test_read_adapt_gong_date.axis_color = 'k'
string test_read_adapt_gong_date.axis_name_x = 'Carrington Longitude'
string test_read_adapt_gong_date.axis_name_y = 'Latitude'
int test_read_adapt_gong_date.axis_size = 10
string test_read_adapt_gong_date.command = 'eog %s/test_*.png'
tuple test_read_adapt_gong_date.date_in = module_timespace.Time()
list test_read_adapt_gong_date.date_max = module_common.utc_today
tuple test_read_adapt_gong_date.date_min = datetime.datetime(2019,7,1)
list test_read_adapt_gong_date.dates = [ date_min + i*datetime.timedelta(days=1) for i in range(0,ndays+1) ]
test_read_adapt_gong_date.delta = date_max-date_min
int test_read_adapt_gong_date.dphi = 40
tuple test_read_adapt_gong_date.eq = plot_common.equator(sub,'black')
tuple test_read_adapt_gong_date.fig = plt.figure(num=1,figsize=fig_size,dpi=fig_resolution)
int test_read_adapt_gong_date.fig_resolution = 100
tuple test_read_adapt_gong_date.fig_size = (12,6)
tuple test_read_adapt_gong_date.folder_test = os.path.join('dir.test','TEST')
string test_read_adapt_gong_date.help_message
Initial value:
1 = """
2 Usage :\n
3 ./test_read_adapt_gong_date.py
4 [-h] : brief help
5 [d1 d2] : from date d1 to d2 with format YYYYMMDD
6 """
tuple test_read_adapt_gong_date.img = plot_common.map2D(sub,mag_table,magmap_data,mag_db['vmin'],mag_db['vmax'],1)
tuple test_read_adapt_gong_date.mag_db = database_map2D.time2map(mag_table,date_in)
string test_read_adapt_gong_date.mag_table = 'OBS_MAPS_NSO'
tuple test_read_adapt_gong_date.magmap_data = interface_read_map2D.read(mag_table,magmap_path)
tuple test_read_adapt_gong_date.magmap_path = os.path.join(mag_db['dirname'],mag_db['filename'])
string test_read_adapt_gong_date.map2D_type = 'NSO'

NSO Read the file.

ADAPT Read the file.

tuple test_read_adapt_gong_date.max_value = np.nanmax(magmap_data.data)
tuple test_read_adapt_gong_date.mean_value = np.nanmean(magmap_data.data)
tuple test_read_adapt_gong_date.min_value = np.nanmin(magmap_data.data)
test_read_adapt_gong_date.ndays = delta.days
tuple test_read_adapt_gong_date.sub = plt.subplot(221)
test_read_adapt_gong_date.tmp = date_min
list test_read_adapt_gong_date.xtick_label = [ str(int(xtick_loc[i])) for i in range(0,len(xtick_loc)) ]
list test_read_adapt_gong_date.xtick_loc = [ i*dphi for i in range(0,int(360./dphi)+1) ]
list test_read_adapt_gong_date.ytick_label = [ str(int(ytick_loc[i])) for i in range(0,len(ytick_loc)) ]
list test_read_adapt_gong_date.ytick_loc = [ -90,-80,-60,-40,-20,0,20,40,60,80,90 ]