setScriptTitle("Add Point Digitizer")
setScriptLabel('Point Digitizer')
setScriptDescription('''Click events are registered on the tab "digitizer." 
This also provides feedback showing the digitized data and the data points 
selected in the digitizer tab.  
See https://abbith.physics.uiowa.edu/jbf/juno/issues/3''')

# B. L. Barnhart paper: https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2009JA014069

mode= getParam( 'mode', 'LFRH', 'instrument mode', [ 'LFRH', 'LFRL','B' ] )
svybst= getParam( 'svybst', 'surveyall', 'surveyall, survey, or burst mode', ['burst', 'survey', 'surveyall'])
#mode= 'LFRL'
detectMode='bottom'
disallowEdges='T'

reduc= getParam( 'reduce', '1s', 'reduce to resolution', ['','1s'] )
if ( reduc=='' ):
    pass  #     reduc= None
else:
    pass  #     reduc= dataset('0.5s')
newVersion= getParam( 'newVersion', True, 'Run with new version (requires 20200605a or v2020a_7)', [ True, False ] )