;------------------ 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))
;order:      0 = use valid data only
;            1 = use prelim data only
;            2 = use both, priority given to valid data
;            3 = use both, priority given to prelim data
;
;----------------------------------------------------------------------
;products:   
;            Density, 
;            Bulk Velocity 
;            Temperature
;            Thermal Velocity
;            North South Flow Angle
;            Error
;            Caution: Indicates how sensitive the density value is to method for determining background correction.
;                     0=no issues (<5% effect). 1=minor issues (5-10% effect). 2=use with caution (>10% effect).
;            Attitude Flag: Indicates when instrument flow angles are not in nominal s/c orientation.
;                           0 = no issues. 1 = roll > 2 deg. 2 = yaw > 1 deg. 3 = pitch > 1 deg.
;                           4 = roll>2, yaw>1. 5 = roll>2, pitch>1. 6 = yaw>1,pitch>1. 7 = roll>2,yaw>1,pitch>1.
;            (Lorna: Could also add Spacecraft lon/lat and carrington info)
;----------------------------------------------------------------------

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

sat  = ['A']

order = 3

;----------------------------------------------------------------------

;----------------------------------------------------------------------
; 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 on board moments
;----------------------------------------------------------------------
pl_plot_l2_1dmax, sat, order = order

