Open DX

Document Sample
Open DX Powered By Docstoc
					Data Explorer
          What is OpenDX
Open source visualization package
          • Based upon IBM’s Data eXplorer
          • Object oriented language


 Explore data through visual program
          • great flexibility in creating visualizations
          • Minimal programming requirements
          • User friendly interface



                                                           2
                        Outline
•      DX Field Object
•      Grids
•      Structure of OpenDX
•      Importing data
•      Visualization process
•      How to create plots :
    i.     2-D plot
    ii.    Maps plot
    iii.   3-d plot
•      User interface
•      Marking and Unmarking
•      CISM_DX



                                  3
DX Field Object
          • A Field is the fundamental
            programming object in the
            OpenDX API
          • 3 main parts
             – Positions
                 • Locations in space
                      – Up to 3D array
             – Connections
                 • Explains how the positions
                   relate to each other
                      – Required for
                        interpolation
             – Data
                 • Actual information can be
                   scalar, 3-vector or beyond
                      – Vector operations only
                        understand Cartesian
                        coords
                                         4
                                 Grids
• The connection between
  points forms the grid
• DX supports 3 grid types
   – irregular
       • irregular positions –
         irregular connections
   – deformed regular
       • irregular positions –
         regular connections
   – regular
       • regular positions –         Deformed   Deformed
         regular connections
                                     regular    regular
• Some DX modules require
  regular connections
   – e.g. slab
                                   Irregular
                                                    5
                                The Modules
                                      • A module accomplishes function
                                      • No need to type it
                                      • You channel the flow of data by connecting
                        Input            modules
                                      • Each tab in a module as a function*
                                        (axis label, plot corners, annotation color,..)
                            options
                1   2


required

                                      1) Button down : value has been set by
                                         user, no modules can be connected
           Output
                                      2) Button up : value not set, entry can be
                                          connected to another module
                                                                                                     6

                                                         *If you want to know this function you can click on the tab
                    Structure




                      Computation of


modules
                        the program



          Visual program editor
                                       7
    Importing Data Into OpenDX
• OpenDX comes with a
  DataPrompter module which
  is designed to allow the user
  import scalar and vector data
  from a variety of data formats


                                   • It maybe more efficient
                                     to write your own
                                     import module
                                      • Useful for
                                         complicated data
                                         strcutures
                                      • Requires basic C
                                         programming8skills
          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 modules
              • Programmed modules

 Play with your image :
              • Rotate, zoom or make an animation
              • Export pictures (Tiff an postscript and much more with the
                ImageMagick package) or movies (Miff format can be converted in
                mpeg with the same package)



                                                                        9
           Capacity of OpenDX




2-D Plot           Maps         3-D Plot


                                           10
    Import data for 2-D plot

                            Specify :
                          1 •number of variables
                            (excluding the x column)

                          2 •Number of rows
1                            excluding blanks

                          3 •X column must be named
                            Locations

                            •Save the description in a
                            *.general file
                3
                            •Edit an old file
      2
                 scalar




                                            11
                               Import files
Data file :
2.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.35052
2.30127   -5.79834E-03   359.532   2.30119
2.25242   -1.32217E-02   359.264   2.25223




                 Import file :     file = /home/fabio/dataex/eqss1936
                                   points = 6
           Created by Opendx       format = ascii
                                   interleaving = field
                                   field = field1, field0, locations, field2
                                   structure = scalar, scalar, scalar, scalar
                                   type = float, float, float, float
                                   end
                                                                                12
                   Creating a 2-D plot
 Click on a tool and click where
you want to drop it
                                                 Importing the .general file



                            Optional

                                                   Plotting options :
                                                   axis name, axis borders




                                       Execute


                                                                           13
                                                  For more information open 2Dplot.net
                  Creating a 2-D plot
                       (a closer look)


           a b




  Different plots
one branch per trace
                                         14
Creating a 2-D plot
    (a closer look)
Plotting maps




                  Map             Regular
                                   plot


                                          16
                For more information open mapsplot.net
                      Plotting maps
How to make scattered data :




                                      17
                     Creating a 3-D plot

                                                                              Field corresponding
      x      y       z                                                              to x, y, z




