Skip to content
Snippets Groups Projects
Commit 2273b6f5 authored by Olivier Sauter's avatar Olivier Sauter
Browse files

add Halpha

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@1894 d63d8f72-b253-0410-a779-e742ad2e26cf
parent 88752996
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,7 @@ function [trace,error,varargout]=loadJETdata(shot,data_type,varargin) ...@@ -23,6 +23,7 @@ function [trace,error,varargout]=loadJETdata(shot,data_type,varargin)
% 'ece' = electron cyclotron emission % 'ece' = electron cyclotron emission
% 'sxr' = soft x-ray emission % 'sxr' = soft x-ray emission
% 'sxR' = soft x-ray emission with varargout{1} option (requires varargin{5}!) % 'sxR' = soft x-ray emission with varargout{1} option (requires varargin{5}!)
% 'halpha'= Dalpha signal
% %
% Special case compatible with old gdat.m allows (JET related): % Special case compatible with old gdat.m allows (JET related):
% gdat(51994,'ppf','efit/xip',...) % omitting the 'JET' input as assumes JET if 3rd argument is a string % gdat(51994,'ppf','efit/xip',...) % omitting the 'JET' input as assumes JET if 3rd argument is a string
...@@ -141,6 +142,9 @@ if size(data_type_eff,1)==1 ...@@ -141,6 +142,9 @@ if size(data_type_eff,1)==1
if ~isempty(strmatch(data_type_eff_noext,[{'deltalow'} {'deltal'} {'triangbot'} {'triangl'} {'trianglow'}],'exact')) if ~isempty(strmatch(data_type_eff_noext,[{'deltalow'} {'deltal'} {'triangbot'} {'triangl'} {'trianglow'}],'exact'))
data_type_eff_noext='deltabot'; data_type_eff_noext='deltabot';
end end
if ~isempty(strmatch(data_type_eff_noext,[{'halpha'} {'Halpha'}],'exact'))
data_type_eff_noext='halpha';
end
if ~isempty(strmatch(data_type_eff_noext,[{'n1'} {'N1'}],'exact')) if ~isempty(strmatch(data_type_eff_noext,[{'n1'} {'N1'}],'exact'))
data_type_eff_noext='n1'; data_type_eff_noext='n1';
end end
...@@ -172,7 +176,7 @@ end ...@@ -172,7 +176,7 @@ end
% all keywords and corresponding case to run below % all keywords and corresponding case to run below
JETkeywrdall=[{'Ip'} {'zmag'} {'rmag'} {'rcont'} {'zcont'} {'vol'} {'qrho'} {'q95'} {'kappa'} ... JETkeywrdall=[{'Ip'} {'zmag'} {'rmag'} {'rcont'} {'zcont'} {'vol'} {'qrho'} {'q95'} {'kappa'} ...
{'delta'} {'deltatop'} {'deltabot'} {'n1'} {'n2'} {'neint'} ... {'delta'} {'deltatop'} {'deltabot'} {'halpha'} {'n1'} {'n2'} {'neint'} ...
{'ne'} {'te'} {'nerho'} {'terho'} ... {'ne'} {'te'} {'nerho'} {'terho'} ...
{'sxr'} {'sxR'} {'ece'}]; {'sxr'} {'sxR'} {'ece'}];
JETsig.iip=strmatch('Ip',JETkeywrdall,'exact'); JETsig.iip=strmatch('Ip',JETkeywrdall,'exact');
...@@ -187,6 +191,7 @@ JETsig.ikappa=strmatch('kappa',JETkeywrdall,'exact'); ...@@ -187,6 +191,7 @@ JETsig.ikappa=strmatch('kappa',JETkeywrdall,'exact');
JETsig.idelta=strmatch('delta',JETkeywrdall,'exact'); JETsig.idelta=strmatch('delta',JETkeywrdall,'exact');
JETsig.ideltatop=strmatch('deltatop',JETkeywrdall,'exact'); JETsig.ideltatop=strmatch('deltatop',JETkeywrdall,'exact');
JETsig.ideltabot=strmatch('deltabot',JETkeywrdall,'exact'); JETsig.ideltabot=strmatch('deltabot',JETkeywrdall,'exact');
JETsig.ihalpha=strmatch('halpha',JETkeywrdall,'exact');
JETsig.in1=strmatch('n1',JETkeywrdall,'exact'); JETsig.in1=strmatch('n1',JETkeywrdall,'exact');
JETsig.in2=strmatch('n2',JETkeywrdall,'exact'); JETsig.in2=strmatch('n2',JETkeywrdall,'exact');
JETsig.ineint=strmatch('neint',JETkeywrdall,'exact'); JETsig.ineint=strmatch('neint',JETkeywrdall,'exact');
...@@ -230,6 +235,7 @@ JETsiglocation(:,JETsig.iq95)={'ppf'; 'efit/q95'}; ...@@ -230,6 +235,7 @@ JETsiglocation(:,JETsig.iq95)={'ppf'; 'efit/q95'};
JETsiglocation(:,JETsig.ikappa)={'ppf'; 'efit/elon'}; JETsiglocation(:,JETsig.ikappa)={'ppf'; 'efit/elon'};
JETsiglocation(:,JETsig.ideltatop)={'ppf'; 'efit/triu'}; JETsiglocation(:,JETsig.ideltatop)={'ppf'; 'efit/triu'};
JETsiglocation(:,JETsig.ideltabot)={'ppf'; 'efit/tril'}; JETsiglocation(:,JETsig.ideltabot)={'ppf'; 'efit/tril'};
JETsiglocation(:,JETsig.ihalpha)={'jpf'; 'dd/s3-ad35'};
JETsiglocation(:,JETsig.in1)={'jpf'; 'da/c1-g101'}; JETsiglocation(:,JETsig.in1)={'jpf'; 'da/c1-g101'};
JETsiglocation(:,JETsig.in2)={'jpf'; 'da/c1-g102'}; JETsiglocation(:,JETsig.in2)={'jpf'; 'da/c1-g102'};
JETsiglocation(:,JETsig.ineint)={'ppf'; 'kg1v/lid3'}; JETsiglocation(:,JETsig.ineint)={'ppf'; 'kg1v/lid3'};
...@@ -525,7 +531,7 @@ switch JETkeywrdcase{index} ...@@ -525,7 +531,7 @@ switch JETkeywrdcase{index}
if nargin>=4 & ~isempty(varargin{2}) if nargin>=4 & ~isempty(varargin{2})
status=varargin{2}; status=varargin{2};
else else
status=ones(endi-starti+1,1); status=ones(endi,1);
end end
% Read channels from lowchannel to upchannel if necessary % Read channels from lowchannel to upchannel if necessary
for i=starti:endi for i=starti:endi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment