Contents
gdat tutorial: some basic calls and functionalities
gdat calls in fact the main function MACHINE/gdat_machine.m within the gdat folder gdat can be call with one of the available "data_request" keyword or with a full trace_name
The basic call is: data_out_struct = gdat(shot,data_request,'option1',option1_val,...);
But sub-cases are also valid and explained below
At this stage, you need to do the following to test it:
addpath ~sauter/matlab/gdat_develop/crpptbx_new
getting the list of available predefined data_request names
gdat_data = gdat; % % This is the simplest call and returns 3 useful information: gdat_data.gdat_request % contains the list of available data_request names gdat_data.gdat_params % contains the list of basic parameters, including : gdat_data.gdat_params.machine % the (default) machine name % % in addition gdat_data.gdat_call % always contains the string so that the same gdat call can be performed (using eval(), see below)
ans = 'b0' 'betan' 'betap' 'cxrs' 'delta' 'delta_bot' 'delta_top' 'ece' 'eqdsk' 'halpha' 'ioh' 'ip' 'kappa' 'mhd' 'ne' 'neint' 'nel' 'nerho' 'neterho' 'ni' 'powers' 'q0' 'q95' 'qedge' 'qrho' 'rgeom' 'rhovol' 'rmag' 'sxr' 'te' 'terho' 'ti' 'transp' 'vloop' 'vol' 'zeff' 'zgeom' 'zmag' ans = data_request: '' machine: 'tcv' doplot: 0 ans = tcv ans = gdat; % nargout = 1
list of data_request names for a specific machine
gdat_data = gdat('machine','aug'); gdat_data.gdat_request
ans = 'b0' 'betan' 'betap' 'cxrs' 'delta' 'delta_bot' 'delta_top' 'ece' 'eqdsk' 'halpha' 'ioh' 'ip' 'kappa' 'mhd' 'ne' 'neint' 'nel' 'nerho' 'neterho' 'ni' 'powers' 'q0' 'q95' 'qedge' 'qrho' 'rgeom' 'rhovol' 'rmag' 'sxr' 'te' 'terho' 'ti' 'transp' 'vloop' 'vol' 'zeff' 'zgeom' 'zmag' 'equil'