rbsp_efw_init
!rbsp_efw.user_agent = ''
probe = 'a'
date = '2012-10-13'
duration = 1
timespan, date, duration
integration=0
get_support_data = 0
bins = 64
suffix = ''
type='calibrated'
rbsp_load_efw_spec,$
probe=probe,$
type=type,$
get_support_data=get_support_data,$
integration=integration
rbsp_load_efw_burst_times,probe=probe
options,'rbsp'+probe+'_efw_vb1_available','colors',0
options,'rbsp'+probe+'_efw_vb2_available','colors',0
speclist = tnames('*_spec*')
rbsp_add_fce2spec,speclist,probe
suffix = '_fce'
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)+' SPEC '+strtrim(bins,2)+' - '+date
tplot,['rbsp'+probe+'_efw_64_spec0'+suffix,$
'rbsp'+probe+'_efw_64_spec1'+suffix,$
'rbsp'+probe+'_efw_64_spec2'+suffix,$
'rbsp'+probe+'_efw_64_spec3'+suffix,$
'rbsp'+probe+'_efw_64_spec4'+suffix,$
'rbsp'+probe+'_efw_64_spec5'+suffix,$
'rbsp'+probe+'_efw_64_spec6'+suffix,$
'rbsp'+probe+'_efw_vb1_available',$
'rbsp'+probe+'_efw_vb2_available']
old_pcharsize=!p.charsize
!p.charsize=0.6
popen,'RBSP'+strupcase(probe)+'_SPEC_summary_'+strcompress(date,/remove_all),/port
tplot_options,'title','RBSP'+strupcase(probe)+' SPEC '+strtrim(bins,2)+' - '+date
tplot,['rbsp'+probe+'_efw_64_spec0'+suffix,$
'rbsp'+probe+'_efw_64_spec1'+suffix,$
'rbsp'+probe+'_efw_64_spec2'+suffix,$
'rbsp'+probe+'_efw_64_spec3'+suffix,$
'rbsp'+probe+'_efw_64_spec4'+suffix,$
'rbsp'+probe+'_efw_64_spec5'+suffix,$
'rbsp'+probe+'_efw_64_spec6'+suffix,$
'rbsp'+probe+'_efw_vb1_available',$
'rbsp'+probe+'_efw_vb2_available']
pclose
!p.charsize=old_pcharsize
end