Source code :: Data.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
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
##!/usr/bin/python2
## -*- coding: utf-8 -*-


##""" CREATED: 7/2012
    ##AUTHOR: MICHAL ODSTRCIL
##"""

<%page args="shot,  page, default_path"/>

<% base = 'http://golem.fjfi.cvut.cz'
from pygolem_lite import Shot
from pygolem_lite.config import  TororoidalMagneticFieldTrigger, TororoidalMagneticFieldCapacitor, CurrentDriveElectricFieldCapacitor, StabilizationCapacitor, BreakDownElectricFieldCapacitor
from pygolem_lite.web import cData
import datetime, cStringIO
from pygolem_lite.web import cat, emph, get_page_paths
 
page_path, base_path, page  = get_page_paths(shot, page, default_path)
get = cData.get_nice
%>

##<h3>Basic parameters (Shot: ${shot}):</h3>

##<ul>

##<li>Chamber pressure before gas filling (vacuum pressure): p<sub>ch<sub>init</sub></sub> = ${emph(get('pressure_initial', '%.2f mPa'))} <br/>
##<a href="${base}/utils/data/${shot}/pressure_initial">${base}/utils/data/${shot}/pressure_initial</a>


##<li>Chamber pressure just before the triggering: p<sub>ch<sub>trig</sub></sub>=${emph(get('pressure', '%.2f mPa'))}<br/>
##<a href="${base}/utils/data/${shot}/pressure">${base}/utils/data/${shot}/pressure</a>

##<li>Working gas pressure request: p<sub>H2<sub>req</sub></sub>=${get('pressure_request', '%.2f')} mPa<br/>
##<a href="${base}/utils/data/${shot}/pressure_request">${base}/utils/data/${shot}/pressure_request</a>


##<li>Chamber temperature: T<sub>ch</sub>=${get('chamber_temperature', '%.2f')} &deg;C over the room temperature (thermocouple)</li>
##<a href="${base}/utils/data/${shot}/chamber_temperature">${base}/utils/data/${shot}/chamber_temperature</a>

##<li>Chamber inductance: L<sub>ch</sub>= ${get('chamber_inductance', '%.2f &mu;H', 1e6)}<br/>
##<a href="${base}/utils/data/${shot}/chamber_inductance">${base}/utils/data/${shot}/chamber_inductance</a>

##<li>Chamber resistance: R<sub>ch</sub>= ${get('chamber_resistance', '%.3f &Omega;')}<br/>
##<a href="${base}/utils/data/${shot}/chamber_resistance">${base}/utils/data/${shot}/chamber_resistance</a>


##<li>C<sub>B<sub>t</sub></sub> capacitors ${get('Cb', '%.1f', 1e3)} mF) charged to: ${emph('%i V'%get('Ub'))}, triggered ${get('Tb','%.1f ms', 1e3)}</li>
##<a href="${base}/utils/data/${shot}/Ub">${base}/utils/data/${shot}/Ub</a><br/>
##<a href="${base}/utils/data/${shot}/Tb">${base}/utils/data/${shot}/Tb</a>


##<li>C<sub>BD</sub> capacitors ${get('Cbd', '%.1f', 1e3)} mF) charged to: ${emph(get('Ubd', '%i V'))}, triggered ${get('Tbd','%.1f ms', 1e3)} </li>
##<a href="${base}/utils/data/${shot}/Ubd">${base}/utils/data/${shot}/Ubd</a><br/>
##<a href="${base}/utils/data/${shot}/Tbd">${base}/utils/data/${shot}/Tbd</a>

##<li>C<sub>CD</sub> capacitors ${get('Ccd', '%.1f', 1e3)} mF)  charged to: ${emph(get('Ucd', '%i V'))}, triggered ${get('Tcd','%.1f ms', 1e3)} </li>
##<a href="${base}/utils/data/${shot}/Ucd">${base}/utils/data/${shot}/Ucd</a><br/>
##<a href="${base}/utils/data/${shot}/Tcd">${base}/utils/data/${shot}/Tcd</a>

##<li>C<sub>ST</sub> capacitors ${get('Cst', '%.1f', 1e3)} mF)  charged to: ${emph(get('Ust', '%i V'))}, triggered ${ get('Tst','%.1f ms', 1e3) } </li>
##<a href="${base}/utils/data/${shot}/Ust">${base}/utils/data/${shot}/Ust</a><br/>
##<a href="${base}/utils/data/${shot}/Tst">${base}/utils/data/${shot}/Tst</a>




    
##<li>charging log: t, U<sub>B</sub>, U<sub>BD</sub>, U<sub>CD</sub>, U<sub>DS</sub>, p<sub>chamber</sub></a></li>
##<a href="${base}/${default_path}/${shot}/nabijeni/Time_AD4ETHb">${base}/${shot}/nabijeni/Time_AD4ETHb</a>

##<li>Time since <a href="http://golem.fjfi.cvut.cz/tasks/${cat(base_path + "/SessionNameDate")}">session</a> beginning: ${str(datetime.timedelta(seconds=int(get('session_length'))))} h</li>
##</ul>



<h3>Diagnostics:</h3>

<ul>

<li>Figures:<br/>
raw data: <a href='${base}/${default_path}/${shot}/basicdiagn/graphpresb.png'>${base}/${default_path}/${shot}/basicdiagn/graphpresb.png</a><br/>
integrated data (I<sub>ch+p</sub>): <a href='${base}/${default_path}/${shot}/basicdiagn/graphpresi.png'>${base}/${default_path}/${shot}/basicdiagn/graphpresi.png</a><br/>
integrated data (I<sub>p</sub>): <a href='${base}/${default_path}/${shot}/basicdiagn/graphpresfull.png'>${base}/${default_path}/${shot}/basicdiagn/graphpresb.png</a><br/>
zoomed data: <a href='${base}/${default_path}/${shot}/basicdiagn/graphpres.png'>${base}/${default_path}/${shot}/basicdiagn/graphpresb.png</a></li>

</ul>

% if get('plasma', '%.2f') == "1":
    <h3>Plasma created!</h3><ul>
    <li>Plasma start &tau;<sub>pl_start</sub>=${ get('plasma_start', '%.1f', 1e3)} ms <br/>
    <a href="${base}/${default_path}/${shot}/basicdiagn/PlasmaStart">${base}/${default_path}/${shot}/basicdiagn/PlasmaStart</a>
    <li>Plasma end &tau;<sub>pl_start</sub>=${ get('plasma_end', '%.1f', 1e3)} ms <br/>
    <a href="${base}/${default_path}/${shot}/basicdiagn/PlasmaEnd">${base}/${default_path}/${shot}/basicdiagn/PlasmaEnd</a>
% endif


</ul>




<h2>  <a id="all_data"> List of <b>all available data in ${emph('Pygolem')} </b> </a> </h2>

See more details about the <a href="About.php#pygolem_lite"> pygolem interface</a>

${cData.get_pygolem_list()}

<% 
  das_list = []
  for i in sorted(cData.das_config.keys()):
    if cData.get_data(i, testRun = True):
      das_list += [i]
%> 

${cData.get_pygolem_das(das_list)}

Navigation