disruption_summary

Script to list available disruptions in a specific folder

Syntax disruption_summary

$ disruption_summary -h
usage: disruption_summary [-h] [-f FOLDER] [-s SELECTION] [-o] [-c CHOICE]

---- Script to list available disruptions in a specific folder ----

options:
  -h, --help            show this help message and exit
  -f FOLDER, --folder FOLDER
                        folder where to search for disruptions (recursive)
  -s SELECTION, --selection SELECTION
                        list of fields to filter: e.g. MD,up,2.65
                        ----> Select only disruptions filling these criteria
  -o, --obsolete        Show also obsolete cases
  -c CHOICE, --choice CHOICE
                        list of variables to display, e.g.: shot,run,ip,b0
                        ... available among following variables:
                                ref_name    = dataset reference name
                                ro_name     = resonsible officer name
                                shot        = shot number
                                run         = run number
                                type        = data type (experimental,predictive,interpretative)
                                dis_type    = which type of disruption (MD, VDE...) 
                                VD_dir      = direction of vertical displacement (up, down, central) 
                                HF          = poloidal halo current fraction (HF=Ipol,halo/Ip)       
                                workflow    = suite of codes used to compute these data
                                database    = database name
                                ip          = plasma current
                                IREmax      = maximum RE current
                                b0          = central magnetic field 
                                ne0         = central electron density
                                idslist     = List of IDSs available in the data-entry
                                tsteps      = Number of time steps in the disruptions
                                dd_version  = Data dictionary version

Example disruption_summary

$ disruption_summary
----> Default call equivalent to:
      disruption_summary -c shot,run,ip,b0,ne0,dis_type,VD_dir,IREmax,HF,workflow,ref_name
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Pulse   Run  Ip[MA]  B0[T]  ne0[m-3]  Type          VD    I_RE_max[MA]  HF    Workflow                        Reference
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
100021  1     -7.5   -2.65  5e+19     VDE           up    0.0           0.2   DINA ITER Disruption Simulator  DINA-20/MD_VDE_10_7.5MA_2.65T/VDE7.5_up_Be3_chi4_5_19
100022  1     -7.5   -2.65  5e+19     MD            up    0.0           0.2   DINA ITER Disruption Simulator  DINA-20/MD_VDE_10_7.5MA_2.65T/MD7.5_up_Be3_chi1_5_19
100023  1     -7.5   -2.65  5e+19     VDE           down  0.0           1.33  DINA ITER Disruption Simulator  DINA-20/MD_VDE_10_7.5MA_2.65T/VDE7.5_dw_Be0_chi1_5_19
100027  1     -7.5   -2.65  5e+19     VDE           up    0.0           0.26  DINA ITER Disruption Simulator  DINA-20/MD_VDE_10_7.5MA_2.65T/VDE7.5_up_Be1_chi4_5_19