Skip to content

write_eqdsk.m

Basic Information

  USAGE: [equilibria, neq, eqraw] = write_eqdsk(shotnum,tefit,efit_source,tokamak,write_cc)

  PURPOSE: Retrieves eqdsk data from MDS and saves g,a files to dir

  INPUTS:

     shotnum: Shotnumber for equilibrium eg. 146970
        tefit: time of efit, can be two element array specifying time range as in read_eq
     efit_source: EFIT source eg. 'EFIT01'
     tokamak: device name eg. 'd3d'

  OUTPUTS:  eq = equilibrium data on toksys form, that can be used with
              cc_efit_to_tok and build_tokamak_system
            neq = number of equilibria returned
            eqraw = 'raw' eq data on original form before conversion to toksys convention

  RESTRICTIONS:

  METHOD:


  WRITTEN BY:  Matthew J. Lanctot

  MODIFICATION HISTORY:

Dependencies