step wid.pro

InfoInfo
Search:    

; Comments added by Erik Johnson 7/6/07

; step_wid.pro, compiles and runs with idl

; used in the manual step of removing spikes

;

;——————————————————————————-

;

; Event Handler

;

PRO step_wid_event, ev

WIDGET_CONTROL, ev.top, GET_UVALUE=statePtr

WIDGET_CONTROL, ev.id, GET_UVALUE=uval

CASE uval OF

; WIDGET_CONTROL, (*statePtr).slider2_id, SET_slider_max=fix_level + 1000.

; WIDGET_CONTROL, (*statePtr).slider2_id, SET_slider_min=fix_level - 1000.

; date=today()

; date_string = ' '+strip(fix(date.month))+'/'+$

; strip(fix(date.day))+'/'+strip(date.year)+' '+getenv('USER')

; date=today()

; date_string = ' '+strip(fix(date.month))+'/'+$

; strip(fix(date.day))+'/'+strip(date.year)+' '+getenv('USER')

ENDCASE

END

;

;——————————————————————————

;

; Widget Definitions

;

PRO step_wid, InputDir = InputDir, OutputDir = OutputDir

IF NOT KEYWORD_SET(InputDir) THEN BEGIN

END

IF NOT KEYWORD_SET(OutputDir) THEN BEGIN

END

loadct,12

base = WIDGET_BASE(xoffset=100)

file_box = widget_text(base, value=, uvalue='file_text',$

file_box_label = widget_label(base, value='Current file: ',$

input_dir_box = widget_text(base, value=InputDir, uvalue='in_dir_text',$

input_dir_box_label = widget_label(base, value=' Input directory: ',$

output_dir_box = widget_text(base, value=OutputDir,$

output_dir_box_label = widget_label(base, value=' Output directory: ',$

file_button = WIDGET_BUTTON(base, VALUE='Select File', UVALUE='file',$

plot_button = WIDGET_BUTTON(base, VALUE='Plot', UVALUE='plot',$

do_it_button = WIDGET_BUTTON(base, VALUE='Do it', UVALUE='do_it',$

write_button = WIDGET_BUTTON(base, VALUE='Write!', UVALUE='write',$

next_button = WIDGET_BUTTON(base, VALUE='Next File', UVALUE='next',$

flag_button = WIDGET_BUTTON(base, VALUE='Flag Selection', UVALUE='flag',$

done_button = WIDGET_BUTTON(base, VALUE='Done', UVALUE='done',$

fix_button = WIDGET_BUTTON(base, VALUE='Fix', UVALUE='fix',$

slider2 = widget_slider(base, value=100, title=, uvalue='slider2',$;fix amount

slider4 = widget_slider(base, value=1, title=, uvalue='slider4',$

slider5 = widget_slider(base, value=1, title=, uvalue='slider5',$

slider6 = widget_slider(base, value=0, title='Start hour', uvalue='slider6',$

slider7 = widget_slider(base, value=24, title='Stop hour', uvalue='slider7',$

previous_button = WIDGET_BUTTON(base, VALUE='Previous', UVALUE='previous',$

advance_button = WIDGET_BUTTON(base, VALUE='Advance', UVALUE='advance',$

marker_select = CW_BGROUP(base, ['start marker','stop marker'], xoffset=400, yoffset=100,$

component_select = CW_BGROUP(base, ['x','y','z'], xoffset=620, yoffset=10,$

plot_box = WIDGET_DRAW(base, xoffset = 0, yoffset = 170, XSIZE = 800, YSIZE = 500,$

statePtr = ptr_new( { status: 0,$

WIDGET_CONTROL, base, SET_UVALUE=statePtr

WIDGET_CONTROL, base, /REALIZE

WIDGET_CONTROL, plot_box, GET_VALUE = index

WSET, index

XMANAGER, 'step_wid', base

file_value = (*statePtr).file

ptr_free, statePtr

print,'done'

END

This is a Wiki Spot wiki. Wiki Spot is a non-profit organization that helps communities collaborate via wikis.