;+ ; MMS EPD-EIS quick look plots crib sheet ; ; do you have suggestions for this crib sheet? ; please send them to egrimes@igpp.ucla.edu ; ; $LastChangedBy: crussell $ ; $LastChangedDate: 2015-11-12 14:30:48 -0800 (Thu, 12 Nov 2015) $ ; $LastChangedRevision: 19355 $ ; $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/spedas/examples/mms_load_eis_crib_qlplots.pro $ ;- probe = '1' trange = ['2015-12-15', '2015-12-16'] timespan, '2015-12-15' iw = 0 width = 850 height = 1200 eis_prefix = 'mms'+probe+'_epd_eis' feeps_prefix = 'mms'+probe+'_epd_feeps' ; options for send_plots_to: ; ps: postscript files ; png: png files ; win: creates/opens all of the tplot windows send_plots_to = 'win' plot_directory = '' postscript = send_plots_to eq 'ps' ? 1 : 0 ; handle any errors that occur in this script gracefully catch, errstats if errstats ne 0 then begin error = 1 dprint, dlevel=1, 'Error: ', !ERROR_STATE.MSG catch, /cancel endif ; load FEEPS data mms_load_feeps, probes=probe, trange=trange, level='l1b', datatype='electron', data_rate='srvy' ; load EIS extof, phxtof, and electron data: mms_load_eis, probes=probe, trange=trange, datatype='extof', level='l1b', data_rate='srvy' mms_load_eis, probes=probe, trange=trange, datatype='phxtof', level='l1b', data_rate='srvy' mms_load_eis, probes=probe, trange=trange, datatype='electronenergy', level='l1b', data_rate='srvy' ; setup for plotting the proton flux for all channels ;ylim, feeps_prefix+'_electronenergy_electron_flux_omni_spin', 30, 1000, 1 ;zlim, feeps_prefix+'_electronenergy_electron_flux_omni_spin', 0, 0, 1 ylim, feeps_prefix+'_electron_intensity_omni_spin', 71, 600, 1 ; don't include the bottom channel ylim, eis_prefix+'_electronenergy_electron_flux_omni_spin', 30, 1000, 1 zlim, eis_prefix+'_electronenergy_electron_flux_omni_spin', 0, 0, 1 ylim, eis_prefix+'_extof_proton_flux_omni_spin', 50, 500, 1 zlim, eis_prefix+'_extof_proton_flux_omni_spin', 0, 0, 1 ylim, eis_prefix+'_extof_oxygen_flux_omni_spin', 150, 1000, 1 zlim, eis_prefix+'_extof_oxygen_flux_omni_spin', 0, 0, 1 ylim, eis_prefix+'_extof_alpha_flux_omni_spin', 80, 800, 1 zlim, eis_prefix+'_extof_alpha_flux_omni_spin', 0, 0, 1 ylim, eis_prefix+'_phxtof_proton_flux_omni_spin', 10, 50, 1 zlim, eis_prefix+'_phxtof_proton_flux_omni_spin', 0, 0, 1 ;ylim, eis_prefix+'_phxtof_oxygen_flux_omni_spin', 10, 50, 1 ;zlim, eis_prefix+'_phxtof_oxygen_flux_omni_spin', 0, 0, 1 ; force the min/max of the Y axes to the limits options, '*_flux_omni*', ystyle=1 ; get ephemeris data for x-axis annotation mms_load_state, probes=probe, trange=trange, /ephemeris eph_gsm = 'mms'+probe+'_mec_r_gsm' ; convert km to re calc,'"'+eph_gsm+'_re" = "'+eph_gsm+'"/6378.' ; split the position into its components split_vec, eph_gsm+'_re' ; calculate R to spacecraft calc, '"mms'+probe+'_defeph_R_gsm" = sqrt("'+eph_gsm+'_re_x'+'"^2+"'+eph_gsm+'_re_y'+'"^2+"'+eph_gsm+'_re_z'+'"^2)' ; set the label to show along the bottom of the tplot options, eph_gsm+'_re_x',ytitle='X-GSM (Re)' options, eph_gsm+'_re_y',ytitle='Y-GSM (Re)' options, eph_gsm+'_re_z',ytitle='Z-GSM (Re)' options, 'mms'+probe+'_defeph_R_gsm',ytitle='R-GSM (Re)' position_vars = ['mms'+probe+'_defeph_R_gsm', eph_gsm+'_re_z', eph_gsm+'_re_y', eph_gsm+'_re_x'] ;tplot_options, 'ymargin', [5, 5] ;tplot_options, 'xmargin', [15, 15] spd_mms_load_bss, datatype=['fast','burst'], /include_labels panels = ['mms_bss_burst', 'mms_bss_fast', $ feeps_prefix+'_electron_intensity_omni_spin', $ eis_prefix+'_electronenergy_electron_flux_omni_spin', $ ; fast ion survey eis_prefix+'_extof_proton_flux_omni_spin', $ eis_prefix+'_extof_alpha_flux_omni_spin', $ eis_prefix+'_extof_oxygen_flux_omni_spin', $ eis_prefix+'_phxtof_proton_flux_omni_spin'] if ~postscript then window, iw, xsize=width, ysize=height tplot, panels, var_label=position_vars, window=iw title='EPD EIS - Quicklook' xyouts, .4, .98, title, /normal, charsize=1.5 if postscript then tprint, plot_directory + prefix + "_quicklook_plots" end