next up previous contents index
Next: Types of Data Up: Access and Plot a Previous: Access and Plot a

Specify a Data Element, Read, and Plot its Data

 

There are two ways to specify a data element to CUPLOT. One is to enter the shot number and data element name. This method is simpler for accessing single data items and is decribed in the next several sections. The other way is to use the ``Define Curve'' commands described in section 3.13.

SH
sets the shot number, Snap or Globe shot-try, or Transp run-id.   
DE
sets the data element name(s).    A data element is a specific chunk of TFTR data; e.g., a single Y-vector vs a single X-vector.
DI
sets the digraph for raw data and results files. A digraph of ``S'' selects Snap data, ``G'' selects Globe, and ``Tyy'' selects a Transp run made in 19yy.   
GO
reads and plots the data.   
R
reads the data without plotting it.   
P
plots the data you have previously read or calculated.   

It makes no difference whether you enter the SH command first or the DE command.

 
	SH 55806			!shot number 55806

DE MB-IP-SL ; !plasma current waveform

GO !read and plot

DE MB-IP-SL ;

SH 55806

GO

The plot produced by either of these sets of commands is shown in Figure 1. The plot title line at the left of the top line shows that the data is waveform data (ANT) and from shot 55806, which occurred on 10/26/90 at 16:15. The right side portion of this title has the date the plot was generated. Above the plot frame is the waveform description.

 
Figure 1: Plasma current waveform

You can change just the shot or just the data element to access different data:

 
	SH 55806

DE MB-IP-SL ;

GO

SH 55805 !change just the shot number

GO

DE D-PTOT ; !change the data element

GO

CUPLOT always reads all the data for the element(s) specified, even if there is a view window in effect that selects only a subset of the data. Since reading the data can take a substantial amount of time (and other computer resources), you should avoid rereading the data if you only want to change the view window or other aspects of the plot appearance.

 
  Slow:

SH 55806 DE NB-BP-SL;

GO

XT 3 5 !change view window

GO !unnecessary read

Faster:

SH 55806 DE NB-BP-SL;

GO

XT 3 5 !change view window

P !replot


next up previous contents index
Next: Types of Data Up: Access and Plot a Previous: Access and Plot a

Marilee Thompson
Fri Jul 11 12:49:48 EDT 1997