Source code :: Spectrograms.php

[Return]
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
##!/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
    import re
    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>NTM detected from Mirnov coils mc1,mc5,mc9,mc13</h3>
    
  
%for i in range(-1,3): 
	
    ${make_image( "graphs/spectrogram"+str(i)+".png" , "NTM of the order "+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&amp;width=700&amp;height=20&amp;showstop=1&amp;showvolume=1" />
    </object>
    <?php 
    }
    ?>
    <br/>

% endfor

Navigation