source: ETALON/CLIO/2017_CLIO_report/scripts/OverlapCorrections.m @ 728

Last change on this file since 728 was 728, checked in by hodnevuc, 7 years ago
File size: 611 bytes
Line 
1clear all; close all
2phi=-10:0.1:10;%azimutal angle deg
3 dthet=-10:0.1:10;%polar angle deg, (shift from optic axis of the mirror)
4
5 for Thet=48:7:125
6
7
8
9for c=1:length(dthet)
10Lamb=6*(1-cos((Thet+dthet(c))/180*pi));
11R=Lamb/2;%focal spot (Abbe diffraction limit)
12r=1;%detector radius
13d=50.8*sqrt(tan(phi/180*pi).^2+tan(dthet(c)/180*pi).^2);
14A=@(x,y)x^2*acos(y./x)-y.*sqrt(x^2-y.^2);
15d1=(d.^2-r^2+R^2)./(2*d);
16d2=d-d1;
17Cs=A(R,d1)+A(r,d2);%sum of two lengthes
18
19Map(c,:)=real(Cs);
20end
21figure
22contourf(dthet,phi,Map')
23xlabel('\Theta')
24ylabel('\phi')
25title(num2str(Thet))
26 save(['map' num2str(Thet) '.mat'],'Map')
27end
Note: See TracBrowser for help on using the repository browser.