read_mds_eqdsk.m
SYNTAX: [eqdata,neq,eq,ier] = read_mds_eqdsk(shotnum,times,efit_source,tokamak,server)
PURPOSE: Read geqdsk and aeqdsk data from mdsplus, return data like
read_gfile_tok.m.
(data needed from aeqdsk not well-defined yet)
INPUT: <default>
shotnum = shot number
times = equilibrium time(s), one of:
if single float#: closest time available in mds (s)
if pair [t1,t2]: times between t1 and t2 (s)
if 'all': return all times in tree <'ALL'>
efit_source = source tree for EFIT (e.g. <'EFIT01'>, 'EFITRT1')
tokamak = tokamak name. <DIII-D>
server = optional server name. Default is to use standard mds server for tokamak. Use
'local' to get data from the GA test server (currently vidar).
OUTPUT:
eqdata = array of structures, each containing info from 1 eqdsk
(single time causes structure returned to be like read_gfile_tok;
others return extended structures)
neq = number of eqdsk's returned
eq = entire tree containing efit equilibrium data
ier = error code
RESTRICTIONS: Only handles D3D, EAST, KSTAR, and NSTX(EFITRT only) right now. Need
to add code for the other devices supported by read_gfile_tok.m.
Dependencies