rbsp_efw_init
probe = 'a b'
date = '2013-02-16'
duration = 1
timespan, date, duration
integration=0
get_support_data = 0
type='raw'
rbsp_load_efw_waveform, probe=probe, type=type, $
get_support_data=get_support_data
test_rbsp_efw_burst_times
rbsp_load_efw_spec, probe=probe, type=type, $
get_support_data=get_support_data, integration=integration
rbsp_load_efw_xspec, probe=probe,type=type, $
get_support_data=get_support_data, integration=integration
get_support_data=1
rbsp_load_efw_fbk, probe=probe, type=type, $
get_support_data=get_support_data, integration=integration
split_vec, 'rbsp?_efw_esvy', suffix='_'+['E12', 'E34', 'E56']
split_vec, 'rbsp?_efw_vsvy', suffix='_V'+['1','2','3','4','5','6']
split_vec, 'rbsp?_efw_magsvy', suffix='_'+['U', 'V', 'W']
split_vec, 'rbsp?_efw_eb1', suffix='_'+['E12', 'E34', 'E56']
split_vec, 'rbsp?_efw_vb1', suffix='_V'+['1','2','3','4','5','6']
split_vec, 'rbsp?_efw_mscb1', suffix='_'+['U', 'V', 'W']
split_vec, 'rbsp?_efw_eb2', suffix='_'+['E12DC', 'E34DC', 'E56DC', 'E12AC', $
'E34AC', 'E56AC', 'EDCpar', 'EDCprp', 'EACpar', 'EACprp']
split_vec, 'rbsp?_efw_vb2', suffix='_V'+['1','2','3','4','5','6']
split_vec, 'rbsp?_efw_mscb2', suffix='_'+['U', 'V', 'W', 'par', 'perp']
spec_sources=['E12AC', 'E56AC', 'SCMpar', 'SCMperp', 'SCMW', 'V1AC', 'V2AC']
units=' raw counts'
options, '*spec0', 'ztitle', spec_sources[0]+units
options, '*spec1', 'ztitle', spec_sources[1]+units
options, '*spec2', 'ztitle', spec_sources[2]+units
options, '*spec3', 'ztitle', spec_sources[3]+units
options, '*spec4', 'ztitle', spec_sources[4]+units
options, '*spec5', 'ztitle', spec_sources[5]+units
options, '*spec6', 'ztitle', spec_sources[6]+units
ylim, 'rbsp?_efw_64_spec*', 1, 64, 1
options,'rbsp?_efw_64_spec*','yticks',3
test_rbsp_efw_xspec_phase
ylim, 'rbsp?_efw_xspec*', 1, 64, 1
options,'rbsp?_efw_xspec*','yticks',3
fbk_sources=['E12DC', 'E34DC', 'E56DC', 'E12AC', 'E34AC', 'E56AC', $
'SCMU', 'SCMV', 'SCMW']
get_data,'rbspa_efw_fbk_7_fbk_7_select',data=a7select
get_data,'rbspa_efw_fbk_13_fbk_13_select',data=a13select
get_data,'rbspb_efw_fbk_7_fbk_7_select',data=b7select
get_data,'rbspb_efw_fbk_13_fbk_13_select',data=b13select
if is_struct(a7select) then $
a7_sources=[fbk_sources[median(a7select.y[*,0])], fbk_sources[median(a7select.y[*,1])] ] $
else a7_sources=['','']
if is_struct(a13select) then $
a13_sources=[fbk_sources[median(a13select.y[*,0])], fbk_sources[median(a13select.y[*,1])] ] $
else a13_sources=['','']
if is_struct(b7select) then $
b7_sources=[fbk_sources[median(b7select.y[*,0])], fbk_sources[median(b7select.y[*,1])] ] $
else b7_sources=['','']
if is_struct(b13select) then $
b13_sources=[fbk_sources[median(b13select.y[*,0])], fbk_sources[median(b13select.y[*,1])] ] $
else b13_sources=['','']
units='raw counts'
options,'rbspa_efw_fbk_7_fb1_av','ztitle',a7_sources[0]+'_avg '+units
options,'rbspa_efw_fbk_7_fb1_pk','ztitle',a7_sources[0]+'_peak '+units
options,'rbspa_efw_fbk_7_fb2_av','ztitle',a7_sources[1]+'_avg '+units
options,'rbspa_efw_fbk_7_fb2_pk','ztitle',a7_sources[1]+'_peak '+units
options,'rbspa_efw_fbk_13_fb1_av','ztitle',a13_sources[0]+'_avg '+units
options,'rbspa_efw_fbk_13_fb1_pk','ztitle',a13_sources[0]+'_peak '+units
options,'rbspa_efw_fbk_13_fb2_av','ztitle',a13_sources[1]+'_avg '+units
options,'rbspa_efw_fbk_13_fb2_pk','ztitle',a13_sources[1]+'_peak '+units
options,'rbspb_efw_fbk_7_fb1_av','ztitle',b7_sources[0]+'_avg '+units
options,'rbspb_efw_fbk_7_fb1_pk','ztitle',b7_sources[0]+'_peak '+units
options,'rbspb_efw_fbk_7_fb2_av','ztitle',b7_sources[1]+'_avg '+units
options,'rbspb_efw_fbk_7_fb2_pk','ztitle',b7_sources[1]+'_peak '+units
options,'rbspb_efw_fbk_13_fb1_av','ztitle',b13_sources[0]+'_avg '+units
options,'rbspb_efw_fbk_13_fb1_pk','ztitle',b13_sources[0]+'_peak '+units
options,'rbspb_efw_fbk_13_fb2_av','ztitle',b13_sources[1]+'_avg '+units
options,'rbspb_efw_fbk_13_fb2_pk','ztitle',b13_sources[1]+'_peak '+units
ylim, '*fbk_7*', 1, 7, 1
ylim, '*fbk_13*', 1, 13, 1
tplot_options, 'xmargin', [ 20., 15.]
options,'*','labflag',-1
svy_summary=['_efw_esvy_E12',$
'_efw_esvy_E34',$
'_efw_esvy_E56',$
'_efw_vsvy_V'+string(lindgen(6)+1, format='(I0)'),$
'_efw_magsvy_'+['U','V','W'] ]
spec_summary=['_efw_64_spec'+string(lindgen(7), format='(I0)')]
xspec_summary=['_efw_xspec_64_xspec0_src1',$
'_efw_xspec_64_xspec0_src2', $
'_efw_xspec_64_xspec0_phase', $
'_efw_xspec_64_xspec0_coh', $
'_efw_xspec_64_xspec1_src1',$
'_efw_xspec_64_xspec1_src2', $
'_efw_xspec_64_xspec1_phase', $
'_efw_xspec_64_xspec1_coh', $
'_efw_xspec_64_xspec2_src1',$
'_efw_xspec_64_xspec2_src2', $
'_efw_xspec_64_xspec2_phase', $
'_efw_xspec_64_xspec2_coh', $
'_efw_xspec_64_xspec2_src1',$
'_efw_xspec_64_xspec2_src2', $
'_efw_xspec_64_xspec3_phase', $
'_efw_xspec_64_xspec3_coh']
fbk_summary=['_efw_fbk_7_fb1_av',$
'_efw_fbk_7_fb1_pk',$
'_efw_fbk_7_fb2_av',$
'_efw_fbk_7_fb2_pk',$
'_efw_fbk_13_fb1_av',$
'_efw_fbk_13_fb1_pk',$
'_efw_fbk_13_fb2_av',$
'_efw_fbk_13_fb2_pk']
combo_summary=['_efw_esvy',$
'_efw_vsvy',$
'_efw_magsvy',$
'_efw_vb1_available',$
'_efw_vb2_available',$
'_efw_fbk_7_fb1_pk',$
'_efw_fbk_13_fb1_pk',$
'_efw_64_spec0',$
'_efw_64_spec1',$
'_efw_xspec_64_xspec1_phase',$
'_efw_xspec_64_xspec1_coh']
probeid='rbspa'
tplot_options,'title',strupcase(probeid)+' DAILY SUMMARY, '+date
tplot, probeid + combo_summary
probeid='rbspb'
tplot_options,'title',strupcase(probeid)+' DAILY SUMMARY, '+date
tplot, probeid + combo_summary
old_pcharsize=!p.charsize
!p.charsize=0.7
probeid='rbspa'
popen,strupcase(probeid)+'_DAILY_SUMMARY_'+strcompress(date,/remove_all),/port
tplot_options,'title',strupcase(probeid)+' DIALY SUMMARY, '+date
tplot, probeid + combo_summary
pclose
probeid='rbspb'
popen,strupcase(probeid)+'_DAILY_SUMMARY_'+strcompress(date,/remove_all),/port
tplot_options,'title',strupcase(probeid)+' DIALY SUMMARY, '+date
tplot, probeid + combo_summary
pclose
!p.charsize=old_pcharsize
end