250 likes | 548 Views
Visualization Tools. SDSC Summer Institute 2007 Dr. Steve Cutchin. Web Sites. visservices.sdsc.edu/software/installed.php visservices.sdsc.edu www.sdsc.edu www.syncenter.org. Interactive Viz on Datastar. Use X-Windows and SSh From xterm – ssh –X dslogin Use ssh and winscp
E N D
Visualization Tools SDSC Summer Institute 2007 Dr. Steve Cutchin
Web Sites • visservices.sdsc.edu/software/installed.php • visservices.sdsc.edu • www.sdsc.edu • www.syncenter.org Visservices.sdsc.edu
Interactive Viz on Datastar • Use X-Windows and SSh • From xterm – ssh –X dslogin • Use ssh and winscp • Generate images on Datastar, transfer to local host. • Use a client/server visualization tool • Paraview in client/server mode. • VISIT in client/server mode. • Other Options – VNC, Batch.
Most Difficult Viz Activity Is? File Format Conversion!
Installed Visualization Tools -HPC /usr/local/apps{32} • GIMP – Open Source Photoshop with batch. • GnuPlot – command line plotting tool. • ImageMagick – image processing commands. • ParaView – Client/Server Scientific Visualization Application. • VISIT – LLNL Scientific Visualization Application. • VTK – Visualization Toolkit – library of visualization tools. • VISTA – Volume visualization tool from SDSC. • Tecplot – Commercial CFD Plotting Tool. • XV – an excellent image viewing tool.
Configure X-Windows • Set up X-Windows on your desktop • Windows users – Cygwin/X http://x.cygwin.com • Then ssh to dslogin with X-Forwarding enabled. • ssh –X dslogin • Add all Vistools to your path: • source /gpfs/projects/vis/cutchin/paths
Tool 1: Image Magick • Great command line image tools. • Well documented, well supported. • Great for piping, scripting, easily extensible. www.imagemagick.org
Tool 1: Image Magick • Current version in: /usr/local/apps32/imagemagick-6.2.8/bin • Add to your path. • Type %convert to test • Web site: www.imagemagick.org • Formats: www.imagemagick.org/script/formats.php • Bug: /opt/freeware/bin/display,animate, import • Also use ‘xv’
Tool 1: ImageMagick Commands • Ex: convert magick:rose rose.jpg • Convert: change formats, change various params. • Composite: combine images together. • Animate: animate series*.jpg • Display: display images*.jpg… • Montage: creates a thumbnail sheet. • conjure: …..script engine . Magic scripting language. • Others: compare, identify, import, mogrify…
Tool 1: ImageMagick Commands animateanimates an image sequence on any X server. comparemathematically and visually annotate the difference between an image and its reconstruction. compositeoverlaps one image over another. conjureinterprets and executes scripts written in the Magick Scripting Language (MSL). convertconvert between image formats. display displays an image or image sequence on any X server. identify describes the format and characteristics of one or more image files. import saves any visible window on an X server and outputs it as an image file. mogrify resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more. montagecreate a composite image by combining several separate images.
Tool 2: GnuPlot • www.gnuplot.info • A free GNU tool. • Supports 2D & 3D Plotting. • Very feature rich. • Command line usage. • Great for quick and dirty plots and text.
Tool 2: GnuPlot • Path: /usr/local/apps/gnuplot-4.0.0/ • Interactive visualization: • Ex: gnuplot • gnuplot> load “simple.gpl” • Write image to a file: • Change the terminal: set terminal postscript • gnuplot> set terminal postscript color solid • gnuplot> set output “outfile.ps“ • gnuplot> load ‘simple.gpl’ • gnuplot> set output • gnuplot> set terminal pop • Or use /opt/freeware/bin/import
Tool 2: GnuPlot • EX:/gpfs/projects/vis/cutchin/gnuplot/demos • Simple 2D Plot: simple.dem • Basic 3D Plot: scatter.dem • Coloring Text: textcolor.dem • Rotating Text: textrotate.dem • Parsing data files: multimesh.dem • More web help: www.gnuplot.info
Tool 3: VISTA • SDSC Built • Volume Renderer • Command line driven. • Lots of options. • visservices.sdsc.edu/software/vista/ • Supports HDR output. http://visservices.sdsc.edu/software/vista
Tool 3: VISTA • /gpfs/projects/vis/vistools/bin • %vista –help for list of options. • %vista –raw 512 512 512 monkey_512by3.raw • %vista –raw 512 512 512 –minmax -33553920.0 33554688.0 monkey_512by3.raw • %/opt/freeware/bin/display img_00000.ppm
Tool 3: VISTA Terashake • %vista –lsb –raw 40 150 300 –rawtype float –minmax -0.1 0.1 tshake/tshake.05800.raw • Recolor: vista … --bigspect… • Cameras: vista … -left –right –front –cam camfile… • Sizing: vista … -r 0.2 0.45 0.8 …. • Custom cam: vista –cam tshake/tshake.cam • Colormaps: vista …. –tmapfile … • Format types: %vista –rawtype float | int | short | byte…
Tool 4: Paraview http://www.paraview.org • OpenSource tool. • Well supported. • Common in HPC • Uses VTK • Mostly designed for programmers by programmers. • www.paraview.org
Tool 4: Paraview • Path: /usr/local/apps32/paraview-2.2.1/ • Interactive %paraview • Can load a variety of data formats including unstructured and point clouds. • Supports client/server mode: pserver • Run client locally. http://visservices.sdsc.edu/tools/paraview/paraview.html
Tool 4: Paraview • Local mode: • Simply use paraview • Then load your data. • Tutorial at: http://visservices.sdsc.edu/threads/paraview/paraview.html • Tutorial at: http://visservices.sdsc.edu/tools/paraview/paraview.html • Client/Server Mode • Start up pserver on Datastar – how can they do that? • pvserver –sp=use your own unique port number. • Start up pclient on local host • Pvclient –sh=dslogin –sp=remote port number. • Select remote data and render. • Manipulate the data transfer level. • Play with several filters.
Tool 5: Tecplot • Commercial product. • Our users can use it. • Excellent tool. • GUI based. • Very popular and effective. • Takes a bit to get started. • Supports command line processing.
Tool 5: Tecplot • In path: /usr/local/apps/tecplot/bin • %setenv TECHOME /usr/local/apps/tecplot • % setenv TLMHOST dmv.sdsc.edu • %tecplot • Run simple example in tecplot. • Batch mode: • Tecplot batchscript…. • Display output image • www.tecplot.com for lots and lots of support.
More Help? www.sdsc.edu E-mail: consult@sdsc.edu E-mail: cutchin@sdsc.edu