Transmitter module




                                                                                               18
             If importing .hdf files you don’t need a *.general file   For more information open mapsplot.net
                       Creating a 3-D plot
   On each page a different plot
                                     Possibility of making a
                                         user interface




Receiver module
connected
to a transmitter on
the other page
                     User interface
 Toggle and switch modules :




                                                             20
                                      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




                                                                21
                                        For more information open selector.net
                     User interface
 Integer module :




                                                              22
                                      For more information open integer.net
Customized user interface example

                     Plotting the potential field source surface :




                                                                                                         23
    In a terminal type setenv DXDATA “directory where are the data” then in data prompter select run program :
    caringtonrot.net
Working with Mark/Unmark




                    Thanks S. McGregor
                               24
                 CISM_DX

 What is it :
  • Set of data, visualization codes, selected CISM
    models (MAS, ENLIL, LFM, TING, WSA)
What purpose :
  • View models run
  • Plot Cism data library
  • Common standard for all Cism group

                                                  25
CISM_DX Main GUI




                                                                                   26
 To have the user interface go to window open control panel : Main control panel
                               MAS model
Warning : this network requires an external module

                              Go to file, load module description and
                              load ..\CISM_DX_Auxiliary\spdx-dist\spdx.mdf




          3D grid with
           vector or scalar
           data on each
           points of the grid
          User interface to
           select the data




                                                                      Mike Wiltberger’s GUI
                                                                                         27

                                                             After loading the module, load BasicMAS.net
                                  Basic MAS




Taking a spherical slab of data                                           Plotting vectors and streamlines*



                                                                                                                 28
                          * When you re in the image window type Ctrl-I and select the vectors you want to link with a streamline
              MAS – Coronal Results
• Complicated staggered
  mesh required writing
  import module
   – OpenDX modules
     allowed for
     implementation of
     periodic connections in
     phi direction
   – also required
     transformation from
     Spherical to Cartesian
     Coordinates



                               Thanks to Pete Riley and Jon Linker
                                                          29
   ENLIL – Solar Wind Model
• Network was used as basis for graduate student
  lab in CISM Summer School




                                                          30
                            Thanks to Dusan Odstrcil and Nick Arge
Basic ENLIL




                                                               31

     After loading the module description like for BasicMAS load BasicEnlil.net
LFM – L* Calculation
                 • Electron drift
                   trajectories are
                   used as source
                   points for field
                   line tracing
                       – End points are
                         mapped from
                         inner edge into
                         ionosphere
                       – L* is
                         determined by
                         calculating flux
                         enclosed in
                         orbit
                 •    In DX the field line is
                      an object that can be
                      used for interpolation
                                     32
                     Thanks to Scot Elkington
                           LFM – Pathlines
• Streamline
    – Path through vector
      field that is tanget to
      vectors throughout
    – magnetic field lines
• Pathline
    – Path of fluid element
      over a period of time
    – reverse time to see
      where elements come
      from
• Combine pathline with
  streamline object to
  monitor flux tube
  volume as a function of
  time

                                                              33
                                        Thanks to M. Wiltberger
                                 Shortcuts – Tips
 Shortcuts :                             Tips :
   •   Execute : Ctrl-E                    •   When your modifications have no
   •   Execute on change : Ctrl-;              effect try to go to connection and
   •   End execution : Ctrl-End                reset server or disconnect
   •   Properties of a module : Ctrl-F     •   For the interactor modules double
   •   Reset image : Ctrl-shift-R              click and Ctrl-F have not always the
   •   Zoom image : Ctrl-Space                 same effect
   •   Rotate image : Ctrl-R               •   There is no undo function
   •   Reset view : Ctrl-F                     save your file regularly
                                           •   Use the describe or print modules to
                                               know what’s going on between the
                                               modules
                                           •   Be really careful with the import
                                               files : number of rows without blank
                                               lines, number of columns,…




                                                                                      34
                      Conclusion
• Large range of plots :




• Friendly – understandable modules :



 • Great user interface :




                                        35

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:0
posted:11/5/2011
language:English
pages:35