source: ETALON/CLIO/Analysis/GFW/Corrections.m @ 715

Last change on this file since 715 was 715, checked in by hodnevuc, 7 years ago
File size: 1.5 KB
Line 
1close all; clear all; clc
2load CLIOSpec.mat
3
4phi=0:0.5:6;
5for c=2:(size(bin,2)-2)
6   bin2(:,c-1)=bin_single(:,c);
7%    bin2(:,c-1)=bin(:,c);
8
9end
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');
15phiNew=-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
35lgr_mm=180;%Grating length, mm
36el_mm=6;
37
38NormKV=[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
39lgr_e_mm = abs(Aed_mm./sin(Thet/180*pi));           % variable effective grating length, determined basically by the cone entrance diameter of XXXmm*/
40lgr_e_mm(lgr_e_mm>lgr_mm)=lgr_mm;
41CR=0.1.*lgr_e_mm(:);%J;
42
43
44SEYij=SEYij.*repmat(CR,[1 size(SEYij,1)])';
45
46 for  c=1:12
47 
48load(['map' num2str(TH(c)) '.mat'])
49
50MB=Map(:,41:end-40)'./max(max(Map));
51
52CSEY=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)
61Spectr=Integral
62 
63%   save SPRP15.mat Integral
64%    save SPRP10.mat  Spectr
65
Note: See TracBrowser for help on using the repository browser.