opendx

Upload: adrianagmihail

Post on 05-Mar-2016

2 views

Category:

Documents


0 download

DESCRIPTION

DX Field Object

TRANSCRIPT

  • Data Explorer

  • What is OpenDXOpen source visualization package Based upon IBMs Data eXplorerObject oriented language Explore data through visual programgreat flexibility in creating visualizationsMinimal programming requirements User friendly interface *

  • OutlineDX Field ObjectGridsStructure of OpenDXImporting dataVisualization processHow to create plots :2-D plotMaps plot3-d plotUser interfaceMarking and UnmarkingCISM_DX

  • DX Field ObjectA Field is the fundamental programming object in the OpenDX API3 main partsPositionsLocations in spaceUp to 3D arrayConnectionsExplains how the positions relate to each otherRequired for interpolationDataActual information can be scalar, 3-vector or beyondVector operations only understand Cartesian coords

  • GridsThe connection between points forms the gridDX supports 3 grid typesirregularirregular positions irregular connections deformed regularirregular positions regular connectionsregularregular positions regular connectionsSome DX modules require regular connectionse.g. slab

  • The ModulesInputOutputButton down : value has been set by user, no modules can be connected

    2) Button up : value not set, entry can be connected to another module

    1 2 A module accomplishes function No need to type it You channel the flow of data by connecting modules Each tab in a module as a function* (axis label, plot corners, annotation color,..) requiredoptions*If you want to know this function you can click on the tab

  • StructureVisual program editormodulesComputation of

    the program

  • Importing Data Into OpenDXOpenDX comes with a DataPrompter module which is designed to allow the user import scalar and vector data from a variety of data formatsIt maybe more efficient to write your own import moduleUseful for complicated data strcuturesRequires basic C programming skills

  • Visualization Process(outline) Import data :With existing data prompter (array format, hdf, CDF, NetCDF )Personal import module (C program)

    Design the visual program (called network) : Using built in modulesProgrammed modules Play with your image :Rotate, zoom or make an animationExport pictures (Tiff an postscript and much more with the ImageMagick package) or movies (Miff format can be converted in mpeg with the same package)

  • Capacity of OpenDX2-D Plot3-D PlotMaps

  • Import data for 2-D plotSpecify :

    number of variables(excluding the x column)

    Number of rows excluding blanks

    X column must be namedLocations

    Save the description in a*.general file

    Edit an old file

    211233scalar

  • Import filesfile = /home/fabio/dataex/eqss1936points = 6format = asciiinterleaving = fieldfield = field1, field0, locations, field2structure = scalar, scalar, scalar, scalartype = float, float, float, floatend2.50000 0. 0. 2.50000 2.50000 0. 0. 2.50000 2.45002 -8.39233E-05 359.976 2.45002

    2.35054 -2.10571E-03 359.741 2.350522.30127 -5.79834E-03 359.532 2.30119 2.25242 -1.32217E-02 359.264 2.25223Data file :Import file :Created by Opendx

  • Creating a 2-D plotImporting the .general filePlotting options : axis name, axis borders Click on a tool and click where you want to drop itExecuteFor more information open 2Dplot.netOptional

  • Creating a 2-D plot(a closer look)Different plots one branch per tracea b

  • Creating a 2-D plot(a closer look)

  • Plotting mapsRegular plotMapFor more information open mapsplot.net

  • Plotting mapsHow to make scattered data :

  • Creating a 3-D plotx

    Field corresponding to x, y, zyzTransmitter moduleFor more information open mapsplot.netIf importing .hdf files you dont need a *.general file

  • Creating a 3-D plotOn each page a different plot Possibility of making a user interfaceReceiver moduleconnectedto a transmitter on the other page

  • User interface Toggle and switch modules :For more information open toggle.net

  • User interface Selector module : Allows you to choose the data to plot

    No need to go back to the source code

    For more information open selector.net

  • User interface Integer module :For more information open integer.net

  • Customized user interface example Plotting the potential field source surface :In a terminal type setenv DXDATA directory where are the data then in data prompter select run program : caringtonrot.net

  • Working with Mark/UnmarkThanks S. McGregor

  • CISM_DX What is it :Set of data, visualization codes, selected CISM models (MAS, ENLIL, LFM, TING, WSA) What purpose :View models runPlot Cism data libraryCommon standard for all Cism group

  • CISM_DX Main GUITo have the user interface go to window open control panel : Main control panel

  • MAS model3D grid with vector or scalar data on each points of the gridUser interface to select the data

    Warning : this network requires an external moduleGo to file, load module description and load ..\CISM_DX_Auxiliary\spdx-dist\spdx.mdfAfter loading the module, load BasicMAS.netMike Wiltbergers GUI

  • Basic MASTaking a spherical slab of dataPlotting vectors and streamlines** When you re in the image window type Ctrl-I and select the vectors you want to link with a streamline

  • MAS Coronal ResultsComplicated staggered mesh required writing import moduleOpenDX modules allowed for implementation of periodic connections in phi directionalso required transformation from Spherical to Cartesian CoordinatesThanks to Pete Riley and Jon Linker

  • ENLIL Solar Wind ModelNetwork was used as basis for graduate student lab in CISM Summer SchoolThanks to Dusan Odstrcil and Nick Arge

  • Basic ENLILAfter loading the module description like for BasicMAS load BasicEnlil.net

  • LFM L* CalculationElectron drift trajectories are used as source points for field line tracingEnd points are mapped from inner edge into ionosphereL* is determined by calculating flux enclosed in orbitIn DX the field line is an object that can be used for interpolation Thanks to Scot Elkington

  • LFM PathlinesStreamlinePath through vector field that is tanget to vectors throughoutmagnetic field linesPathlinePath of fluid element over a period of timereverse time to see where elements come fromCombine pathline with streamline object to monitor flux tube volume as a function of time Thanks to M. Wiltberger

  • Shortcuts Tips Shortcuts :Execute : Ctrl-EExecute on change : Ctrl-;End execution : Ctrl-EndProperties of a module : Ctrl-FReset image : Ctrl-shift-RZoom image : Ctrl-SpaceRotate image : Ctrl-RReset view : Ctrl-F

    Tips :When your modifications have no effect try to go to connection and reset server or disconnectFor the interactor modules double click and Ctrl-F have not always the same effectThere is no undo function save your file regularlyUse the describe or print modules to know whats going on between the modulesBe really careful with the import files : number of rows without blank lines, number of columns,

  • Conclusion Large range of plots : Friendly understandable modules : Great user interface :