Changeset 541 in ETALON for CLIO/CTR+gfw
- Timestamp:
- Apr 22, 2016, 9:59:42 PM (8 years ago)
- Location:
- CLIO/CTR+gfw
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
CLIO/CTR+gfw/CTR.m
r492 r541 126 126 title(['CTR spectrum']) 127 127 grid on 128 xlim([0 5]) 128 129 % xlim([min(c./nu*1e+3) 2]) 129 130 end -
CLIO/CTR+gfw/GFWnew/GFWnew.m
r471 r541 63 63 load([P_file]); 64 64 else 65 disp('Set correct file name!')65 error('Set correct file name!') 66 66 end 67 67 else … … 70 70 sigma_t= pulse_len_ps/(sqrt(2*log(2))*(1+epsl))*1e-3; %The sigma of the leading edge ns 71 71 72 nu=(1:1e+10:3e+1 3).*1e-9;%Ghz72 nu=(1:1e+10:3e+16).*1e-9;%Ghz 73 73 74 74 sigma_L= sigma_t*epsl; … … 220 220 FreqHalf=Frequency(1:round(length(Frequency)/2));%half of frequency range 221 221 SpectrumHalf=SpectrumHalf./max(SpectrumHalf);%normalization of Spectrum 222 Nmax=find(FreqHalf>= 2.5,1);%2.5 THz is more than enoght222 Nmax=find(FreqHalf>=60,1);%2.5 THz is more than enoght 223 223 % Interpolation is applyed to decrease error in calculation (freq step in FFT is to wide for this calculation ) 224 224 FreqInter=FreqHalf(1):((FreqHalf(2)-FreqHalf(1))*1e-3):FreqHalf(Nmax);%interpolation diapason … … 226 226 if PlotFunc(1)==1 227 227 figure(1) 228 clf 228 229 plot(FreqInter,SpecInter,'-k','linew',2) 229 230 hold on … … 252 253 if isempty(s_coh_long) 253 254 s_coh_long=0;%ACHTUNG!!! 254 disp('fail to find Form Factrovalue')255 error('fail to find Form Factor value') 255 256 end 256 257 else … … 367 368 if PlotFunc(2)==1 368 369 figure(2) 370 clf 369 371 plot(thet,bin_single(:,phiDiv+2),'k','linew',2) 370 372 set(gca,'fontsize',16) … … 376 378 if PlotFunc(3)==1 377 379 figure(3) 380 clf 378 381 plot(thet,sum_tr,'r','linew',2) 379 382 % thet_rad=thet/180*pi; … … 391 394 if PlotFunc(4)==1 392 395 figure(4) 396 clf 393 397 plot(time,Profile,'r','linew',2) 394 398 set(gca,'fontsize',16) … … 401 405 if PlotFunc(5)==1 402 406 figure(5) 407 clf 403 408 semilogy(nu_Hz*1e-12,SP_spec_1,'r','linew',2) 404 409 hold on
Note: See TracChangeset
for help on using the changeset viewer.