;------------------ INPUT PARAMETERS ----------------------------------
;sat:  'A' for Ahead, 'B' for Behind
;          
;time:       Start date/time string in tplot format ('yyyy-mm-dd/hh:mm:ss')
;timespan:   Set the time span in days
;
;output_dir:  where to put the put the output files
;            
;----------------------------------------------------------------------

sat = 'B'

; Enter the day and time for the start of the plot, and then the duration.
time='2007-05-19/00:00:00' ; year, month, day, hour, minute, second
timespan, time, 2.0, /DAYS ;
  
;----------------------------------------------------------------------
; Here is the location for the program's output
;----------------------------------------------------------------------
output_dir='~/Desktop/'		

set_com_full_peak
pl_full_rate_peak_from_crib, sat, time, output_dir, /INST_COORD
