1 | <%inherit file="base.html"/>
|
---|
2 |
|
---|
3 | <!-- do the plotting -->
|
---|
4 | <%
|
---|
5 | import os.path
|
---|
6 |
|
---|
7 | frequency_axis = context['data']['doublefourier']['frequency axis']
|
---|
8 |
|
---|
9 | # construct html pages with sky model plane plots
|
---|
10 | for iwn,wn in enumerate(frequency_axis):
|
---|
11 | link = os.path.join(context['dirname'], 'skymodelt0plane%s.html' % (wn))
|
---|
12 | with open(link, 'w') as f:
|
---|
13 | template = mylookup.get_template('skymodelplane.html')
|
---|
14 | context_copy = context.kwargs
|
---|
15 | context_copy['wn'] = wn
|
---|
16 | context_copy['iwn'] = iwn
|
---|
17 | context_copy['stagename'] = 'doublefourier'
|
---|
18 | context_copy['resultname'] = 'sky at time 0'
|
---|
19 | f.write(template.render(**context_copy))
|
---|
20 |
|
---|
21 | for iwn,wn in enumerate(frequency_axis):
|
---|
22 | link = os.path.join(context['dirname'],
|
---|
23 | 'skymodelpbt0plane%s.html' % (wn))
|
---|
24 | with open(link, 'w') as f:
|
---|
25 | template = mylookup.get_template('skymodelplane.html')
|
---|
26 | context_copy = context.kwargs
|
---|
27 | context_copy['wn'] = wn
|
---|
28 | context_copy['iwn'] = iwn
|
---|
29 | context_copy['stagename'] = 'doublefourier'
|
---|
30 | context_copy['resultname'] = 'sky*beams at time 0'
|
---|
31 | f.write(template.render(**context_copy))
|
---|
32 |
|
---|
33 | for iwn,wn in enumerate(frequency_axis):
|
---|
34 | link = os.path.join(context['dirname'],
|
---|
35 | 'skymodelfftt0plane%s.html' % (wn))
|
---|
36 | with open(link, 'w') as f:
|
---|
37 | template = mylookup.get_template('skymodelplane.html')
|
---|
38 | context_copy = context.kwargs
|
---|
39 | context_copy['wn'] = wn
|
---|
40 | context_copy['iwn'] = iwn
|
---|
41 | context_copy['stagename'] = 'doublefourier'
|
---|
42 | context_copy['resultname'] = 'skyfft at time 0'
|
---|
43 | f.write(template.render(**context_copy))
|
---|
44 |
|
---|
45 | link = os.path.join(context['dirname'], 'sourcespectrumbaseline.html')
|
---|
46 | with open(link, 'w') as f:
|
---|
47 | template = mylookup.get_template('sourcespectrum.html')
|
---|
48 | context_copy = context.kwargs
|
---|
49 | context_copy['sourceid'] = 'baseline'
|
---|
50 | context_copy['spectrum'] = context['data']['doublefourier']\
|
---|
51 | ['skyfft spectrum at time 0']
|
---|
52 | print 'before'
|
---|
53 | f.write(template.render(**context_copy))
|
---|
54 | print 'after'
|
---|
55 |
|
---|
56 | link = os.path.join(context['dirname'], 'baselineffttest.html')
|
---|
57 | with open(link, 'w') as f:
|
---|
58 | template = mylookup.get_template('sourcespectrum.html')
|
---|
59 | context_copy = context.kwargs
|
---|
60 | context_copy['sourceid'] = 'testfft'
|
---|
61 | context_copy['spectrum'] = context['data']['doublefourier']\
|
---|
62 | ['test FTS at time 0']
|
---|
63 | print 'before'
|
---|
64 | f.write(template.render(**context_copy))
|
---|
65 | print 'after'
|
---|
66 | %>
|
---|
67 |
|
---|
68 | <!-- link to the plot pages from this page -->
|
---|
69 |
|
---|
70 | <h3>Sky Model Planes at t=0</h3>
|
---|
71 | <div class="row">
|
---|
72 | % for wn in frequency_axis:
|
---|
73 | <%
|
---|
74 | wnformatted = '%6.4gcm-1' % wn
|
---|
75 | %>
|
---|
76 | <div class="col-xs-6 col-md-3">
|
---|
77 | <a href="skymodelt0plane${wn}.html" class="thumbnail">
|
---|
78 | <img src="sky_at_time_0plane${wn}.png" alt="...">
|
---|
79 | <div>
|
---|
80 | <h4>${wnformatted}</h4>
|
---|
81 | </div>
|
---|
82 | </a>
|
---|
83 | </div>
|
---|
84 | % endfor
|
---|
85 | </div>
|
---|
86 |
|
---|
87 | <h3>Sky Model Planes*Pb at t=0</h3>
|
---|
88 | <div class="row">
|
---|
89 | % for wn in frequency_axis:
|
---|
90 | <%
|
---|
91 | wnformatted = '%6.4gcm-1' % wn
|
---|
92 | %>
|
---|
93 | <div class="col-xs-6 col-md-3">
|
---|
94 | <a href="skymodelpbt0plane${wn}.html" class="thumbnail">
|
---|
95 | <img src="sky_beams_at_time_0plane${wn}.png" alt="...">
|
---|
96 | <div>
|
---|
97 | <h4>${wnformatted}</h4>
|
---|
98 | </div>
|
---|
99 | </a>
|
---|
100 | </div>
|
---|
101 | % endfor
|
---|
102 | </div>
|
---|
103 |
|
---|
104 | <h3>Sky Model FFT at t=0</h3>
|
---|
105 | <div class="row">
|
---|
106 | % for wn in frequency_axis:
|
---|
107 | <%
|
---|
108 | wnformatted = '%6.4gcm-1' % wn
|
---|
109 | %>
|
---|
110 | <div class="col-xs-6 col-md-3">
|
---|
111 | <a href="skymodelfftt0plane${wn}.html" class="thumbnail">
|
---|
112 | <img src="skyfft_at_time_0plane${wn}.png" alt="...">
|
---|
113 | <div>
|
---|
114 | <h4>${wnformatted}</h4>
|
---|
115 | </div>
|
---|
116 | </a>
|
---|
117 | </div>
|
---|
118 | % endfor
|
---|
119 | </div>
|
---|
120 |
|
---|
121 | <h3>Measured spectrum at t=0</h3>
|
---|
122 | <div class="col-xs-6 col-md-3">
|
---|
123 | <a href="sourcespectrumbaseline.html" class="thumbnail">
|
---|
124 | <img src="sourcespectrumbaseline.png" alt="...">
|
---|
125 | </a>
|
---|
126 | </div>
|
---|
127 |
|
---|
128 | <h3>Measured interferogram at t=0</h3>
|
---|
129 | <div class="col-xs-6 col-md-3">
|
---|
130 | <a href="baselineffttest.html" class="thumbnail">
|
---|
131 | <img src="sourcespectrumtestfft.png" alt="...">
|
---|
132 | </a>
|
---|
133 | </div>
|
---|