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
Compare revisions
6f025213e18a1f21aecf3d89c2882fb7bf2cf51b to 4a9c07885c53f4e608b23ab26dd4f448f6c0a02c
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
spc/gdat
Select target project
No results found
4a9c07885c53f4e608b23ab26dd4f448f6c0a02c
Select Git revision
Branches
54-build-distribution-markers-ids
67-add-tcv_get_ids_bolometer-to-tcv_imas-functions
75-add-dataset_descrtion-ids
78-missing-power-launched-and-position-field-for-nbi-ids
Add-tcv_get_ids_soft_x_rays-to-TCV_IMAS-functions
add_deploy980
add_ids_fields
add_ids_nodes
add_inpolygon
add_source7
avoid_privateflux
bugfix/currents_overflow
bugfix/nbi-err-handling
change-ec-data-defaults
change_check_char_to_mds_status
core_profiles_improvements
feature/add_data_checks_and_error_message
feature/increase_exhaustiveness_of_outputs
hotfix/disable-all-tests
master
tcv_get_ids_core_profiles_add_e_field
tcv_get_ids_nbi_update_fix_for_empty_field
tcv_get_ids_pf_active_add_coil_element_geometry
tcv_get_ids_summary_mask_fix
update_ec_launchers
v_0_0
Tags
crpptbx-9.6.0
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.100
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.101
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.102
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.103
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.104
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.105
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.106
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.107
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.108
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.21
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.23
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.24
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.25
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.26
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.27
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.28
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.29
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.30
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.31
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.32
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.33
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.34
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.35
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.36
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.37
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.39
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.40
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.41
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.42
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.43
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.44
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.45
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.46
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.47
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.48
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.49
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.51
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.52
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.53
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.54
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.55
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.57
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.58
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.59
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.60
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.61
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.62
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.63
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.64
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.65
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.66
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.67
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.68
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.69
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.70
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.71
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.72
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.73
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.74
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.75
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.76
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.77
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.78
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.80
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.81
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.82
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.83
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.84
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.85
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.86
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.87
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.88
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.89
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.90
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.91
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.92
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.93
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.94
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.97
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.98
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.99
crpptbx-9.6.0-deployed-crpptbx-release-v4.4.0
crpptbx-9.6.0-deployed-crpptbx-release-v4.4.1
crpptbx-release-v4.3.100
crpptbx-release-v4.3.101
crpptbx-release-v4.3.102
crpptbx-release-v4.3.103
crpptbx-release-v4.3.104
crpptbx-release-v4.3.105
crpptbx-release-v4.3.106
crpptbx-release-v4.3.107
crpptbx-release-v4.3.108
crpptbx-release-v4.3.18
crpptbx-release-v4.3.19
crpptbx-release-v4.3.20
crpptbx-release-v4.3.21
crpptbx-release-v4.3.22
crpptbx-release-v4.3.23
crpptbx-release-v4.3.24
126 results
Swap
Target
spc/gdat
Select target project
spc/gdat
1 result
6f025213e18a1f21aecf3d89c2882fb7bf2cf51b
Select Git revision
Branches
54-build-distribution-markers-ids
67-add-tcv_get_ids_bolometer-to-tcv_imas-functions
75-add-dataset_descrtion-ids
78-missing-power-launched-and-position-field-for-nbi-ids
Add-tcv_get_ids_soft_x_rays-to-TCV_IMAS-functions
add_deploy980
add_ids_fields
add_ids_nodes
add_inpolygon
add_source7
avoid_privateflux
bugfix/currents_overflow
bugfix/nbi-err-handling
change-ec-data-defaults
change_check_char_to_mds_status
core_profiles_improvements
feature/add_data_checks_and_error_message
feature/increase_exhaustiveness_of_outputs
hotfix/disable-all-tests
master
tcv_get_ids_core_profiles_add_e_field
tcv_get_ids_nbi_update_fix_for_empty_field
tcv_get_ids_pf_active_add_coil_element_geometry
tcv_get_ids_summary_mask_fix
update_ec_launchers
v_0_0
Tags
crpptbx-9.6.0
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.100
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.101
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.102
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.103
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.104
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.105
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.106
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.107
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.108
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.21
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.23
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.24
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.25
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.26
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.27
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.28
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.29
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.30
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.31
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.32
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.33
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.34
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.35
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.36
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.37
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.39
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.40
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.41
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.42
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.43
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.44
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.45
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.46
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.47
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.48
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.49
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.51
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.52
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.53
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.54
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.55
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.57
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.58
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.59
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.60
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.61
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.62
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.63
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.64
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.65
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.66
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.67
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.68
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.69
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.70
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.71
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.72
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.73
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.74
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.75
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.76
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.77
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.78
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.80
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.81
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.82
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.83
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.84
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.85
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.86
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.87
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.88
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.89
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.90
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.91
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.92
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.93
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.94
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.97
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.98
crpptbx-9.6.0-deployed-crpptbx-release-v4.3.99
crpptbx-9.6.0-deployed-crpptbx-release-v4.4.0
crpptbx-9.6.0-deployed-crpptbx-release-v4.4.1
crpptbx-release-v4.3.100
crpptbx-release-v4.3.101
crpptbx-release-v4.3.102
crpptbx-release-v4.3.103
crpptbx-release-v4.3.104
crpptbx-release-v4.3.105
crpptbx-release-v4.3.106
crpptbx-release-v4.3.107
crpptbx-release-v4.3.108
crpptbx-release-v4.3.18
crpptbx-release-v4.3.19
crpptbx-release-v4.3.20
crpptbx-release-v4.3.21
crpptbx-release-v4.3.22
crpptbx-release-v4.3.23
crpptbx-release-v4.3.24
126 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Compatibility update to ec_launchers, name is beams instead of launcher
· e7d087d1
Michele Marin
authored
9 months ago
e7d087d1
Update path definitions to be compatible with IMAS version 3.31.0
· 4a9c0788
Michele Marin
authored
8 months ago
4a9c0788
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/TCV_IMAS/tcv_get_ids_ec_launchers.m
+30
-37
30 additions, 37 deletions
matlab/TCV_IMAS/tcv_get_ids_ec_launchers.m
with
30 additions
and
37 deletions
matlab/TCV_IMAS/tcv_get_ids_ec_launchers.m
View file @
4a9c0788
...
...
@@ -33,7 +33,7 @@ end
nb_launchers
=
size
(
pow
.
ec
.
data
,
2
)
-
1
;
% at this stage keep same numbering as standard TCV launchers before mid-2019
ids_ec_launchers
.
launcher
(
1
:
nb_launchers
)
=
ids_ec_launchers
.
launcher
(
1
);
% copy empty structure for all units, then fill in
ids_ec_launchers
.
beam
(
1
:
nb_launchers
)
=
ids_ec_launchers
.
beam
(
1
);
% copy empty structure for all units, then fill in
ids_ec_launchers_description
.
comment
=
[
'assume '
num2str
(
nb_launchers
)
' launchers'
];
if
shot
>=
63000
...
...
@@ -48,22 +48,22 @@ end
ids_ec_launchers_description
.
launch_params
=
launch_params
;
for
iant
=
1
:
nb_launchers
ids_ec_launchers
.
launcher
{
iant
}
.
identifier
=
[
'L'
num2str
(
iant
)];
ids_ec_launchers
.
beam
{
iant
}
.
identifier
=
[
'L'
num2str
(
iant
)];
switch
iant
case
{
1
,
4
}
ids_ec_launchers
.
launcher
{
iant
}
.
name
=
'LFS equatorial launcher'
;
ids_ec_launchers
.
beam
{
iant
}
.
name
=
'LFS equatorial launcher'
;
case
{
2
,
3
,
5
,
6
}
ids_ec_launchers
.
launcher
{
iant
}
.
name
=
'LFS top launcher'
;
ids_ec_launchers
.
beam
{
iant
}
.
name
=
'LFS top launcher'
;
otherwise
ids_ec_launchers
.
launcher
{
iant
}
.
name
=
'TOP launcher'
;
ids_ec_launchers
.
beam
{
iant
}
.
name
=
'TOP launcher'
;
end
if
any
(
isfinite
(
pow
.
ec
.
data
(:,
iant
)))
ids_ec_launchers
.
launcher
{
iant
}
.
power_launched
.
data
=
pow
.
ec
.
data
(:,
iant
);
ids_ec_launchers
.
launcher
{
iant
}
.
power_launched
.
time
=
pow
.
ec
.
t
;
ids_ec_launchers_description
.
launcher
{
iant
}
.
power_launched
=
'from gdat powers .ec'
;
ids_ec_launchers_description
.
launcher
{
iant
}
.
launching_position
=
'from launch_params obtained from toray_raygeom_TCV'
;
ids_ec_launchers
.
beam
{
iant
}
.
power_launched
.
data
=
pow
.
ec
.
data
(:,
iant
);
ids_ec_launchers
.
beam
{
iant
}
.
power_launched
.
time
=
pow
.
ec
.
t
;
ids_ec_launchers_description
.
beam
{
iant
}
.
power_launched
=
'from gdat powers .ec'
;
ids_ec_launchers_description
.
beam
{
iant
}
.
launching_position
=
'from launch_params obtained from toray_raygeom_TCV'
;
else
ids_ec_launchers_description
.
launcher
{
iant
}
.
power_launched
=
'no power for this launcher from gdat powers .ec'
;
ids_ec_launchers_description
.
beam
{
iant
}
.
power_launched
=
'no power for this launcher from gdat powers .ec'
;
end
if
length
(
launch_params
)
>=
iant
&&
~
isempty
(
launch_params
{
iant
})
% find 1st non-empty data
...
...
@@ -74,48 +74,41 @@ for iant=1:nb_launchers
end
end
% non time-dependent quantities, take 1st ok values
ids_ec_launchers
.
launcher
{
iant
}
.
frequency
.
time
=
[
pow
.
ec
.
t
(
1
)
pow
.
ec
.
t
(
end
)];
ids_ec_launchers
.
launcher
{
iant
}
.
frequency
.
data
=
[
launch_params
{
iant
}{
it_ok
{
iant
}(
1
)}
.
freq
launch_params
{
iant
}{
it_ok
{
iant
}(
end
)}
.
freq
];
ids_ec_launchers
.
launcher
{
iant
}
.
mode
.
time
=
[
pow
.
ec
.
t
(
1
)
pow
.
ec
.
t
(
end
)];
ids_ec_launchers
.
launcher
{
iant
}
.
mode
.
data
=
[
-
1
-
1
];
% at this stage assume X mode always, to change when available
ids_ec_launchers
.
beam
{
iant
}
.
frequency
.
time
=
[
pow
.
ec
.
t
(
1
)
pow
.
ec
.
t
(
end
)];
ids_ec_launchers
.
beam
{
iant
}
.
frequency
.
data
=
[
launch_params
{
iant
}{
it_ok
{
iant
}(
1
)}
.
freq
launch_params
{
iant
}{
it_ok
{
iant
}(
end
)}
.
freq
];
% ids_ec_launchers.beam{iant}.mode.time = [pow.ec.t(1) pow.ec.t(end)];
% ids_ec_launchers.beam{iant}.mode.data = [-1 -1]; % at this stage assume X mode always, to change when available
% ids_ec_launchers.beam{iant}.time = [pow.ec.t(1) pow.ec.t(end)];
ids_ec_launchers
.
beam
{
iant
}
.
mode
=
-
1
;
% at this stage assume X mode always, to change when available
for
i
=
1
:
length
(
it_ok
{
iant
})
r0
=
sqrt
(
launch_params
{
iant
}{
it_ok
{
iant
}(
i
)}
.
x0
.^
2
+
launch_params
{
iant
}{
it_ok
{
iant
}(
i
)}
.
y0
.^
2
)
/
100.
;
% in [m]
time_launch
=
launch_params
{
iant
}{
it_ok
{
iant
}(
i
)}
.
time
;
ids_ec_launchers
.
launcher
{
iant
}
.
launching_position
.
r
(
i
)
=
r0
;
ids_ec_launchers
.
launcher
{
iant
}
.
launching_position
.
z
(
i
)
=
launch_params
{
iant
}{
it_ok
{
iant
}(
i
)}
.
z0
/
100.
;
ids_ec_launchers
.
launcher
{
iant
}
.
launching_position
.
phi
(
i
)
=
atan2
(
launch_params
{
iant
}{
it_ok
{
iant
}(
i
)}
.
y0
/
100
,
r0
);
ids_ec_launchers
.
launcher
{
iant
}
.
launching_position
.
time
(
i
)
=
time_launch
;
ids_ec_launchers
.
beam
{
iant
}
.
launching_position
.
r
(
i
)
=
r0
;
ids_ec_launchers
.
beam
{
iant
}
.
launching_position
.
z
(
i
)
=
launch_params
{
iant
}{
it_ok
{
iant
}(
i
)}
.
z0
/
100.
;
ids_ec_launchers
.
beam
{
iant
}
.
launching_position
.
phi
(
i
)
=
atan2
(
launch_params
{
iant
}{
it_ok
{
iant
}(
i
)}
.
y0
/
100
,
r0
);
ids_ec_launchers
.
beam
{
iant
}
.
time
(
i
)
=
time_launch
;
kz
=
cos
(
launch_params
{
iant
}{
it_ok
{
iant
}(
i
)}
.
theta_toray
*
pi
/
180.
);
kmr
=
-
sin
(
launch_params
{
iant
}{
it_ok
{
iant
}(
i
)}
.
theta_toray
*
pi
/
180.
)
.*
cos
(
launch_params
{
iant
}{
it_ok
{
iant
}(
i
)}
.
phi_toray
*
pi
/
180.
);
kphi
=
sin
(
launch_params
{
iant
}{
it_ok
{
iant
}(
i
)}
.
theta_toray
*
pi
/
180.
)
.*
sin
(
launch_params
{
iant
}{
it_ok
{
iant
}(
i
)}
.
phi_toray
*
pi
/
180.
);
%*sigma_Rphiz (=+1 for TCV cocos=17)
if
(
kz
==
0
&&
kmr
==
0
)
ids_ec_launchers
.
launcher
{
iant
}
.
steering_angle_pol
.
data
(
i
)
=
0.
;
ids_ec_launchers
.
beam
{
iant
}
.
steering_angle_pol
(
i
)
=
0.
;
else
ids_ec_launchers
.
launcher
{
iant
}
.
steering_angle_pol
.
data
(
i
)
=
atan2
(
-
kz
,
kmr
);
ids_ec_launchers
.
beam
{
iant
}
.
steering_angle_pol
(
i
)
=
atan2
(
-
kz
,
kmr
);
end
ids_ec_launchers
.
launcher
{
iant
}
.
steering_angle_pol
.
time
(
i
)
=
time_launch
;
ids_ec_launchers
.
launcher
{
iant
}
.
steering_angle_tor
.
data
(
i
)
=
asin
(
kphi
);
ids_ec_launchers
.
launcher
{
iant
}
.
steering_angle_tor
.
time
(
i
)
=
time_launch
;
% $$$ ids_ec_launchers.launcher{iant}.beam.spot.size.data(i,1) = 0.023;
% $$$ ids_ec_launchers.launcher{iant}.beam.spot.size.data(i,2) = 0.012;
ids_ec_launchers
.
launcher
{
iant
}
.
beam
.
spot
.
size
.
data
(
1
,
i
)
=
0.023
;
ids_ec_launchers
.
launcher
{
iant
}
.
beam
.
spot
.
size
.
data
(
2
,
i
)
=
0.012
;
ids_ec_launchers
.
launcher
{
iant
}
.
beam
.
spot
.
size
.
time
(
i
)
=
time_launch
;
ids_ec_launchers
.
launcher
{
iant
}
.
beam
.
spot
.
angle
.
data
(
i
)
=
0.0
;
ids_ec_launchers
.
launcher
{
iant
}
.
beam
.
spot
.
angle
.
time
(
i
)
=
time_launch
;
% $$$ ids_ec_launchers.launcher{iant}.beam.phase.curvature.data(i,1) = 1./1.88;
% $$$ ids_ec_launchers.launcher{iant}.beam.phase.curvature.data(i,2) = 1./-0.95; % negative in launch_params...
ids_ec_launchers
.
launcher
{
iant
}
.
beam
.
phase
.
curvature
.
data
(
1
,
i
)
=
1.
/
1.88
;
ids_ec_launchers
.
launcher
{
iant
}
.
beam
.
phase
.
curvature
.
data
(
2
,
i
)
=
1.
/
-
0.95
;
% negative in launch_params...
ids_ec_launchers
.
launcher
{
iant
}
.
beam
.
phase
.
angle
.
data
(
i
)
=
0.0
;
ids_ec_launchers
.
launcher
{
iant
}
.
beam
.
phase
.
angle
.
time
(
i
)
=
time_launch
;
ids_ec_launchers
.
launcher
{
iant
}
.
beam
.
phase
.
curvature
.
time
(
i
)
=
time_launch
;
ids_ec_launchers
.
beam
{
iant
}
.
steering_angle_tor
(
i
)
=
asin
(
kphi
);
ids_ec_launchers
.
beam
{
iant
}
.
spot
.
size
(
1
,
i
)
=
0.023
;
ids_ec_launchers
.
beam
{
iant
}
.
spot
.
size
(
2
,
i
)
=
0.012
;
ids_ec_launchers
.
beam
{
iant
}
.
spot
.
angle
(
i
)
=
0.0
;
ids_ec_launchers
.
beam
{
iant
}
.
phase
.
curvature
(
1
,
i
)
=
1.
/
1.88
;
ids_ec_launchers
.
beam
{
iant
}
.
phase
.
curvature
(
2
,
i
)
=
1.
/
-
0.95
;
% negative in launch_params...
ids_ec_launchers
.
beam
{
iant
}
.
phase
.
angle
(
i
)
=
0.0
;
end
end
end
% cocos automatic transform
if
exist
(
'ids_generic_cocos_nodes_transformation_symbolic'
)
==
2
[
ids_ec_launchers
,
cocoscoeff
]
=
ids_generic_cocos_nodes_transformation_symbolic
(
ids_ec_launchers
,
'ec_launchers'
,
gdat_params
.
cocos_in
,
...
gdat_params
.
cocos_out
,
gdat_params
.
ipsign_out
,
gdat_params
.
b0sign_out
,
gdat_params
.
ipsign_in
,
gdat_params
.
b0sign_in
,
...
gdat_params
.
error_bar
,
gdat_params
.
nverbose
);
...
...
This diff is collapsed.
Click to expand it.