NSTX logo FAQ Web Tools UNIX&VMS MDSplus
Overview Programming Diagnostics Applications
software

Validating Codes for Blob Speed Calculation

Introduction

Fast 2-D cameras on NSTX look at a variety of important aspects of the plasma edge and in-vessel components. One of these applications is the Gas Puff Imaging (GPI) Diagnostic. Data is taken from a Phantom camera and saved in "cine" files. A variety of tools have been developed at PPPL for viewing and analyzing GPI data, such as for "blob tracking" (also see Visualizing and Quantifying Blob Characteristics on NSTX ) and other purposes.

A popular viewing option for the cine files from Phantom Fast Cameras is the IDL routine FCplayer.pro. "Blobs," related to turbulence in plasmas, may be tracked in FCplayer.pro by using selections near the bottom of the Special Menu:

FCplayer can be invoked with a command like:

    IDL> fcplayer, file='nstx_5_137582.cin', $
	           aveT1=0.329, aveT2=0.333, minXsize=400, FrameAveDeltaMS=0

Once image processing options and interesting times are determined, blob data can be entered into an SQL database (currently hosted on sql2008.pppl.gov) using the IDL routine loadblobs.pro.

Blob Speed Validation Procedure

This page details the validation procedure for the calculations of blob speed. The steps are:

  1. Create test files with known speeds

  2. Blobs from these NetCDF files can then be loaded into the 'blobs' SQL database.

    populateblobs.pro, called from loadblobs, converts from pixels per frame to Km/s, and writes to the database table. Stewart Zweben says that horizontal and vertical pixel distance is approximately the same. The conversion between pixels and centimers is 23.5cm/64 pixels.

  3. DbAccess can be used to see what was loaded into the table

    Average speeds from the database can also be seen by running /u/bdavis/cvs/idl_cvs/checkvaves.pro

    IDL> for i=1,5 do checkvaves,i
    
      Reading from database table SH1
    Average x & y velocities for shot 1=  -5.9610376e-06    0.0098332996 Km/s
    Average x & y velocities for shot 1=   -0.0016012501       3.1088427 pixels/frame
    
      Reading from database table SH2 
    Average x & y velocities for shot 2=     0.011117898  -3.7208858e-05 Km/s
    Average x & y velocities for shot 2=       2.9864827    -0.011763751 pixels/frame
     
      Reading from database table SH3
    Average x & y velocities for shot 3=    0.0021750933    0.0013772208 Km/s
    Average x & y velocities for shot 3=      0.58427216      0.43541465 pixels/frame
     
      Reading from database table SH4
    Average x & y velocities for shot 4=    0.0038055245    0.0098963027 Km/s
    Average x & y velocities for shot 4=       1.0222375       3.1287614 pixels/frame
     
      Reading from database table SH5
    Average x & y velocities for shot 5=    0.0055449076   0.00095672607 Km/s
    Average x & y velocities for shot 5=       1.4894695      0.30247333 pixels/frame
    
    The above compare well with the values printed from the file-generation step, in 1., above.

Checking speeds for an NSTX shot in a database table

	IDL> dbaccess, 'blobs'
	
	select table, SH137582, move Column Names to Work Area and click on Select
in another window:
    IDL> fcplayer, file='nstx_5_137582.cin', $
	           aveT1=0.325, aveT2=0.335, /horiz, /RotCC,  $
	           colorTable=3, minXsize=400, FrameAveDeltaMS=0  

Possible Future Validation Work

If you have questions about this page, please send email to szweben.


updated: 1-Jul-2015
by: Bill Davis