210 likes | 348 Views
ElVis Tutorial. Eliot Feibush http://w3.pppl.gov/elvis. ElVis. Display and interaction – Scientific Data. Applications send data to ElVis for display. Enhanced graphics with minor changes to existing programs. ElVis interfaces: Subroutine programming (API – data in)
E N D
ElVis Tutorial Eliot Feibush http://w3.pppl.gov/elvis
ElVis • Display and interaction – Scientific Data. • Applications send data to ElVis for display. • Enhanced graphics with minor changes to existing programs. • ElVis interfaces: • Subroutine programming (API – data in) • Graphical, interactive (GUI) • Vector PostScript output.
Send Data to ElVis Petrel002 Petrel002 RPLOT App 2 App 3 ElVis library ... Inter-Process Communication myWindowsPC Data Socket ElVis Server/Host machine ElVis
Socket Connection • Socket – data stream between 2 programs • Can be on different computers. • ElVis Title Bar has port number & hostname ElVis hostname: red-tst ElVis Port Number: 7654 (OS resource) red-tst.pppl.gov
1. Run ElVis on Windows • Browse to: w3.pppl.gov/elvis • Click on: Run ElVis Runs ElVis program on PC. red-tst.pppl.gov
Run ElVis on Linux • Browse to: w3.pppl.gov/elvis/download • Download: elviscdf.jar java –jar elviscdf.jar red-tst.pppl.gov Future: Java Web Start -- click on link
2. Run RPLOT to ElVis xterm Set 2 environment variables for RPLOT ELVIS_SERVER <hostname> ELVIS_PORT <port number> 7654 is default petrel002.pppl.gov> /usr/ntcc/bin/rplot %RPLOT: detected ELVIS_SERVER = “red-tst”.
Vector PostScript Output • ElVis menubar: File Print • Current GraphWindow – highlighted titlebar • WindowName.ps file to starting directory • PostScript Viewer gv –landscape –scalebase 2 file.ps [ scalebase 2 matches PostScript coordinates ]
Printing • lpr –Pprinter lpr –Pb143-t7300dn
ElVis Features • Zoom & Scroll • Current view is printed • Data Readout • Whiteboard • Label Editor • Tile GraphWindows • Help
SCOPE Display • Read scope layout file, df.scope • Retrieve data from MDS+ via Servlet • Security Option: Check user’s credential
f(x,i) • 2-D data • Indexed in time or other parameter • Animate 1 or more graphs simultaneously • Surface plot • Contour plot
Browse for netCDF File Plot 1-D and 2-D variables
Collaboration App 2 RPLOT App 3 ElVis ElVis 2 ElVis 3 Demonstrated at APS
Summary 1. w3.pppl.gov/elvis Run ElVis 2. Set environment variable(s) for RPLOT ELVIS_SERVER <hostname> ELVIS_PORT <port number> 7654 is default • Run RPLOT • ElVis: FilePrint http://w3.pppl.gov/elvis