About
[Template source]
Main authors of this web:
Michal Odstrcil
Tomas Odstrcil
Ondrej Grover
Warranty
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMIT-
ED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE AUTHORS BE LIABLE FOR
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
OR OTHER DEALINGS IN THE SOFTWARE.
Basic rules:
- Do not copy large files do your directory, use pygolem_lite or symbolic links
- Do not place static files such as manuals to include directories, place it to one shared location
- Preferably use binary saved data, not ASCII (text) files => it is much faster and saves disk space
- Plot images in png, svg, svgz formats, !! do not use jpg !!!
- Try to limit your CPU/memory/disk space usage
- Do never place computationaly demanding tasks to your mako template code
FAQ:
See Python/Matlab/IDL interface in our wiki.
If you need to download data from many shots, the simplest way is to use pygolem web interface:
http://golem.fjfi.cvut.cz/utils/data//loop_voltage . Names of the diagnostics are shown in
Data page and you can either use the links provided by the Data page or if you prefer another data formats use following syntax
http://golem.fjfi.cvut.cz/utils/data/12403/<your diagn name>_<options>.<format>
supported formats are
None | Ordinary TAB separated ASCII format |
.txt | Ordinary TAB separated ASCII format |
.gz | Zip compressed ordinary TAB separated ASCII format |
.csv | Comma / semicolon separated ASCII values |
.npy | Standard python binary data |
.npz | Compressed python binary data (see python interface) |
.mat | Matlab binary data (see matlab interface) |
.xls | Excel 97 format |
image | Supported formats: png, svg, svgz |
.pro | IDL - not supported, use .mat files (load_mat.pro), (see IDL interface ) |
for the ASCII formats you can select if you prefer dots/commas decimal separators
_dp | Dots point separators, selected as default !! |
_cp | Comma points separator |
Examples:
http://golem.fjfi.cvut.cz/utils/data/12403/loop_voltage - returns simple ASCII data
http://golem.fjfi.cvut.cz/utils/data/12403/loop_voltage.npz - returns compressed loop voltage data
http://golem.fjfi.cvut.cz/utils/data/12403/loop_voltage_cp.csv - comma separated csv - czech excel
http://golem.fjfi.cvut.cz/utils/data/12403/loop_voltage.xls - Excel/OO Calc/Gnumeric
See more details in our wiki
Add new page
- get an account for buon.fjfi.cvut.cz
- add new folder to includes/analysis or includes/diagnostics in form [data][Name][.ON] (see /srv/fyzport/fyzika/golem/velin/includes/)
- put some html/php/template file inside, ( supported types: html, htm, php, template ), name of file corresponds to title, file can start with numbers (i.e 01_Title.htm) if you need to select the items order in menu
- add scripts that should prepare all data / graphs for the web to your folder
- add makefile that have functions "acquisition", "analysis", "plots", ("postanalysis"), acquisition should do only basic data processing, and all plotting should be in "plots" !!! to improve speed (parallelization)
- Your template and log files will be linked in top right corner of your page
Load data in your page
use code i.e for loop voltage
from pygolem_lite import Shot
tvec, data = Shot()['loop_voltage']
and you will download data for shot number where is currently placed your script otherwise use
from pygolem_lite import Shot
tvec, data = Shot(12403)['loop_voltage']
if you want to download data from DAS "nistandard":
tvec, data = Shot(12403)['nistandard']
if you need only one channel you can use either number or
channel id
tvec, data = Shot(12403)['nistandard', 0]
tvec, data = Shot(12403)['nistandard', 'uloop']
full list of accesible signal is in
shots/12403//Data.php
Is is also possible to use wget and pygolem web interface.
Generate an icon for your analysis/diagnostics on the Home page
You should generate an image with width = 150px and height ~ 100px in your folder and name it icon.png
You can either use simple bash command and convert your plot to the small size
convert -resize 150x120\! your_plot.png icon.png
or if you use Python
import os
os.system('convert -resize 150x120\! your_plot.png icon.png')
and finally if you used pygolem plot interface you can create a small plot
paralel_multiplot(data, "" , 'icon', (4,3), 40)
Comments