Rev | Line | |
---|
[52] | 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 | cleanimage = context['data']['cleanimage']
|
---|
| 10 | frequency_axis = cleanimage['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'], '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.