Changeset 737 in ETALON for CLIO/CTR+gfw/GFWnew/GFWnew.m
- Timestamp:
- Sep 1, 2017, 6:03:25 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CLIO/CTR+gfw/GFWnew/GFWnew.m
r541 r737 1 1 function [nu_Hz,SP_spec_1,SP_spec_N,lam,E_total,sum_tr,thet]=GFWnew(var) 2 global Profile 3 global time 2 4 3 5 % single_elec … … 46 48 ThetaDiv=10;%steps in theta 47 49 phiDiv=3;%steps in phi 50 double_gaussian_offset=0; % Offset of the second gaussian with respect to the first one 51 double_gaussian_amplitude=1; % Amplitude of the second gaussian with respect to the first one 52 double_gaussian_sigma_factor=1; % Sigma ration of the second gaussian with respect to the first one 48 53 49 54 if (~isempty(var)) … … 74 79 sigma_L= sigma_t*epsl; 75 80 sigma_H= sigma_t; 81 double_gaussian_sigma=sigma_t*double_gaussian_sigma_factor; 76 82 time=(1:(length(nu)*2))*(1/(length(nu)*2*(nu(2)-nu(1)))); 77 83 xc=mean(time); 78 84 G1=exp(-(time-xc).^2./(2*sigma_L^2)); 79 85 G2=exp(-(time-xc).^2./(2*sigma_H^2)); 86 G3=double_gaussian_amplitude*exp(-(time-xc+double_gaussian_offset).^2./(2*double_gaussian_sigma^2)); 80 87 G1(time>xc)=0; 81 88 G2(time<xc)=0; 82 Profile=(G1+G2 )./sum(G1+G2);89 Profile=(G1+G2+G3)./sum(G1+G2+G3); 83 90 end 84 91
Note: See TracChangeset
for help on using the changeset viewer.