<%inherit file="base.html"/> <% import os.path frequency_axis = context['data']['doublefourier']['frequency axis'] # construct html pages with sky model plane plots for iwn,wn in enumerate(frequency_axis): link = os.path.join(context['dirname'], 'skymodelt0plane%s.html' % (wn)) with open(link, 'w') as f: template = mylookup.get_template('skymodelplane.html') context_copy = context.kwargs context_copy['wn'] = wn context_copy['iwn'] = iwn context_copy['stagename'] = 'doublefourier' context_copy['resultname'] = 'sky at time 0' f.write(template.render(**context_copy)) for iwn,wn in enumerate(frequency_axis): link = os.path.join(context['dirname'], 'skymodelpbt0plane%s.html' % (wn)) with open(link, 'w') as f: template = mylookup.get_template('skymodelplane.html') context_copy = context.kwargs context_copy['wn'] = wn context_copy['iwn'] = iwn context_copy['stagename'] = 'doublefourier' context_copy['resultname'] = 'sky*beams at time 0' f.write(template.render(**context_copy)) for iwn,wn in enumerate(frequency_axis): link = os.path.join(context['dirname'], 'skymodelfftt0plane%s.html' % (wn)) with open(link, 'w') as f: template = mylookup.get_template('skymodelplane.html') context_copy = context.kwargs context_copy['wn'] = wn context_copy['iwn'] = iwn context_copy['stagename'] = 'doublefourier' context_copy['resultname'] = 'skyfft at time 0' f.write(template.render(**context_copy)) link = os.path.join(context['dirname'], 'sourcespectrumbaseline.html') with open(link, 'w') as f: template = mylookup.get_template('sourcespectrum.html') context_copy = context.kwargs context_copy['sourceid'] = 'baseline' context_copy['spectrum'] = context['data']['doublefourier']\ ['skyfft spectrum at time 0'] print 'before' f.write(template.render(**context_copy)) print 'after' link = os.path.join(context['dirname'], 'baselineffttest.html') with open(link, 'w') as f: template = mylookup.get_template('sourcespectrum.html') context_copy = context.kwargs context_copy['sourceid'] = 'testfft' context_copy['spectrum'] = context['data']['doublefourier']\ ['test FTS at time 0'] print 'before' f.write(template.render(**context_copy)) print 'after' %>

Sky Model Planes at t=0

% for wn in frequency_axis: <% wnformatted = '%6.4gcm-1' % wn %>
...

${wnformatted}

% endfor

Sky Model Planes*Pb at t=0

% for wn in frequency_axis: <% wnformatted = '%6.4gcm-1' % wn %>
...

${wnformatted}

% endfor

Sky Model FFT at t=0

% for wn in frequency_axis: <% wnformatted = '%6.4gcm-1' % wn %>
...

${wnformatted}

% endfor

Measured spectrum at t=0

...

Measured interferogram at t=0

...