0001 function hxrcam = tcv2r5x2(ap,icam)
0002
0003
0004
0005 hxrcam.camnum = ap.cg.cams(icam);
0006 hxrcam.id = ['TCV HXR camera # ',num2str(hxrcam.camnum)];
0007
0008 hxrcam.chordsnum = ap.cg.chords{hxrcam.camnum};
0009 hxrcam.chordsind = ap.cg.chords_abs{hxrcam.camnum};
0010
0011 hxrcam.centralchord = ap.cg.cc{hxrcam.camnum};
0012
0013 nc = length(hxrcam.chordsind);
0014
0015
0016 hxrcam.R_hxr=ap.cg.rd(hxrcam.chordsind);
0017 hxrcam.Z_hxr=ap.cg.zd(hxrcam.chordsind);
0018
0019 hxrcam.alpha_hxr=ap.cg.alpha(hxrcam.chordsind);
0020 hxrcam.beta_hxr=ap.cg.beta(hxrcam.chordsind);
0021
0022 hxrcam.EG_hxr = ap.cg.etendue(hxrcam.chordsind);
0023
0024
0025 hxrcam.kd_hxr = ones(nc,1)*[10,30,50,70,90,110,130,150,170,190,210,250];
0026 hxrcam.phf_hxr = ones(nc,1)*[0.75,0.62,0.51,0.41,0.32,0.2,0.2,0.2,0.2,0.2,0.2,0.2];
0027 hxrcam.res_hxr = ones(nc,1)*[6,-0.9];
0028
0029
0030 hxrcam.ec_hxr = NaN(1,nc);
0031 hxrcam.tc_hxr = repmat('fm',nc,1);
0032 hxrcam.ef_hxr = NaN(1,nc);
0033 hxrcam.tf_hxr = repmat('wm',nc,1);
0034 hxrcam.ea_hxr = NaN(1,nc);
0035 hxrcam.ta_hxr = repmat('am',nc,1);
0036 hxrcam.ed_hxr = NaN(1,nc);
0037 hxrcam.td_hxr = repmat('detm',nc,1);
0038 for ic = 1:nc
0039 hxrcam.ec_hxr(ic) = ap.fch{hxrcam.chordsind(ic)}.filt{1}.d;
0040 hxrcam.tc_hxr(ic,:) = ap.fch{hxrcam.chordsind(ic)}.filt{1}.mt;
0041 hxrcam.ef_hxr(ic) = ap.fch{hxrcam.chordsind(ic)}.win{1}.d;
0042 hxrcam.tf_hxr(ic,:) = ap.fch{hxrcam.chordsind(ic)}.win{1}.mt;
0043 hxrcam.ea_hxr(ic) = ap.fch{hxrcam.chordsind(ic)}.abs{1}.d;
0044 hxrcam.ta_hxr(ic,:) = ap.fch{hxrcam.chordsind(ic)}.abs{1}.mt;
0045 hxrcam.ed_hxr(ic) = ap.det{hxrcam.chordsind(ic)}.d;
0046 hxrcam.td_hxr(ic,:) = ap.det{hxrcam.chordsind(ic)}.mt;
0047 end