GithubHelp home page GithubHelp logo

mtav / h5utils Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 2.18 MB

The tools in the h5utils package allow converting other formats from and to HDF5 and to visualize HDF5 files.

Home Page: https://h5utils.readthedocs.io/

License: GNU General Public License v3.0

Python 90.02% Shell 6.53% Visual Basic 6.0 3.46%
mpb hdf5 meep vts

h5utils's Introduction

h5utils Package

h5utils is a python package adding extra functionality missing from MIT/nanoComp's h5utils (which is not a python package and is available at https://github.com/NanoComp/h5utils). .

HDF5 (Hierarchical Data Format 5) is a file format for storing scientific data.

The tools in the h5utils package allow converting other formats from and to HDF5 and to visualize HDF5 files.

They include:

  • h5tovts, which converts HDF5 files to structured VTK files for visualization with VTK-aware programs. This is particularly useful to visualize HDF5 output files from MPB.

For more documentation, please see https://h5utils.readthedocs.io.

Installation:

pip install h5utils

Usage:

To convert an .h5 files to .vts, simply run:

h5tovts example.h5

For more help:

h5tovts --help

Development setup:

git clone https://github.com/mtav/h5utils.git
cd h5utils
pipx install --editable .

h5utils's People

Contributors

mtav avatar

Watchers

 avatar  avatar

Forkers

deyh2020 sprbull

h5utils's Issues

h5tovts error

Hello,

I am trying to generate a .vts file from .h5 file using h5tovts command. My .h5 file contains CFD data.

command = h5tovts filename.h5

The command executes and shows me what is inside the hdf5 file but at the end it is not generating the .vts file.
I am getting this message at the end:

raise Exception('Data of dimension {}. Only 3D data supported at the moment.'.format(len(data.shape))) Exception: Data of dimension 2. Only 3D data supported at the moment.

The hdf5 file contains 60000 groups.Each group contains 4 datasets. The structure looks as given below:

/Time_9700               Group
/Time_9700/LatTyp        Dataset {501, 83}
/Time_9700/Rho           Dataset {501, 83}
/Time_9700/Ux            Dataset {501, 83}
/Time_9700/Uy            Dataset {501, 83}

Any help would be appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.