<%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'] f.write(template.render(**context_copy)) 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'] f.write(template.render(**context_copy)) baselines = context['data']['doublefourier']['baseline interferograms'].keys() baseline_link = {} for baseline in baselines: filename = 'interferogram_%s_%s.html' % baseline filename = filename.replace('-', 'm') baseline_link[baseline] = filename link = os.path.join(context['dirname'], filename) with open(link, 'w') as f: template = mylookup.get_template('sourcespectrum.html') context_copy = context.kwargs context_copy['sourceid'] = '_%s_%s_fft' % (baseline) context_copy['spectrum'] = context['data']['doublefourier']\ ['baseline interferograms'][baseline] f.write(template.render(**context_copy)) #times = context['data']['doublefourier']['skyfft check'].keys() #times.sort() #print 'times', times #time_link = {} #for t in times: # filename = 'interferogram_%s.html' % t # time_link[t] = filename # link = os.path.join(context['dirname'], filename) # print 'link', link # with open(link, 'w') as f: # template = mylookup.get_template('sourcespectrum.html') # context_copy = context.kwargs # context_copy['sourceid'] = '_%s_fft' % (t) # context_copy['spectrum'] = context['data']['doublefourier']\ # ['skyfft check'][t] # 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

...

Baseline Interferograms

% for baseline in baselines:
...
% endfor ##

Check Interferograms

##% for t in times: ##
## ## ... ## ##
##% endfor