;------------------ INPUT PARAMETERS ----------------------------------
; sat:        'A': Ahead, 'B': Behind
;
; 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))
; omit_non_switch: Set this keyword to omit times when the schan didn't switch
; new_name       : Set this keyword if you want the omit_on_switch variables to have a different name.
; order          : 1=only prelim, 2=valid first, 3=prelim first) -- default is valid only
; All products are created. Use tplot command to plot the ones you want.
;
;----------------------------------------------------------------------

time='2007-02-01/00:00:00'
timespan, time, 1, /DAYS ; SECONDS, MINUTES, HOURS, DAYS (DEFAULT)

sat = ['A', 'B']

;----------------------------------------------------------------------
; create on board moments
;----------------------------------------------------------------------

pl_plot_l2obmom, sat, omit_non_switch = 0, new_name = 0, order = 2

