Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gdat
Manage
Activity
Members
Labels
Plan
Issues
33
Issue boards
Milestones
Wiki
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SPC
gdat
Commits
0bf9c295
Commit
0bf9c295
authored
1 year ago
by
Olivier Sauter
Browse files
Options
Downloads
Patches
Plain Diff
a few add-ons
parent
f3a9f4e3
Loading
Loading
1 merge request
!128
D3d addons
Pipeline
#141829
passed with stages
in 8 minutes and 51 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/D3D/d3d_requests_mapping.m
+9
-3
9 additions, 3 deletions
matlab/D3D/d3d_requests_mapping.m
with
9 additions
and
3 deletions
matlab/D3D/d3d_requests_mapping.m
+
9
−
3
View file @
0bf9c295
...
...
@@ -91,8 +91,8 @@ switch lower(data_request)
mapping
.
timedim
=
1
;
mapping
.
label
=
{
'density_ref'
,
'density'
};
mapping
.
method
=
'expression'
;
mapping
.
expression
=
[
'params_eff = gdat_data.gdat_params;params_eff.data_request=
[{
''
d3d
''
},{
''
ptdata("
dstdenp
")
''
}]
;'
...
'gdat_tmp=gdat_d3d(shot,params_eff);params_eff.data_request=
[{
''
d3d
''
},{
''
ptdata("
dssdenest
")
''
}]
;'
...
mapping
.
expression
=
[
'params_eff = gdat_data.gdat_params;params_eff.data_request=
''
\
dstdenp
''
;'
...
'gdat_tmp=gdat_d3d(shot,params_eff);params_eff.data_request=
''
\
dssdenest
''
;'
...
'gdat_tmp2=gdat_d3d(shot,params_eff);'
...
'gdat_tmp.data(:,2) = gdat_tmp2.data;'
...
'gdat_tmp.dim{2}=[1 2];gdat_tmp.dimunits{1}=
''
s
''
;gdat_tmp.dimunits{2}={
''
dstdenp
''
,
''
dssdenest
''
};'
...
...
...
@@ -251,7 +251,8 @@ switch lower(data_request)
mapping
.
expression
=
[
'params_eff = gdat_data.gdat_params;params_eff.data_request=[{
''
d3d
''
},{
''
ptdata("pcf2b")
''
}];'
...
'gdat_tmp=gdat_d3d(shot,params_eff);params_eff = gdat_data.gdat_params;'
...
'params_eff.data_request=[{
''
d3d
''
},{
''
ptdata("f2b")
''
}];gdat_tmp2=gdat_d3d(shot,params_eff);'
...
'gdat_tmp.data(:,2) = interp1(gdat_tmp2.t,gdat_tmp2.data,gdat_tmp.t);'
...
'if ~isempty(gdat_tmp2.t); gdat_tmp.data(:,2) = interp1(gdat_tmp2.t,gdat_tmp2.data,gdat_tmp.t);else;'
...
'gdat_tmp.data(:,2) = NaN(size(gdat_tmp.t)); end;'
...
'gdat_tmp.gdat_request=
''
'
data_request
'
''
;'
];
case
'pgyro'
mapping
.
timedim
=
1
;
...
...
@@ -425,6 +426,11 @@ switch lower(data_request)
% extra D3D cases (not necessarily in official data_request name list)
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
case
{
'zxpt1'
,
'xpt'
}
mapping
.
label
=
'zxpt1'
;
mapping
.
timedim
=
1
;
mapping
.
method
=
'signal'
;
mapping
.
expression
=
[{
'EFIT01'
},{
'\zxpt1'
}];
case
'transp'
mapping
.
label
=
'transp output'
;
mapping
.
method
=
'switchcase'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment