Skip to content
Snippets Groups Projects
Commit c1f2e31b authored by Luke Simons's avatar Luke Simons
Browse files

Removed text added to ids_bolometer_description. Handling imas versions.

parent 98d2e458
No related branches found
No related tags found
1 merge request!171Resolve "Add tcv_get_ids_bolometer to TCV_IMAS functions"
...@@ -45,23 +45,20 @@ params_eff.data_request='\tcv_shot::top.results.bolo_u.confidence'; ...@@ -45,23 +45,20 @@ 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')
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
ids_bolometer.channel{ii}.name = bolo_geom.channel{ii}.name; ids_bolometer.channel{ii}.name = bolo_geom.channel{ii}.name;
ids_bolometer_description.channel{ii}.name = ...
['RADCAM bolometer detector name, from camera labels and number ' ... if strcmp(aa(1),'3')
'VT: Vertical Top, UL: Upper Lateral, ML: Middle Lateral, ' ... ids_bolometer.channel{ii}.identifier = bolo_geom.channel{ii}.identifier;
'DIV: Divertor, VB: Vertical bottom. Matches cabling.']; elseif strcmp(aa(1),'4')
ids_bolometer.channel{ii}.description = bolo_geom.channel{ii}.identifier;
ids_bolometer.channel{ii}.identifier = bolo_geom.channel{ii}.identifier; end
ids_bolometer_description.channel{ii}.identifier = ...
['RADCAM bolometer system, global index from order in ' ...
'\results::bolo_u tree'];
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;
ids_bolometer.channel{ii}.detector.centre.phi= bolo_geom.channel{ii}.detector.centre.phi; ids_bolometer.channel{ii}.detector.centre.phi= bolo_geom.channel{ii}.detector.centre.phi;
ids_bolometer.channel{ii}.detector.centre.r= bolo_geom.channel{ii}.detector.centre.r; ids_bolometer.channel{ii}.detector.centre.r= bolo_geom.channel{ii}.detector.centre.r;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment