Line | |
---|
1 | <%inherit file="base.html"/>
|
---|
2 |
|
---|
3 | <!-- do the plotting -->
|
---|
4 | <%
|
---|
5 | import os.path
|
---|
6 | import numpy as np
|
---|
7 | import common.commonobjects as co
|
---|
8 |
|
---|
9 | dirtyimage = context['data']['dirtyimage']
|
---|
10 | frequency_axis = dirtyimage['wavenumber [cm-1]']
|
---|
11 |
|
---|
12 | # construct html pages with sky model plane plots
|
---|
13 | for 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.