source: trunk/templates/cleanimage.html@ 52

Last change on this file since 52 was 52, checked in by JohnLightfoot, 10 years ago

almost working

File size: 1.1 KB
Line 
1<%inherit file="base.html"/>
2
3<!-- do the plotting -->
4<%
5import os.path
6import numpy as np
7import common.commonobjects as co
8
9cleanimage = context['data']['cleanimage']
10frequency_axis = cleanimage['wavenumber [cm-1]']
11
12# construct html pages with sky model plane plots
13for iwn,wn in enumerate(frequency_axis):
14 link = os.path.join(context['dirname'], 'cleanimageplane%s.html' % (wn))
15 with open(link, 'w') as f:
16 template = mylookup.get_template('cleanimageplane.html')
17 context_copy = context.kwargs
18 context_copy['wn'] = wn
19 context_copy['iwn'] = iwn
20 context_copy['stagename'] = 'cleanimage'
21 f.write(template.render(**context_copy))
22%>
23
24<!-- link to the plot pages from this page -->
25
26<h3>Clean Image Planes</h3>
27<div class="row">
28% for wn in frequency_axis:
29 <%
30 wnformatted = '%6.4gcm-1' % wn
31 %>
32 <div class="col-xs-6 col-md-3">
33 <a href="cleanimageplane${wn}.html" class="thumbnail">
34 <img src="cleanimageplane${wn}.png" alt="...">
35 <div>
36 <h4>${wnformatted}</h4>
37 </div>
38 </a>
39 </div>
40% endfor
41</div>
Note: See TracBrowser for help on using the repository browser.