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
97d6ca19
Commit
97d6ca19
authored
5 years ago
by
Olivier Sauter
Browse files
Options
Downloads
Patches
Plain Diff
major_version='3' as default, debug beam.spot.time
parent
cc5d412a
No related branches found
Branches containing commit
No related tags found
1 merge request
!22
major_version='3' as default, debug beam.spot.time
Pipeline
#19621
passed
5 years ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
matlab/TCV_IMAS/ids2database.m
+2
-2
2 additions, 2 deletions
matlab/TCV_IMAS/ids2database.m
matlab/TCV_IMAS/tcv2ids2database.m
+2
-2
2 additions, 2 deletions
matlab/TCV_IMAS/tcv2ids2database.m
matlab/TCV_IMAS/tcv_get_ids_ec_antennas.m
+4
-4
4 additions, 4 deletions
matlab/TCV_IMAS/tcv_get_ids_ec_antennas.m
with
8 additions
and
8 deletions
matlab/TCV_IMAS/ids2database.m
+
2
−
2
View file @
97d6ca19
...
...
@@ -6,7 +6,7 @@ function [ids_put_status] = ids2database(shot,run,occurence,ids2put,tree_user,tr
% from new ..._env routines, now user/publi database name, tokamak name and major UAL version (3 or 4 at this stage) need to be specified
% tree_name: getenv('USER') by default, can be 'public'
% tree_tokamak: 'tcv' by default
% tree_majorversion: '
4
' by default
% tree_majorversion: '
3
' by default
%
% varargin{1}: tbd
%
...
...
@@ -15,7 +15,7 @@ ids_put_status = 0;
tree_user_default
=
getenv
(
'USER'
);
tree_tokamak_default
=
'tcv'
;
tree_majorversion_default
=
'
4
'
;
tree_majorversion_default
=
'
3
'
;
% initialize input parser
p
=
inputParser
;
...
...
This diff is collapsed.
Click to expand it.
matlab/TCV_IMAS/tcv2ids2database.m
+
2
−
2
View file @
97d6ca19
...
...
@@ -16,7 +16,7 @@ function [ids_from_tcv,varargout] = tcv2ids2database(shot,run_out,varargin);
% 'delta_with_lower': as 'delta' but lower also set
% 'tree_user': getenv('USER') by default, user for database (could be 'public')
% 'tree_tokamak': tokamak name, default ('tcv')
% 'tree_majorversion': default '
4
'
% 'tree_majorversion': default '
3
'
% 'cocos_out': (default 11) cocos to transform ids from TCV cocos_in=17 to cocos_out
% 'ipsign_out': if a specific sign fo Ip is desired in output within the cocos_out system (default 0=no specific sign)
% 'b0sign_out': if a specific sign fo B0 is desired in output within the cocos_out system (default 0=no specific sign)
...
...
@@ -49,7 +49,7 @@ p.addOptional('ids_names', {'equilibrium', 'magnetics', 'pf_active','wall', 'tf'
p
.
addOptional
(
'error_bar'
,
'delta'
,
@
(
x
)
isempty
(
x
)
||
ischar
(
x
)
);
% char or cell array
p
.
addOptional
(
'tree_user'
,
getenv
(
'USER'
),
@
(
x
)
isempty
(
x
)
||
ischar
(
x
)
);
% char
p
.
addOptional
(
'tree_tokamak'
,
'tcv'
,
@
(
x
)
isempty
(
x
)
||
ischar
(
x
)
);
% char
p
.
addOptional
(
'tree_majorversion'
,
'
4
'
,
@
(
x
)
isempty
(
x
)
||
ischar
(
x
)
);
% char
p
.
addOptional
(
'tree_majorversion'
,
'
3
'
,
@
(
x
)
isempty
(
x
)
||
ischar
(
x
)
);
% char
p
.
addOptional
(
'cocos_out'
,
11
,
@
(
x
)
isempty
(
x
)
||
isnumeric
(
x
)
);
% char
p
.
addOptional
(
'ipsign_out'
,
0
,
@
(
x
)
isempty
(
x
)
||
(
x
==
0
|
x
==-
1
|
x
==+
1
)
);
% char
p
.
addOptional
(
'b0sign_out'
,
0
,
@
(
x
)
isempty
(
x
)
||
(
x
==
0
|
x
==-
1
|
x
==+
1
)
);
% char
...
...
This diff is collapsed.
Click to expand it.
matlab/TCV_IMAS/tcv_get_ids_ec_antennas.m
+
4
−
4
View file @
97d6ca19
...
...
@@ -78,13 +78,13 @@ for iant=1:nb_antennas
ids_ec_antennas
.
antenna
{
iant
}
.
launching_angle_pol
.
time
(
i
)
=
time_launch
;
ids_ec_antennas
.
antenna
{
iant
}
.
launching_angle_tor
.
data
(
i
)
=
launch_params
{
iant
}{
it_ok
{
iant
}(
i
)}
.
phi_toray
*
pi
/
180.
;
ids_ec_antennas
.
antenna
{
iant
}
.
launching_angle_tor
.
time
(
i
)
=
time_launch
;
ids_ec_antennas
.
antenna
{
iant
}
.
beam
.
spot
.
size
.
data
(
i
,
1
:
2
)
=
0.05
;
ids_ec_antennas
.
antenna
{
iant
}
.
beam
.
spot
.
size
.
data
(
i
,
1
:
2
)
=
0.05
.*
ones
(
size
(
time_launch
))
;
ids_ec_antennas
.
antenna
{
iant
}
.
beam
.
spot
.
size
.
time
(
i
)
=
time_launch
;
ids_ec_antennas
.
antenna
{
iant
}
.
beam
.
spot
.
angle
.
data
(
i
,
1
:
2
)
=
0.0
;
ids_ec_antennas
.
antenna
{
iant
}
.
beam
.
spot
.
angle
.
data
(
i
,
1
:
2
)
=
0.0
.*
ones
(
size
(
time_launch
))
;
ids_ec_antennas
.
antenna
{
iant
}
.
beam
.
spot
.
angle
.
time
(
i
)
=
time_launch
;
ids_ec_antennas
.
antenna
{
iant
}
.
beam
.
phase
.
angle
.
data
(
i
,
1
:
2
)
=
0.0
;
ids_ec_antennas
.
antenna
{
iant
}
.
beam
.
phase
.
angle
.
data
(
i
,
1
:
2
)
=
0.0
.*
ones
(
size
(
time_launch
))
;
ids_ec_antennas
.
antenna
{
iant
}
.
beam
.
phase
.
angle
.
time
(
i
)
=
time_launch
;
ids_ec_antennas
.
antenna
{
iant
}
.
beam
.
phase
.
curvature
.
data
(
i
,
1
:
2
)
=
1.0
;
ids_ec_antennas
.
antenna
{
iant
}
.
beam
.
phase
.
curvature
.
data
(
i
,
1
:
2
)
=
1.0
.*
ones
(
size
(
time_launch
))
;
ids_ec_antennas
.
antenna
{
iant
}
.
beam
.
phase
.
curvature
.
time
(
i
)
=
time_launch
;
end
end
...
...
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