v isualizing hdf5 data with o pen dx
play

V ISUALIZING HDF5 DATA WITH O PEN DX Ireneusz Szcze sniak John - PowerPoint PPT Presentation

V ISUALIZING HDF5 DATA WITH O PEN DX Ireneusz Szcze sniak John Cary Center for Integrated Plasma Studies University of Colorado at Boulder September 25, 2002 P RESENTATION S PLAN 2 P LAN OF PRESENTATION Introduction to HDF5 and


  1. V ISUALIZING HDF5 DATA WITH O PEN DX Ireneusz Szcze´ sniak John Cary Center for Integrated Plasma Studies University of Colorado at Boulder September 25, 2002

  2. P RESENTATION ’ S PLAN 2 P LAN OF PRESENTATION • Introduction to HDF5 and OpenDX • CIPS modules for OpenDX • Vorpal uses of the CIPS modules • Basics of OpenDX module design • Summary and conclusions

  3. I NTRODUCTION TO HDF5 AND O PEN DX 3 HDF5 H IERARCHICAL D ATA F ILE V . 5 • An improved version of the HDF4 file format • Organizes data in a hierarchy • Faster and less memory consuming than netCDF • Available on many platforms • Makes data portable

  4. I NTRODUCTION TO HDF5 AND O PEN DX 4 O BJECTS OF HDF5 HDF5 offers: • datasets - multidimensional arrays, • groups - collections of objects, • compound datatypes, • links to objects, • attributes. Figure: Sample file

  5. I NTRODUCTION TO HDF5 AND O PEN DX 5 O PEN DX T HE OPEN SOURCE PROJECT BASED ON IBM’ S V ISUALIZATION D ATA E XPLORER • Open source software • Good technical support • Used worldwide • Easy to visualize 2-D and 3-D data • Easy to learn

  6. I NTRODUCTION TO HDF5 AND O PEN DX 6 O PEN DX MODULE • Provides a function • Enhances the OpenDX capabilities • Can be standard or user given • Usually requires inputs Figure: Sample module • Usually produces outputs

  7. I NTRODUCTION TO HDF5 AND O PEN DX 7 P ROGRAMMING IN O PEN DX • Visual programming • You work as a plumber • Your program is data-driven • No new scripting language to learn

  8. I NTRODUCTION TO HDF5 AND O PEN DX 8 HDF5 AND O PEN DX • OpenDX does not import HDF5 data • OpenDX has large memory requirements • HDF5 can contain large datasets • OpenDX would run out of memory when reading a large HDF5 file • Alternative: filter and convert HDF5 data before importing

  9. CIPS MODULES FOR O PEN DX 9 CIPS MODULES FOR O PEN DX • The dxhdf5 package gives two OpenDX modules • ImportHDF5Field imports fields from HDF5 files • ImportHDF5Species imports particles from HDF5 files • They let reduce memory requirements • Developed at CIPS this summer • Announced by OpenDX.org • Available at www-beams.colorado.edu/dxhdf5

  10. CIPS MODULES FOR O PEN DX 10 I MPORT HDF5F IELD • Imports a slab of a field from an HDF5 file • The field must be based on a regular grid • The HDF5 file must be of a special structure • The user can specify: – the lower corner, – thickness, – stride.

  11. CIPS MODULES FOR O PEN DX 11 I MPORT HDF5F IELD IN ACTION Complete field with every third grid point chosen.

  12. CIPS MODULES FOR O PEN DX 12 I MPORT HDF5F IELD IN ACTION - CONTINUED A slab of the filed with every grid point.

  13. CIPS MODULES FOR O PEN DX 13 I MPORT HDF5S PECIES • Selects and imports particles from an HDF5 file • Each particle has its position and data elements • The HDF5 file must be of a special structure • The user can specify: – minimal and maximal values for the position and data, – stride, – random.

  14. CIPS MODULES FOR O PEN DX 14 I MPORT HDF5S PECIES IN ACTION Complete set of particles.

  15. CIPS MODULES FOR O PEN DX 15 I MPORT HDF5S PECIES IN ACTION - CONTINUED Particles with u 0 > 10 7 plus roughly 750 random particles.

  16. V ORPAL USE OF THE MODULES 16 V ORPAL , HDF5 AND O PEN DX • Vorpal files are very large and numerous • Vorpal saves its results in HDF5 files • We want to use OpenDX to visualize Vorpal data

  17. V ORPAL USE OF THE MODULES 17 O BSOLETE WAY OF IMPORTING V ORPAL PARTICLES INTO O PEN DX HDF5 files Select data with "selector" Convert selected data to ASCII format with "h5ptcls2dx.sh" Import ASCII data in OpenDX The scheme of the data processing.

  18. V ORPAL USE OF THE MODULES 18 V ORPAL AND THE DXHDF 5 MODULES • Vorpal uses both ImportHDF5Field and ImportHDF5Species • The data is selected and imported without preprocessing • Using the dxhdf5 modules saves time and work • The modules do not supersede the selector program

  19. B ASICS OF O PEN DX MODULE DESIGN 19 B ASICS OF O PEN DX MODULE DESIGN • Three module types: – inboard – outboard – runtime-loadable • Module’s definition must be provided (MDF file) • OpenDX Module Builder may help • Module implementation in C, C++ or Java

  20. B ASICS OF O PEN DX MODULE DESIGN 20 . MDF FILE - M ODULE D EFINITION F ILE The MDF file defines: • module’s name, category, description and executable file, • inputs, outputs, and their types, default values and names. Sample MDF file: MODULE SampleModule CATEGORY Import and Export DESCRIPTION sample module LOADABLE "/our_path/SampleModule"; INPUT number; integer; 100 ; number we need INPUT debugflag; flag; 0; enable debug messages OPTIONS false ; true OUTPUT ouroutput; field; some output

  21. S UMMARY AND CONCLUSIONS 21 S UMMARY AND CONCLUSIONS • HDF5 and OpenDX are useful and powerful tools • The dxhdf5 package helps one import HDF5 data in OpenDX • The modules are documented, and released • The modules satisfy their users

  22. T HANK Y OU !

Recommend


More recommend