0001
0002
0003
0004
0005
0006
0007
0008 B = 2;
0009 zoomfactor = 1.4;
0010 J_min = 2;
0011 L = 64;
0012 Spin = 0;
0013 N = 0;
0014 J = s2let_jmax(L, B);
0015 plot_caxis_scale = 20
0016 type = 'colour';
0017 lighting = false;
0018
0019 ns = ceil(sqrt(2+J-J_min+1)) ;
0020 ny = 4;
0021 nx = 3;
0022
0023 maxfigs = nx*ny;
0024 pltroot = '../../../figs'
0025 configstr = ['Spin',int2str(Spin),'_N',int2str(N),'_L',int2str(L),'_B',int2str(B),'_Jmin',int2str(J_min)]
0026 [psi_lm phi_l] = s2let_wavelet_tiling(B, L, N, Spin, J_min);
0027
0028 figure('Position',[100 100 300 300])
0029 h=subplot(1, 1, 1);
0030 flm = zeros(L^2,1);
0031 for l = 0:L-1
0032 flm(l^2+l+1,1) = phi_l(l+1);
0033 end
0034 f = ssht_inverse(flm, L, 'Reality', true);
0035 ssht_plot_sphere(f, L, 'Type', type, 'Lighting', lighting);
0036 title(h,'Scaling fct')
0037 locate = get(h,'title');
0038 pos = get(locate,'position');
0039 pos(1,2) = pos(1,2)+0.7;
0040 pos(1,1) = pos(1,1)-0.7;
0041 set(locate,'pos',pos);
0042 zoom(1.2)
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055 figure('Position',[100 100 1200 600])
0056 ind = 0;
0057 for j = J_min:J
0058 flm = psi_lm(:,j+1);
0059
0060 if Spin == 0
0061 f = ssht_inverse(flm, L, 'Reality', true);
0062 ind = ind + 1;
0063 if ind <= maxfigs
0064 h = subplot(ny, nx, ind);
0065 ssht_plot_sphere(f, L, 'Type', type, 'Lighting', lighting);
0066 title(h, ['Wavelet j = ',int2str(j-J_min+1)])
0067 locate = get(h,'title');
0068 pos = get(locate,'position');
0069 pos(1,2) = pos(1,2)+0.7;
0070 pos(1,1) = pos(1,1)-0.7;
0071 set(locate,'pos',pos);
0072
0073
0074
0075
0076 end
0077 end
0078 if Spin > 0
0079 f = ssht_inverse(flm, L, 'spin', Spin);
0080 ind = ind + 1;
0081 if ind <= maxfigs
0082 h = subplot(ny, nx, ind);
0083 ssht_plot_sphere(real(f), L, 'Type', type, 'Lighting', lighting);
0084 title(h, ['Wavelet j = ',int2str(j-J_min+1), ', real part'])
0085 locate = get(h,'title');
0086 pos = get(locate,'position');
0087 pos(1,2) = pos(1,2)+0.7;
0088 pos(1,1) = pos(1,1)-0.7;
0089 set(locate,'pos',pos);
0090
0091
0092
0093
0094 end
0095 ind = ind + 1;
0096 if ind <= maxfigs
0097 h = subplot(ny, nx, ind);
0098 ssht_plot_sphere(imag(f), L, 'Type', type, 'Lighting', lighting);
0099 title(h, ['Wavelet j = ',int2str(j-J_min+1), ', imag part'])
0100 locate = get(h,'title');
0101 pos = get(locate,'position');
0102 pos(1,2) = pos(1,2)+0.7;
0103 pos(1,1) = pos(1,1)-0.7;
0104 set(locate,'pos',pos);
0105
0106
0107
0108
0109 end
0110
0111 ind = ind + 1;
0112 if ind <= maxfigs
0113 h = subplot(ny, nx, ind);
0114 ssht_plot_sphere(abs(f), L, 'Type', type, 'Lighting', lighting);
0115 title(h, ['Wavelet j = ',int2str(j-J_min+1), ', abs part'])
0116 locate = get(h,'title');
0117 pos = get(locate,'position');
0118 pos(1,2) = pos(1,2)+0.7;
0119 pos(1,1) = pos(1,1)-0.7;
0120 set(locate,'pos',pos);
0121
0122
0123
0124
0125 end
0126
0127 end
0128 end
0129
0130
0131 colormap(jet)
0132 fname = [pltroot,'/s2let_demo5_', configstr, '_wav_jet.png']
0133 print('-r200', '-dpng', fname)
0134 colormap(hot)
0135 fname = [pltroot,'/s2let_demo5_', configstr, '_wav_hot.png']
0136 print('-r200', '-dpng', fname)
0137