Functions | |
def | get_euv2carmap_sdosta_png |
Variables | |
string | help_message |
int | wavelength = 171 |
list | date_min = interface_read_map2D.info['SDOSTA' + '%3d'%(wavelength)] |
list | date_max = interface_read_map2D.info['SDOSTA' + '%3d'%(wavelength)] |
tmp = date_min | |
string | map2D_type = 'SDOSTA' |
string | fetch_type = 'EUV2CARMAP_SDOSTA' |
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_ref = os.path.join('dir.test','REF_SDOSTA'+'%3d'%(wavelength)) |
tuple | folder_test = os.path.join('dir.test','TEST_SDOSTA'+'%3d'%(wavelength)) |
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 | fig = plt.figure(num=1,figsize=fig_size,dpi=fig_resolution) |
tuple | magmap_path = interface_read_map2D.date2map(map2D_type,date) |
EUV2CARMAP DB Read the file. More... | |
tuple | magmap_data = interface_read_map2D.read(map2D_type,magmap_path) |
tuple | min_value = np.nanmin(magmap_data.data) |
tuple | max_value = np.nanmax(magmap_data.data) |
tuple | mean_value = np.nanmean(magmap_data.data) |
tuple | sub = plt.subplot(222) |
tuple | img = plot_common.map2D(sub,map2D_type,magmap_data,1) |
tuple | eq = plot_common.equator(sub,'black') |
tuple | remote_path = get_euv2carmap_sdosta_png(date,wavelength) |
SDOSTA193 REF Download and plot reference image. More... | |
tuple | sftp = module_toolbox_file.init_sftp(interface_fetch_map2D.info[fetch_type]['website'],interface_fetch_map2D.info[fetch_type]['user'],port = interface_fetch_map2D.info[fetch_type]['port']) |
tuple | imgplot = sub.imshow(img) |
def test_read_euv2carmap_sdosta_date.get_euv2carmap_sdosta_png | ( | date, | |
wavelength | |||
) |
Find in EUV2CARMAP program the jpg corresponding to the date. Return its complete url.
string test_read_euv2carmap_sdosta_date.axis_color = 'k' |
string test_read_euv2carmap_sdosta_date.axis_name_x = 'Carrington Longitude' |
string test_read_euv2carmap_sdosta_date.axis_name_y = 'Latitude' |
int test_read_euv2carmap_sdosta_date.axis_size = 10 |
list test_read_euv2carmap_sdosta_date.date_max = interface_read_map2D.info['SDOSTA' + '%3d'%(wavelength)] |
tuple test_read_euv2carmap_sdosta_date.date_min = interface_read_map2D.info['SDOSTA' + '%3d'%(wavelength)] |
list test_read_euv2carmap_sdosta_date.dates = [ date_min + i*datetime.timedelta(days=1) for i in range(0,ndays+1) ] |
int test_read_euv2carmap_sdosta_date.dphi = 40 |
tuple test_read_euv2carmap_sdosta_date.eq = plot_common.equator(sub,'black') |
string test_read_euv2carmap_sdosta_date.fetch_type = 'EUV2CARMAP_SDOSTA' |
tuple test_read_euv2carmap_sdosta_date.fig = plt.figure(num=1,figsize=fig_size,dpi=fig_resolution) |
int test_read_euv2carmap_sdosta_date.fig_resolution = 100 |
tuple test_read_euv2carmap_sdosta_date.fig_size = (12,6) |
tuple test_read_euv2carmap_sdosta_date.folder_ref = os.path.join('dir.test','REF_SDOSTA'+'%3d'%(wavelength)) |
tuple test_read_euv2carmap_sdosta_date.folder_test = os.path.join('dir.test','TEST_SDOSTA'+'%3d'%(wavelength)) |
string test_read_euv2carmap_sdosta_date.help_message |
tuple test_read_euv2carmap_sdosta_date.img = plot_common.map2D(sub,map2D_type,magmap_data,1) |
tuple test_read_euv2carmap_sdosta_date.imgplot = sub.imshow(img) |
tuple test_read_euv2carmap_sdosta_date.magmap_data = interface_read_map2D.read(map2D_type,magmap_path) |
tuple test_read_euv2carmap_sdosta_date.magmap_path = interface_read_map2D.date2map(map2D_type,date) |
EUV2CARMAP DB Read the file.
string test_read_euv2carmap_sdosta_date.map2D_type = 'SDOSTA' |
tuple test_read_euv2carmap_sdosta_date.max_value = np.nanmax(magmap_data.data) |
tuple test_read_euv2carmap_sdosta_date.mean_value = np.nanmean(magmap_data.data) |
tuple test_read_euv2carmap_sdosta_date.min_value = np.nanmin(magmap_data.data) |
test_read_euv2carmap_sdosta_date.ndays = delta.days |
tuple test_read_euv2carmap_sdosta_date.remote_path = get_euv2carmap_sdosta_png(date,wavelength) |
SDOSTA193 REF Download and plot reference image.
tuple test_read_euv2carmap_sdosta_date.sftp = module_toolbox_file.init_sftp(interface_fetch_map2D.info[fetch_type]['website'],interface_fetch_map2D.info[fetch_type]['user'],port = interface_fetch_map2D.info[fetch_type]['port']) |
tuple test_read_euv2carmap_sdosta_date.sub = plt.subplot(222) |
test_read_euv2carmap_sdosta_date.tmp = date_min |
int test_read_euv2carmap_sdosta_date.wavelength = 171 |
list test_read_euv2carmap_sdosta_date.xtick_label = [ str(int(xtick_loc[i])) for i in range(0,len(xtick_loc)) ] |
list test_read_euv2carmap_sdosta_date.ytick_label = [ str(int(ytick_loc[i])) for i in range(0,len(ytick_loc)) ] |
list test_read_euv2carmap_sdosta_date.ytick_loc = [ -90,-80,-60,-40,-20,0,20,40,60,80,90 ] |