<%
# construct html pages with primary beam plots
for wn in wavenumbers:
link = os.path.join(context['dirname'], 'primary_beam%s.html' % (wn))
with open(link, 'w') as f:
template = mylookup.get_template('beamplot.html')
context_copy = context.kwargs
context_copy['wn'] = wn
context_copy['beamtype'] = 'primary beam'
f.write(template.render(**context_copy))
# construct html pages with dirty beam plots
for wn in wavenumbers:
link = os.path.join(context['dirname'], 'dirty_beam%s.html' % (wn))
with open(link, 'w') as f:
template = mylookup.get_template('beamplot.html')
context_copy = context.kwargs
context_copy['wn'] = wn
context_copy['beamtype'] = 'dirty beam'
f.write(template.render(**context_copy))
# construct html pages with clean beam plots
for wn in wavenumbers:
link = os.path.join(context['dirname'], 'clean_beam%s.html' % (wn))
with open(link, 'w') as f:
template = mylookup.get_template('beamplot.html')
context_copy = context.kwargs
context_copy['wn'] = wn
context_copy['beamtype'] = 'clean beam'
f.write(template.render(**context_copy))
%>
Primary Beams
% for wn in context['data']['beamsgenerator']['primary beam'].keys():
<%
wnformatted = '%6.4gcm-1' % wn
%>
% endfor
Dirty Beams
% for wn in context['data']['beamsgenerator']['dirty beam'].keys():
<%
wnformatted = '%6.4gcm-1' % wn
%>
% endfor
Clean Beams
% for wn in context['data']['beamsgenerator']['clean beam'].keys():
<%
wnformatted = '%6.4gcm-1' % wn
%>
% endfor