Easy Web Interfaces to IDL Code for NSTX Data Analysis Page: 4 of 8
This article is part of the collection entitled: Office of Scientific & Technical Information Technical Reports and was provided to UNT Digital Library by the UNT Libraries Government Documents Department.
Extracted Text
The following text was automatically extracted from the image on this page using optical character recognition software:
2. Web Tools in use on NSTX
Dozens of Web Tools are in use on NSTX. Most were initially created as interfaces to IDL
code already written for analyzing and displaying NSTX data. Currently, NSTX Web Tools
can, among other things:
- Plot or list results of NSTX Tree Data Interface (TDI) expressions or IDL routines,
overlaying different shots, with automatic time-scale conversion when signal math is
performed.
- Plot from "Scope" files, overlaying different shots.
- Create Movies of 2 fast 2-D cameras, with MDSplus signals vs. time overlaid.
- Query various NSTX SQL databases, for various data ranges, strings, etc.
- Query MDSplus trees for node names, contents of text nodes, ranges of signals, etc.
- Plot Color Contours of EFIT flux, with diagnostic sight lines, Thomson Scattering
profiles, and other arbitrary signals vs. time.
- List EFIT, LRDfit, and TRANSP runs available for a shot by owner.
3. Steps to create a Web Tool from existing IDL code
IDL
Code
Web Perl
Browser Server
PNG or
Text File
Fig. 1. Components necessary for a Web Tool to call IDL code. For a new Web Tool the Perl
Server does not have to be changed. The IDL code must take all its inputs from keywords.
As shown in Fig. 1, three components are necessary for a Web Tool to call IDL code. Custom
code is only needed for 1) the user interface web page to be displayed in any Web Browser,
and 2) the called IDL code (unless it already exists). The Perl Server script needs no
modification. The user interface is usually written as an HTML form with various fields, pull-
down menus, check boxes, etc. Many Web Tools on NSTX use cookies and JavaScript, but
they are not necessary. Input and selection fields on the Web Tool form must have a name
that corresponds to a keyword in the routine to be called, e.g. the HTML code for a pull-down
menu for the tree and a field for the shot number would be:
Tree: <SELECT NAME="tree" >
<OPTION VALUE="WF"> WF
<OPTION VALUE="EFIT"> EFIT
<OPTION VALUE="ENG"> ENG
</SELECT> <P>
Upcoming Pages
Here’s what’s next.
Search Inside
This article can be searched. Note: Results may vary based on the legibility of text within the document.
Tools / Downloads
Get a copy of this page or view the extracted text.
Citing and Sharing
Basic information for referencing this web page. We also provide extended guidance on usage rights, references, copying or embedding.
Reference the current page of this Article.
Davis, W. M. Easy Web Interfaces to IDL Code for NSTX Data Analysis, article, August 16, 2011; Princeton, New Jersey. (https://digital.library.unt.edu/ark:/67531/metadc844338/m1/4/: accessed April 19, 2024), University of North Texas Libraries, UNT Digital Library, https://digital.library.unt.edu; crediting UNT Libraries Government Documents Department.