Skip to content

getgaps.m

Basic Information

  USAGE: [gaps,t, gapspec] = getgaps(shot,gapspec,t1,t2,efit_source,tokamak,idoplot)

  PURPOSE: Get gaps defined by gapspec
           A gap is defined as the distance between the plasma boundary
           and the wall along a line through a specified "gap location",
           with direction of measurement defined by gradient of flux for a
           nominal equilibrium at that prescribed "gap location".

  INPUTS:    shot: shot number
          gapspec: gap specification on the form [r z gr gz]
                   r,z is gap location and gr,gz nominal gradient
                   default gaps are: inner, upper, outer, lower
                   see also calc_gaps
           t1, t2: Specification of the time samples (t)
                   t = all efit times, if t1,t2 are empty or not supplied
                   t1 <= t <= t2, if length(t1)==1 & length(t2)==1
                   t = t1,        if length(t1)>=1 & length(t2)==0
      efit_source: string with name of efit-tree OR equil_data
                   default efit01 for shot<900000, efitrt1 for shot>=900000
          tokamak: default d3d
          idoplot: flag to plot limiter, gap locations, and gap vectors

  OUTPUTS:   gaps: distances from boundary to wall through r,z along gr,gz [m]
                t: time [sec]
          gapspec: gapspec that was used (supplied in call or default)

Dependencies