Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gdat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
b9e91a7d
Commit
b9e91a7d
authored
1 week ago
by
Luke Simons
Browse files
Options
Downloads
Patches
Plain Diff
Updates to comments, formatting and versioning of tcv_get_ids_bolometer.m
parent
b13c261f
No related branches found
Branches containing commit
No related tags found
1 merge request
!171
Resolve "Add tcv_get_ids_bolometer to TCV_IMAS functions"
Pipeline
#253412
passed
1 week ago
Stage: test
Stage: post-test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/TCV_IMAS/tcv_get_ids_bolometer.m
+18
-10
18 additions, 10 deletions
matlab/TCV_IMAS/tcv_get_ids_bolometer.m
with
18 additions
and
10 deletions
matlab/TCV_IMAS/tcv_get_ids_bolometer.m
+
18
−
10
View file @
b9e91a7d
...
@@ -45,16 +45,17 @@ params_eff.data_request='\tcv_shot::top.results.bolo_u.confidence';
...
@@ -45,16 +45,17 @@ params_eff.data_request='\tcv_shot::top.results.bolo_u.confidence';
bolo_u_confidence
=
gdat
(
shot
,
params_eff
);
bolo_u_confidence
=
gdat
(
shot
,
params_eff
);
status
=
~
ischar
(
bolo_u_intensity
.
data
)
&
~
ischar
(
bolo_u_prad_core
.
data
);
status
=
~
ischar
(
bolo_u_intensity
.
data
)
&
~
ischar
(
bolo_u_prad_core
.
data
);
imas_version_number
=
getenv
(
'IMAS_VERSION'
)
imas_version_number
=
getenv
(
'IMAS_VERSION'
)
;
if
status
if
status
nchannel
=
numel
(
bolo_u_intensity
.
x
);
nchannel
=
numel
(
bolo_u_intensity
.
x
);
ids_bolometer
.
channel
(
1
:
nchannel
)
=
ids_bolometer
.
channel
(
1
);
ids_bolometer
.
channel
(
1
:
nchannel
)
=
ids_bolometer
.
channel
(
1
);
for
ii
=
1
:
nchannel
for
ii
=
1
:
nchannel
%% Fill geometry information
% Fill information from bolo_geom=bolou_load_geometry();
ids_bolometer
.
channel
{
ii
}
.
name
=
bolo_geom
.
channel
{
ii
}
.
name
;
ids_bolometer
.
channel
{
ii
}
.
name
=
bolo_geom
.
channel
{
ii
}
.
name
;
if
strcmp
(
aa
(
1
),
'3'
)
if
strcmp
(
imas_version_number
(
1
),
'3'
)
ids_bolometer
.
channel
{
ii
}
.
identifier
=
bolo_geom
.
channel
{
ii
}
.
identifier
;
ids_bolometer
.
channel
{
ii
}
.
identifier
=
bolo_geom
.
channel
{
ii
}
.
identifier
;
elseif
strcmp
(
aa
(
1
),
'4'
)
elseif
strcmp
(
imas_version_number
(
1
),
'4'
)
ids_bolometer
.
channel
{
ii
}
.
description
=
bolo_geom
.
channel
{
ii
}
.
identifier
;
ids_bolometer
.
channel
{
ii
}
.
description
=
bolo_geom
.
channel
{
ii
}
.
identifier
;
end
end
ids_bolometer
.
channel
{
ii
}
.
detector
.
geometry_type
=
bolo_geom
.
channel
{
ii
}
.
detector
.
geometry_type
;
ids_bolometer
.
channel
{
ii
}
.
detector
.
geometry_type
=
bolo_geom
.
channel
{
ii
}
.
detector
.
geometry_type
;
...
@@ -102,6 +103,7 @@ if status
...
@@ -102,6 +103,7 @@ if status
ids_bolometer
.
channel
{
ii
}
.
line_of_sight
.
second_point
.
r
=
bolo_geom
.
channel
{
ii
}
.
line_of_sight
.
second_point
.
r
;
ids_bolometer
.
channel
{
ii
}
.
line_of_sight
.
second_point
.
r
=
bolo_geom
.
channel
{
ii
}
.
line_of_sight
.
second_point
.
r
;
ids_bolometer
.
channel
{
ii
}
.
line_of_sight
.
second_point
.
z
=
bolo_geom
.
channel
{
ii
}
.
line_of_sight
.
second_point
.
z
;
ids_bolometer
.
channel
{
ii
}
.
line_of_sight
.
second_point
.
z
=
bolo_geom
.
channel
{
ii
}
.
line_of_sight
.
second_point
.
z
;
%% Fill measurement information
ids_bolometer
.
channel
{
ii
}
.
power
.
data
=
bolo_u_intensity
.
data
(
ii
,:);
ids_bolometer
.
channel
{
ii
}
.
power
.
data
=
bolo_u_intensity
.
data
(
ii
,:);
ids_bolometer_description
.
channel
{
ii
}
.
power
.
data
=
...
ids_bolometer_description
.
channel
{
ii
}
.
power
.
data
=
...
[
'From results.bolo_u.intensity data, Radiance measured by '
...
[
'From results.bolo_u.intensity data, Radiance measured by '
...
...
@@ -136,21 +138,27 @@ if status
...
@@ -136,21 +138,27 @@ if status
ids_bolometer
.
code
.
name
=
'rc_gti_prep'
;
ids_bolometer
.
code
.
name
=
'rc_gti_prep'
;
ids_bolometer
.
code
.
description
=
...
ids_bolometer
.
code
.
description
=
...
[
'rc_gti_prep, RADCAM gitlab repo, calls GTI to generate emissivity profiles with liuqe.'
]
[
'rc_gti_prep, RADCAM gitlab repo, calls GTI to generate emissivity profiles with liuqe.'
]
% '/usr/local/bin/matlab960 -nojvm -nosplash -nodisplay -r ' ...
% '"anasrvmat(''rc_gti_prep'',$2,[0 2.2],''bolo'', 10, 1, 0.04, 30,' ...
% 'false, false,false, [], ''automated'', 1)"'];
ids_bolometer
.
code
.
commit
=
''
;
ids_bolometer
.
code
.
commit
=
''
;
ids_bolometer
.
code
.
version
=
''
;
ids_bolometer
.
code
.
version
=
''
;
ids_bolometer
.
code
.
repository
=
...
ids_bolometer
.
code
.
repository
=
...
'https://gitlab.epfl.ch/spc/tcv/diag/radcam/'
;
'https://gitlab.epfl.ch/spc/tcv/diag/radcam/'
;
ids_bolometer
.
code
.
parameters
=
''
;
ids_bolometer
.
code
.
parameters
=
[
'rc_gti_prep(shot,[0 2.2],
''
bolo
''
, 10, 1, 0.04, 30,'
...
ids_bolometer
.
code
.
library
{
1
}
.
name
=
'meq'
;
+
'false, false,false, [],
''
automated
''
, 1)'
];
%% Code legacy for TCV_EQ; FBTE
% Call to gti: gti_get_disc
% Call to TCV_eq: temp=tdi('TCV_EQ("psi")',disc.s.equilsrc);
% https://spcwiki.epfl.ch/wiki/Tcv_eq
% a=gdat(shot,'TCV_EQ("psi")');
ids_bolometer
.
code
.
library
{
1
}
.
name
=
'fbte'
;
ids_bolometer
.
code
.
library
{
1
}
.
description
=
'Magnetic equilibrium'
;
ids_bolometer
.
code
.
library
{
1
}
.
description
=
'Magnetic equilibrium'
;
ids_bolometer
.
code
.
library
{
1
}
.
commit
=
''
;
ids_bolometer
.
code
.
library
{
1
}
.
commit
=
''
;
ids_bolometer
.
code
.
library
{
1
}
.
version
=
''
;
ids_bolometer
.
code
.
library
{
1
}
.
version
=
''
;
ids_bolometer
.
code
.
library
{
1
}
.
repository
=
...
ids_bolometer
.
code
.
library
{
1
}
.
repository
=
...
'https://gitlab.epfl.ch/spc/tcv/tbx/meq'
;
'https://gitlab.epfl.ch/spc/tcv/tbx/meq'
;
ids_bolometer
.
code
.
library
{
1
}
.
parameters
=
''
;
ids_bolometer
.
code
.
library
{
1
}
.
parameters
=
'TCV_EQ("psi")'
;
%% Code legacy for GTI
ids_bolometer
.
code
.
library
{
2
}
.
name
=
'GTI'
;
ids_bolometer
.
code
.
library
{
2
}
.
name
=
'GTI'
;
ids_bolometer
.
code
.
library
{
2
}
.
description
=
...
ids_bolometer
.
code
.
library
{
2
}
.
description
=
...
'General Tomographic Inversion'
;
'General Tomographic Inversion'
;
...
...
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