##!/usr/bin/python2
## -*- coding: utf-8 -*-
<%page args="shot, page" />
<%
from pygolem_lite.modules import make_config, get_page_paths, make_image
from pygolem_lite import Shot
cData = Shot(shot)
page_path, base_path, page = get_page_paths(shot, page)
%>
<a href="main.py">[Source - main.py]</a><br/>
<a href="CMWT.py">[Source - CMWT.py]</a><br/>
<a href="SoundGenerator.py">[Source - SoundGenerator.py]</a><br/>
<h3>Magnetic islands detected from Magnetic Ring </h3>
% if cData['plasma']:
${make_image( "graphs/poloidalM.png" , "Poloidal mode number M ")}
% endif
%for i in range(-4,5):
${make_image( "graphs/spectrogram"+str(i)+".png" , "Magnetic island of M = "+str(i))}
<?php
if (file_exists("${ "graphs/spectrogram"+str(i)+".png" }")) {
?>
<br/>
<object type="application/x-shockwave-flash" data="./player_mp3_maxi.swf" width="700" height="20" hspace="-10" >
<param name="movie" value="./player_mp3_maxi.swf" />
<param name="bgcolor" value="#ffffff" />
<param name="FlashVars" value="mp3=./mp3/sound${str(i)}.mp3&width=700&height=20&showstop=1&showvolume=1" />
</object>
<?php
}
?>
<br/>
% endfor