1 function c = combine_rans(n,w)
6 a1 = sum(sum(c1<max(c1(:))));
7 a = sum(sum(c<max(c(:))));
8 c = a/(a+a1)*c+a1/(a+a1)*c1;
13 %c = imgaussfilt(c,1);
15 % figure(123),mesh(c);
16 %figure(124),contour(c,20,'k')
18 t_min = min(w.tign_g(:));
19 t_max = max(w.tign_g(:));
23 % days = round((t_max-t_min)/24/3600);
24 % stepper = (c_max-c_min)/days;
28 % msk = c>c_min+i*stepper;
29 % figure(217),scatter(w.fxlong(msk),w.fxlat(msk))
33 % %m_rand = 1/10*(1+sin((i+1)*pi*rand/2))^2;
34 % c(~msk)= m_rand/10*c(~msk);
40 c = t_min + (t_max-t_min)/(c_max-c_min)*(c-c_min);
41 %figure(123),mesh(w.fxlong,w.fxlat,c);
42 figure(124),contour(w.fxlong,w.fxlat,c,20,'k')