Basic Diag | offset | MHD_activity | Spectrogram | q | animation | pictures | MHD link | |
---|---|---|---|---|---|---|---|---|
#39165 (39165/Diagnostics/MHDring_TM),
(22-05-18,
15:00:34),
Vacuum shot: 39159 | ||||||||
./Dirigent.sh --discharge --UBt 1150 --TBt 0 --Ucd 700 --Tcd 1900 --preionization 1 --gas H --pressure 10 --diagnostics.limitermirnovcoils "vacuum_shot=39159" --discharge.preionization "main_switch='on',powsup_heater=80,powsup_accel=100" --discharge.position_stabilization "main_switch='on',radial_switch='on',vertical_waveform='3000,0;11000,-20;13000,-20;20000,0;30000,0',vertical_switch='on',radial_waveform='2000,0;3000,0;9000,0;11000,-20;19000,0;25000,0'" --diagnostics_biasingelectrode 5000,0;8000,0;11000,0;14000,0 --ScanDefinition "" --comment "Master test" | ||||||||
tpl=15.251 ms | ||||||||
Matlab html output MatlabOutput.log |
||||||||
#39317 (39317/Diagnostics/MHDring_TM),
(22-06-13,
18:08:21),
Vacuum shot: 39316 | ||||||||
./Dirigent.sh --discharge --UBt 1150 --TBt 0 --Ucd 700 --Tcd 1900 --preionization 1 --gas H --pressure 10 --diagnostics.limitermirnovcoils "vacuum_shot=39316" --discharge.preionization "main_switch='on',powsup_heater=80,powsup_accel=100" --discharge.position_stabilization "main_switch='off',radial_switch='on',vertical_waveform='3000,0;11000,-20;22000,0;30000,0',vertical_switch='on',radial_waveform='2000,0;3000,0;9000,0;12000,-20;24000,0;25000,0'" --ScanDefinition "" --comment "reference" | ||||||||
tpl=11.304 ms | ||||||||
Matlab html output MatlabOutput.log |
||||||||
#39391 (39391/Diagnostics/MHDring_TM),
(22-06-15,
12:27:44),
Vacuum shot: 39390 | ||||||||
./Dirigent.sh --discharge --UBt 1150 --TBt 0 --Ucd 700 --Tcd 1900 --preionization 1 --gas H --pressure 10 --diagnostics.limitermirnovcoils "vacuum_shot=39390" --discharge.preionization "main_switch='on',powsup_heater=80,powsup_accel=100" --discharge.position_stabilization "main_switch='on',radial_switch='on',vertical_waveform='3000,0;12000,-10;22000,0;30000,0',vertical_switch='on',radial_waveform='2000,0;3000,0;9000,0;12000,-10;24000,0;25000,0'" --diagnostics_biasingelectrode 5000,0;8000,20;11000,-20;14000,0 --ScanDefinition "" --comment "Master test r_biasprobe=102 mm" | ||||||||
tpl=10.104 ms | ||||||||
Matlab html output MatlabOutput.log |
||||||||
#39773 (39773/Diagnostics/MHDring_TM),
(22-09-22,
13:36:57),
Vacuum shot: 39774 | ||||||||
./Dirigent.sh --discharge --UBt 400 --TBt 0 --Ucd 700 --Tcd 5000 --preionization 1 --gas H --pressure 10 --Bt_orientation CW --CD_orientation CW --cosi "vacuum_shot=39774" --comment "MHD coils plasma low pressure " | ||||||||
tpl=5.795 ms | ||||||||
Matlab html output MatlabOutput.log |
#Nutno volat http://golem.fjfi.cvut.cz/RetroActions/XY, a ne https:// (kvuli obrazkum) shots=$2 RunName=$1 DoMatlab=$3 id=0123MHDs BP=/golem/database diag=Diagnostics/MHDring_TM cesta=$BP/www/RetroActions/$id/"$RunName"_`date '+%d%m%y'` soubor=index.html echo Je to zde: http://golem.fjfi.cvut.cz/RetroActions/$id/`basename $cesta` mkdir -p $cesta;cd $cesta mkdir -p Resources cp /golem/Dirigent/$diag/* ../*.* Resources/ 2>/dev/null echo "<html><body><h2>$diag <a href=Resources>Retroaction</a> <a href=http://golem.fjfi.cvut.cz/RetroActions/$id>Base dir: $id</a></h2>" > $soubor; echo "Command line: bash ${BASH_SOURCE} $@<br/>" >> $soubor; echo "Date: `date`<br/>" >> $soubor; echo "Parameters: From:#$from, To:#$to<hr><table>" >> $soubor; echo "<tr><th>Basic Diag</th><th>offset</th><th>MHD_activity</th><th>Spectrogram</th><th>q</th><th>animation</th><th>pictures</th><th>MHD link</th></tr>" >> $soubor; function IndivShot () { local ShotNo=$1 cmd=$(< /golem/shots/$ShotNo/Production/Parameters/CommandLine);cmd=`echo ${cmd##*vacuum_shot=}`;Vacuum_shot=`echo ${cmd%%\"*}` if \ [[ -d "$BP/operation/shots/$ShotNo/$diag" ]] && \ [[ -d "$BP/operation/shots/$Vacuum_shot/$diag" ]] && \ [[ -f "/golem/shots/$ShotNo/Diagnostics/BasicDiagnostics/Results/is_plasma" ]] && \ [[ $(< /golem/shots/$ShotNo/Diagnostics/BasicDiagnostics/Results/is_plasma) != "0.000" ]] && \ [[ $(< /golem/shots/$ShotNo/Production/Parameters/CommandLine) =~ "vacuum_shot" ]] && \ [[ ! $(< /golem/shots/$ShotNo/Production/Parameters/CommandLine) =~ "vacuum_shot=\"" ]]; then cp ../DischargeScript.bash $BP/operation/shots/$ShotNo/$diag/ cd $BP/operation/shots/$ShotNo/$diag bash DischargeScript.bash $diag $ShotNo $DoMatlab cd $OLDPWD cat $BP/operation/shots/$ShotNo/$diag/RetroRow.html >> $soubor; fi } for ShotNo in $shots; do echo $ShotNo:; IndivShot $ShotNo done echo "</table><hr/><h3><u>Global script:</u></h3><pre>">> $soubor; cat ../GlobalScript.bash|sed 's/</\</g'|sed 's/>/\>/g' >> $soubor; echo "</pre><hr/><h3><u>Discharge script:</u></h3><pre>">> $soubor; cat ../DischargeScript.bash|sed 's/</\</g'|sed 's/>/\>/g' >> $soubor; echo "</pre></body></html>" >> $soubor; cd $OLDPWD #bash GlobalScript.bash snb1 "`seq 39421 39773`" true #bash GlobalScript.bash 39kSelection40k "39165 39317 39391 39773" false
diag=$1 ShotNo=$2 DoIt=$3 BP=/golem/database cp /golem/Dirigent/$diag/* . 2>/dev/null #Vacuum_shot=$(</golem/database/operation/shots/$ShotNo/Production/Parameters/vacuum_shot) cmd=$(< /golem/shots/$ShotNo/Production/Parameters/CommandLine);cmd=`echo ${cmd##*vacuum_shot=}`;Vacuum_shot=`echo ${cmd%%\"*}` #Correction: echo $Vacuum_shot >/golem/database/operation/shots/$ShotNo/Production/Parameters/vacuum_shot echo Diagnostics: $diag echo ShotNo: http://golem.fjfi.cvut.cz/shots/$ShotNo echo Vacuum shot: http://golem.fjfi.cvut.cz/shots/$Vacuum_shot echo RetroRow: http://golem.fjfi.cvut.cz/shots/$ShotNo/$diag/RetroRow.html colspan=9 echo "<tr> <td colspan=$colspan><a href=/shots/$ShotNo>#$ShotNo</a> (<a href=/shots/$ShotNo/$diag>$ShotNo/$diag</a>), ($(< /golem/database/operation/shots/$ShotNo/shot_date), $(< /golem/database/operation/shots/$ShotNo/shot_time)), <a href=/shots/$Vacuum_shot>Vacuum shot: $Vacuum_shot</a><br> </td></tr>">RetroRow.html echo "<tr><td colspan=$colspan>$(< /golem/shots/$ShotNo/Production/Parameters/CommandLine)</td></tr>" >>RetroRow.html echo "<tr><td colspan=$colspan>t<sub>pl</sub>=$(< /golem/shots/$ShotNo/Diagnostics/BasicDiagnostics/Results/t_plasma_duration) ms</td></tr>" >>RetroRow.html echo '<tr><td>' >>RetroRow.html echo " <a href=/shots/$ShotNo/Diagnostics/BasicDiagnostics/icon-fig.png><img src=/shots/$ShotNo/Diagnostics/BasicDiagnostics/graph.png alt='Basic diagnostics' ></a></td> <!--<td><img src=/shots/$ShotNo/$diag/graph.png></td>-->" \ >>RetroRow.html FIGS="offset.png MHD_activity.png Spectrogram.png q.png animation.gif[0] pictures.png" if $DoIt; then cp Script.m Script.sf sed "s/ShotNo = 0/ShotNo = $ShotNo/g;s/vacuum_shot = 0/vacuum_shot = $Vacuum_shot/g" Script.sf > Script.m matlab -nosplash -nodesktop -r Script_publish |& tee -a MatlabOutput.log fi for fig in $FIGS; do #echo $fig if $DoIt; then convert -resize 180 $fig ${fig%%.*}-icon.png;fi echo '<td><a href='/shots/$ShotNo/$diag/$fig'><img src='/shots/$ShotNo/$diag/${fig%%.*}-icon.png' alt='$fig'/></a></td>' >>RetroRow.html done cp pictures-icon.png graph.png cp pictures.png icon-fig.png echo "<td>\ <a href=/shots/$ShotNo/$diag/html/Script.html>Matlab html output</a><br></br>\ <a href=/shots/$ShotNo/$diag/MatlabOutput.log>MatlabOutput.log</a>\ </td>" >>RetroRow.html echo '<meta http-equiv="Refresh" content="0; url=/shots/'$ShotNo'/'$diag'/html/Script.html"/>' >analysis.html echo "</tr>" >>RetroRow.html #cat RetroRow.html