pro mvn_swia_slice2d_snap, archive=archive, rotation=rotation, angle=angle, thirddirlim=thirddirlim, xrange=xrange, range=range, erange=erange, units=units, nozlog=nozlog, position=position, nofill=nofill, nlines=nlines, noolines=noolines, numolines=numolines, removezero=removezero, showdata=showdata, vel=vel, nogrid=nogrid, nosmooth=nosmooth, sundir=sundir, novelline=novelline, subtract=subtract, resolution=resolution, isotropic=isotropic
dsize = get_screen_size()
Twin = !d.window
window, /free, xsize=dsize[0]/2., ysize=dsize[1]*2./3., $
xpos=0., ypos=0.
Dwin = !d.window
print, 'Use button 1 to select time; button 3 to quit.'
wset,Twin
ctime,t,npoints=1,/silent,vname=vname
ok = 1
while (ok) do begin
get3d_func = ''
if strmatch(vname,'*swif*') eq 1 then get3d_func = 'mvn_swia_get_3df'
if strmatch(vname,'*swic*') eq 1 then get3d_func = 'mvn_swia_get_3dc'
if get3d_func ne '' then begin
d = call_function(get3d_func,t,archive=archive)
wset,Dwin
slice2d,d, rotation=rotation, angle=angle, thirddirlim=thirddirlim, xrange=xrange, range=range, erange=erange, units=units, nozlog=nozlog, position=position, nofill=nofill, nlines=nlines, noolines=noolines, numolines=numolines, removezero=removezero, showdata=showdata, vel=vel, nogrid=nogrid, nosmooth=nosmooth, sundir=sundir, novelline=novelline, subtract=subtract, resolution=resolution, isotropic=isotropic
endif
wset,Twin
ctime,t,npoints=1,/silent,vname=vname
if (data_type(t) eq 5) then ok = 1 else ok = 0
endwhile
end