run_efit.m
SYNTAX: run_efit(shot,tims,dtms,nslices,snap,snapidx,efitver,efitdir)
PURPOSE:
Run EFIT from inside Matlab: uses basic input format just as in
standard invokation from command line (so will perform many slices
as usual with starting time, delta time, nslices).
INPUTS:
shot = shot number
tims = starting time (in ms) at which to calculate EFIT
dtms = delta time (in ms) between each slice
nslices = # of slices to calculate
snap = (optional) string specifying:
if snapidx=2: data file to read input data from
if snapidx=3: use snap file in default directory (or in /link)
if snapidx=7: snap file extension (eg 'jta_t')
snapidx = (optional) EFIT input mode (2=input file, 3=snap file)
Default=3 (used if nargin<6). Note if snapidx=2, the shot,
tims,dtms,nslices inputs are ignored, and snap specifies the
input file to use.
efitver = (optional) string specifying EFIT version (eg 'efitd65yd' or 'efitd6565d')
efitdir = (optional) string specifying directory in which EFIT version
is to be found (default = /link/efit/ or /d/linux/efit/)
OUTPUTS:
None
RESTRICTIONS:
METHOD:
Uses Matlab unix() command to execute command string built in
this function for desired inputs.
Dependencies