;+ pla_mon_crib
;
; normal resolution monitor rates crib sheet
;
;
;
;------------------ INPUT PARAMETERS ----------------------------------
;sat:  'A' for Ahead, 'B' for Behind
;
;units:  'counts' for raw counts
;	 'c/s' for counts per seconds
;
;NO_ENG:  1 to skip checking for engineering mode data
;	 (runs faster and uses less memory)
;
;E-step:  The energy step(s) you desire to plot.  
;
;monitor rates:     's_valid' etc. 
;            
;time:       Start date/time string in tplot format ('yyyy-mm-dd/hh:mm:ss')
;timespan:   Set the time span
;            (keywords: SECONDS, MINUTES, HOURS, DAYS (DEFAULT))
;---------------------------------------------------------------------
;-

; Enter the day and time for the start of the plot, and then the duration.

time='2009-01-01/00:00:00' ; year, month, day
timespan, time, 1.0, /DAYS ; SECONDS, MINUTES, HOURS, DAYS (DEFAULT)

sat = 'A'	; spacecraft ('A' or 'B')
units = 'counts' ; choose 'counts' or 'c/s'
NO_ENG = 1	; set to 1 to skip looking for engineering mode data

; Enter desired values into E_step array following this list.
;--------------------------------------------------------------------------------
;	Value	; Corresponding ESA steps	; Value	; Corresponding ESA steps
;________________________________________________________________________________
;	0	; 0 - 3				; 17	; 68 - 71
;	1	; 4 - 7				; 18	; 72 - 75
;	2	; 8 - 11			; 19	; 76 - 79
;	3	; 12 - 15			; 20	; 80 - 83
;	4	; 16 - 19			; 21	; 84 - 87
;	5	; 20 - 23			; 22 	; 88 - 91
;	6	; 24 - 27			; 23	; 92 - 95
;	7	; 28 - 31			; 24	; 96 - 99
;	8	; 32 - 35			; 25 	; 100 - 103
;	9	; 36 - 39			; 26 	; 104 - 107
;	10	; 40 - 43			; 27	; 108 - 111
;	11	; 44 - 47			; 28	; 112 - 115
;	12	; 48 - 51			; 29	; 116 - 119
;	13	; 52 - 55			; 30	; 120 - 123
;	14	; 56 - 59			; 31	; 124 - 127
;	15 	; 60 - 63			; 32	; ALL (0 - 127)
;	16	; 64 - 67

E_step = [32]

sat_mon = ['s_valid','ssd_sw','sf0','sfr0','ra_trig','stop0',$
               'w_valid', 'sf2', 'sfr2', 'stop2', $
               'pos2_0', 'pos2_1', 'pos2_2', 'pos2_3', $
               'pos3_0', 'pos3_1', 'pos3_2', 'pos3_3']


; Following is a list of possible monitor rates.
; Enter the desired rates into the sat_mon array above.
; Don't forget the ' to indicate a string.


; s_valid		; w_no_pos
; s_e_not_req		; w_mult_pos
; s_e_req		; w_valid
; s_no_pos		; sf2
; s_mult_pos		; sfr2
; s_no_e		; stp2
; s_mult_e		; pos2_0
; ra_sat_a		; pos2_1
; ra_sat_b		; pos2_2
; ra_sat_both		; pos2_3
; ssd_sw		; pos3_0
; ssd_st		; pos3_1
; sf0			; pos3_2
; sfr0			; pos3_3
; stp0
; ra_trig
; pos1_0
; pos1_1

; pos2		 (= pos2_0 + pos2_1 + pos2_2 + pos2_3)
; pos3		 (= pos3_0 + pos3_1 + pos3_2 + pos3_3)
; stop0		 (= sfr0/sf0)
; start0	 (= sfr0/stp0)
; stop2		 (= sfr2/sf2) 
; start2	 (= sfr2/stp2)
;----------------------------------------------------------------------

;----------------------------------------------------------------------
; Here you can adjust the size of the X, Y, or Z characters
;----------------------------------------------------------------------
!x.charsize = 1.0
!y.charsize = 1.0
!z.charsize = 1.0

;----------------------------------------------------------------------
; PLOT MONITOR RATES
;----------------------------------------------------------------------
set_com_mon
pl_plot_mon_from_crib, sat_mon, E_step, units, NO_ENG, sat, /INST_COORD
