1 | close all; clear all; clc |
---|
2 | load CLIOSpec.mat |
---|
3 | |
---|
4 | phi=0:0.5:6; |
---|
5 | for c=2:(size(bin,2)-2) |
---|
6 | bin2(:,c-1)=bin_single(:,c); |
---|
7 | % bin2(:,c-1)=bin(:,c); |
---|
8 | |
---|
9 | end |
---|
10 | SEY=[flip(bin2(:,2:end)')',bin2]'; |
---|
11 | |
---|
12 | % figure |
---|
13 | % [hc hc]=contourf(thet,[ -flip(phi(2:end)),phi],SEY) |
---|
14 | % set(hc,'LineStyle','none'); |
---|
15 | phiNew=-6:0.1:6; |
---|
16 | for c=1:size(SEY,2) |
---|
17 | SEYi(:,c)=pchip([ -flip(phi(2:end)),phi],SEY(:,c),phiNew); |
---|
18 | end |
---|
19 | |
---|
20 | % figure |
---|
21 | % [hc hc]=contourf(thet,phiNew,SEYi) |
---|
22 | % set(hc,'LineStyle','none'); |
---|
23 | % |
---|
24 | Thet=30:0.1:140; |
---|
25 | |
---|
26 | for c=1:size(SEYi,1) |
---|
27 | SEYij(c,:)=pchip(thet,SEYi(c,:), Thet); |
---|
28 | end |
---|
29 | figure |
---|
30 | [hc hc]=contourf(Thet,phiNew,SEYij) |
---|
31 | set(hc,'LineStyle','none'); |
---|
32 | TH=48:7:125 |
---|
33 | |
---|
34 | Aed_mm=25;%Aperture entrance diameter, mm |
---|
35 | lgr_mm=180;%Grating length, mm |
---|
36 | el_mm=6; |
---|
37 | |
---|
38 | NormKV=[1.3458 1.2208 1.1325 1.0711 1.0305 1.0072 1.0002 1.0072 1.0305 1.0711 1.1325 1.2208];%180 length grating, 25 input mirror, 48:7:125 |
---|
39 | lgr_e_mm = abs(Aed_mm./sin(Thet/180*pi)); % variable effective grating length, determined basically by the cone entrance diameter of XXXmm*/ |
---|
40 | lgr_e_mm(lgr_e_mm>lgr_mm)=lgr_mm; |
---|
41 | CR=0.1.*lgr_e_mm(:);%J; |
---|
42 | |
---|
43 | |
---|
44 | SEYij=SEYij.*repmat(CR,[1 size(SEYij,1)])'; |
---|
45 | |
---|
46 | for c=1:12 |
---|
47 | |
---|
48 | load(['map' num2str(TH(c)) '.mat']) |
---|
49 | |
---|
50 | MB=Map(:,41:end-40)'./max(max(Map)); |
---|
51 | |
---|
52 | CSEY=SEYij(:,[find(Thet>=TH(c)-10&Thet<=TH(c)+10)]); |
---|
53 | figure |
---|
54 | contourf(MB.*CSEY) |
---|
55 | Integral(c)=sum(sum(MB.*CSEY))*(0.1/180*pi)^2.*NormKV(c);%* |
---|
56 | % SEYij(:,find(Thet>=38&Thet<=58)) |
---|
57 | end |
---|
58 | figure |
---|
59 | hold on |
---|
60 | plot(TH,Integral) |
---|
61 | Spectr=Integral |
---|
62 | |
---|
63 | % save SPRP15.mat Integral |
---|
64 | % save SPRP10.mat Spectr |
---|
65 | |
---|