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

change to mdsconnect('ssh://osauter@mdsplus.jetdata.eu');

then change to user_jet
parent 6d4c1c0c
No related branches found
No related tags found
1 merge request!107change to mdsconnect('ssh://' jet_user '@mdsplus.jetdata.eu');
Pipeline #77772 passed
...@@ -73,7 +73,7 @@ default_machine = 'jet'; ...@@ -73,7 +73,7 @@ default_machine = 'jet';
gdat_params.machine=default_machine; gdat_params.machine=default_machine;
gdat_params.doplot = 0; gdat_params.doplot = 0;
gdat_params.nverbose = 1; gdat_params.nverbose = 1;
keyboard
% construct list of keywords from global set of keywords and specific JET set % construct list of keywords from global set of keywords and specific JET set
% get data_request names from centralized table % get data_request names from centralized table
%%% data_request_names = get_data_request_names; % do not use xlsx anymore but scan respective machine_requests_mapping.m files %%% data_request_names = get_data_request_names; % do not use xlsx anymore but scan respective machine_requests_mapping.m files
......
...@@ -32,7 +32,7 @@ if usemdsplus ...@@ -32,7 +32,7 @@ if usemdsplus
if ~unix('test -d /home/duval/mdsplus') if ~unix('test -d /home/duval/mdsplus')
% addpath('/home/duval/mdsplus') % addpath('/home/duval/mdsplus')
end end
mdsconnect('mdsplus.jet.efda.org'); mdsconnect('ssh://osauter@mdsplus.jetdata.eu');
mdsvalue('reset_public()'); mdsvalue('reset_public()');
% defines trace to fetch % defines trace to fetch
% after '?' specific details % after '?' specific details
...@@ -111,7 +111,7 @@ if usemdsplus ...@@ -111,7 +111,7 @@ if usemdsplus
traceeff=[traceeff '/' num2str(seq)]; traceeff=[traceeff '/' num2str(seq)];
end end
user=getenv('USER'); user=getenv('USER');
mdsconnect('mdsplus.jet.efda.org'); mdsconnect('ssh://osauter@mdsplus.jetdata.eu');
eval(['[data,error]=mdsvalue(''_rdaeff' user '=jet("' traceeff '",' num2str(shot) ')'');']) eval(['[data,error]=mdsvalue(''_rdaeff' user '=jet("' traceeff '",' num2str(shot) ')'');'])
hsig=[]; hsig=[];
ss=size(data); ss=size(data);
...@@ -120,13 +120,13 @@ if usemdsplus ...@@ -120,13 +120,13 @@ if usemdsplus
nbofdim=max(nbofdim,1); nbofdim=max(nbofdim,1);
switch nbofdim switch nbofdim
case 1 case 1
mdsconnect('mdsplus.jet.efda.org'); mdsconnect('ssh://osauter@mdsplus.jetdata.eu');
eval(['time=mdsvalue(''dim_of(_rdaeff' user ',0)'');']); eval(['time=mdsvalue(''dim_of(_rdaeff' user ',0)'');']);
x=[]; x=[];
if isempty(time) & length(data)>1e6 & strcmpi(type,'lpf') & strcmpi(diag,'kc1f') if isempty(time) & length(data)>1e6 & strcmpi(type,'lpf') & strcmpi(diag,'kc1f')
mdsdisconnect; mdsdisconnect;
mdsconnect('mdsplus.jet.efda.org'); mdsconnect('ssh://osauter@mdsplus.jetdata.eu');
mdsconnect('mdsplus.jet.efda.org'); mdsconnect('ssh://osauter@mdsplus.jetdata.eu');
eval(['aaa=mdsvalue(''_tc91=jet("jpf/da/c1-tc91",' num2str(shot) ');1'');']) eval(['aaa=mdsvalue(''_tc91=jet("jpf/da/c1-tc91",' num2str(shot) ');1'');'])
taaa=mdsvalue('_ttc91=dim_of(_tc91,0);_ttc91[0]'); taaa=mdsvalue('_ttc91=dim_of(_tc91,0);_ttc91[0]');
time=linspace(taaa+1e-6,taaa+4,length(data))'; time=linspace(taaa+1e-6,taaa+4,length(data))';
...@@ -135,23 +135,23 @@ if usemdsplus ...@@ -135,23 +135,23 @@ if usemdsplus
ichannel=findstr(':00',maintrace); ichannel=findstr(':00',maintrace);
iblock=str2num(maintrace(ichannel+3)); iblock=str2num(maintrace(ichannel+3));
mdsdisconnect; mdsdisconnect;
mdsconnect('mdsplus.jet.efda.org'); mdsconnect('ssh://osauter@mdsplus.jetdata.eu');
taaa=39.9989+(iblock-1)*8; taaa=39.9989+(iblock-1)*8;
time=linspace(taaa,taaa+8-4e-6,length(data))'; time=linspace(taaa,taaa+8-4e-6,length(data))';
end end
case 2 case 2
mdsconnect('mdsplus.jet.efda.org'); mdsconnect('ssh://osauter@mdsplus.jetdata.eu');
eval(['x=mdsvalue(''dim_of(_rdaeff' user ',0)'');']); eval(['x=mdsvalue(''dim_of(_rdaeff' user ',0)'');']);
mdsconnect('mdsplus.jet.efda.org'); mdsconnect('ssh://osauter@mdsplus.jetdata.eu');
eval(['time=mdsvalue(''dim_of(_rdaeff' user ',1)'');']); eval(['time=mdsvalue(''dim_of(_rdaeff' user ',1)'');']);
case 3 case 3
mdsconnect('mdsplus.jet.efda.org'); mdsconnect('ssh://osauter@mdsplus.jetdata.eu');
eval(['x=mdsvalue(''dim_of(_rdaeff' user ',0)'');']); eval(['x=mdsvalue(''dim_of(_rdaeff' user ',0)'');']);
mdsconnect('mdsplus.jet.efda.org'); mdsconnect('ssh://osauter@mdsplus.jetdata.eu');
eval(['time=mdsvalue(''dim_of(_rdaeff' user ',1)'');']); eval(['time=mdsvalue(''dim_of(_rdaeff' user ',1)'');']);
disp('3rd dimension in hsig!!!!!!!!!!!!!!!!!!!!!!!!!') disp('3rd dimension in hsig!!!!!!!!!!!!!!!!!!!!!!!!!')
mdsconnect('mdsplus.jet.efda.org'); mdsconnect('ssh://osauter@mdsplus.jetdata.eu');
eval(['hsig=mdsvalue(''dim_of(_rdaeff' user ',2)'');']); eval(['hsig=mdsvalue(''dim_of(_rdaeff' user ',2)'');']);
otherwise otherwise
......
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