rbsp_efw_init
!rbsp_efw.user_agent = ''
probe = 'a'
date = '2012-10-13'
duration = 1
timespan, date, duration
integration=0
get_support_data = 0
type='calibrated'
datatype = ['esvy',$
'vsvy',$
'magsvy']
rbsp_load_efw_waveform,probe=probe,$
datatype=datatype,$
type=type,$
get_support_data=get_support_data,$
coord='uvw'
rbsp_load_efw_burst_times,probe=sc
rbsp_load_efw_esvy_mgse,probe=probe
store_data,['*ccsds_data*'],/delete
rbsp_downsample,'rbsp'+probe+'_efw_vsvy',1/(6*11.),/nochange
rbsp_downsample,'rbsp'+probe+'_efw_esvy_mgse',1/(6*11.),/nochange
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']
split_vec,'rbsp'+probe+'_efw_esvy_mgse'
options,['rbsp'+probe+'_efw_vsvy_V*','rbsp'+probe+'_efw_esvy_mgse*'],'ysubtitle',''
options,'rbsp'+probe+'_efw_vsvy_V*','labels',''
options,'rbsp'+probe+'_efw_esvy_mgse*',labflag=0
options,'rbsp'+probe+'_efw_vsvy_V*',labflag=0
options,'rbsp'+probe+'_efw_esvy_mgse_x','ytitle','RBSP-'+strupcase(probe)+'!CEsvy!CX MGSE!C[mV/m]'
options,'rbsp'+probe+'_efw_esvy_mgse_y','ytitle','RBSP-'+strupcase(probe)+'!CEsvy!CY MGSE!C[mV/m]'
options,'rbsp'+probe+'_efw_esvy_mgse_z','ytitle','RBSP-'+strupcase(probe)+'!CEsvy!CZ MGSE!C[mV/m]'
options,'rbsp'+probe+'_efw_vsvy_V1','ytitle','RBSP-'+strupcase(probe)+'!CVsvy!CV1!C[volts]'
options,'rbsp'+probe+'_efw_vsvy_V2','ytitle','RBSP-'+strupcase(probe)+'!CVsvy!CV2!C[volts]'
options,'rbsp'+probe+'_efw_vsvy_V3','ytitle','RBSP-'+strupcase(probe)+'!CVsvy!CV3!C[volts]'
options,'rbsp'+probe+'_efw_vsvy_V4','ytitle','RBSP-'+strupcase(probe)+'!CVsvy!CV4!C[volts]'
options,'rbsp'+probe+'_efw_vsvy_V5','ytitle','RBSP-'+strupcase(probe)+'!CVsvy!CV5!C[volts]'
options,'rbsp'+probe+'_efw_vsvy_V6','ytitle','RBSP-'+strupcase(probe)+'!CVsvy!CV6!C[volts]'
options,'rbsp'+probe+'_efw_esvy_mgse_*','ztitle','RBSP'+probe+'!CEFW'
options,'rbsp'+probe+'_efw_vsvy_V*','ztitle','RBSP'+probe+'!CEFW'
options,['rbsp'+probe+'_efw_vb1_available','rbsp'+probe+'_efw_vb2_available'],'colors',0
charsz_plot = 0.8
charsz_win = 1.2
!p.charsize = charsz_win
tplot_options,'xmargin',[20.,15.]
tplot_options,'ymargin',[3,6]
tplot_options,'xticklen',0.08
tplot_options,'yticklen',0.02
tplot_options,'xthick',2
tplot_options,'ythick',2
tplot_options,'labflag',1
tplot_options,'title','RBSP'+strupcase(probe)+' voltages summary - ' + date
tplot,['rbsp'+probe+'_efw_*svy']
tplot_options,'title','RBSP'+strupcase(probe)+' single-ended waveform summary - ' + date
tplot,'rbsp'+probe+'_efw_vsvy_V*'
tplot_options,'title','RBSP'+strupcase(probe)+' Esvy waveform summary - ' + date
tplot,'rbsp'+probe+'_efw_esvy_E*'
tplot_options,'title','RBSP'+strupcase(probe)+' Esvy MGSE summary - ' + date
tplot,['rbsp'+probe+'_efw_esvy_mgse_y',$
'rbsp'+probe+'_efw_esvy_mgse_z']
tplot,'rbsp'+probe+'_efw_magsvy_*'
tplot_options,'title','RBSP'+strupcase(probe)+' Burst quanities - ' + date
tplot,'rbsp'+probe+'_efw_*b1'
tplot,'rbsp'+probe+'_efw_*b2'
tplot,'rbsp'+probe+'_efw_eb1_*'
tplot,'rbsp'+probe+'_efw_vb1_V*'
tplot,'rbsp'+probe+'_efw_mscb1_*'
tplot,'rbsp'+probe+'_efw_eb2_*'
tplot,'rbsp'+probe+'_efw_vb2_V*'
tplot,'rbsp'+probe+'_efw_mscb2_*'
old_pcharsize=!p.charsize
!p.charsize=0.7
popen,'RBSP'+strupcase(probe)+'_waveform_summary_'+strcompress(date,/remove_all),/port
tplot_options,'title','RBSP'+strupcase(probe)+' waveform summary - ' + date
tplot,['rbsp'+probe+'_efw_*svy',$
'rbsp'+probe+'_efw_*b1',$
'rbsp'+probe+'_efw_*b2']
pclose
!p.charsize=old_pcharsize
end