source: trunk/templates/dirtyimage.html@ 54

Last change on this file since 54 was 54, 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
9dirtyimage = context['data']['dirtyimage']
10frequency_axis = dirtyimage['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'], 'dirtyimageplane%s.html' % (wn))
15 with open(link, 'w') as f:
16 template = mylookup.get_template('skymodelplane.html')
17 context_copy = context.kwargs
18 context_copy['wn'] = wn
19 context_copy['iwn'] = iwn
20 context_copy['stagename'] = 'dirtyimage'
21 context_copy['resultname'] = 'dirtyimage'
22 f.write(template.render(**context_copy))
23%>
24
25<!-- link to the plot pages from this page -->
26
27<h3>Dirty Image Planes</h3>
28<div class="row">
29% for wn in frequency_axis:
30 <%
31 wnformatted = '%6.4gcm-1' % wn
32 %>
33 <div class="col-xs-6 col-md-3">
34 <a href="dirtyimageplane${wn}.html" class="thumbnail">
35 <img src="dirtyimageplane${wn}.png" alt="...">
36 <div>
37 <h4>${wnformatted}</h4>
38 </div>
39 </a>
40 </div>
41% endfor
42</div>
Note: See TracBrowser for help on using the repository browser.