Skip to main content

H5CROSS

This package provides basic utilities allowing the comparison of hdf5 type files. This includes the computation of standard statistics on data arrays such as the mean, min, max, median and standard deviation. An interactive mode is enabled through the use of nobvisual (https://pypi.org/project/nobvisual/). Scatter plot comparative capability is enabled through seaborn and matplotlib.

Installation

Installation using Pypi:

> pip install h5cross

Usage

Use the CLI for a basic terminal usage.

   ---------------    H5CROSS  --------------------

  You are now using the Command line interface of h5cross a Python3 helper
  to explore and compare hdf5 files, created at CERFACS
  (https://cerfacs.fr).

  This is a python package currently installed in your python environement.

Options:
  --help  Show this message and exit.

Commands:
  convert   Conversion to hdf5 of certain file formats.
  diff      Compare the content of two hdf5 files and view interactively...
  dump      Write the content of an hdf5 file into a YAML file.
  scatter   Scatter plot comparison of two hdf5 files.
  stats     Compute statistics of arrays from hdf5 file.
  tree      Print the content of an hdf5 file in terminal.
  view      Show the content of an hdf5 file interactively with nobvisual.

Possibilities

Console file structure visualization

The command >h5cross tree prints the structure of an HDF5 file in the console.

tree_output

Statistical information of file

The command >h5cross stats computes the mean, min, max, median and standard deviation of every data set for a given HDF5 file. It is then output into the console (can be optionally deactivated). The result can be optionally saved in a YAML format (.yml). A pretty table output is set to default and can be optionally be deactivated in which case a tree output is given. In a pretty table, the full nested path is shown but can be deactivated.

stats_pretty_output

stats_pretty_output

stats_tree_output

Save file structure

The command >h5cross dump outputs the structure of an HDF5 file in a YAML format (.yml).

View file structure

The command >h5cross view allows an interactive view of the structure of an HDF5 file. It relies on the nobvisual package designed for the visualisation of nested objects. A temporary .yml file is generated to allow the interactive use.

view

Compare file structures

The command >h5cross diff compares the structure of two HDF5 files. Similarily to >h5cross view it relies on the nobvisual package. It is optionally possible to add the statistical information of both files in this representation.

diff

Compare field data

The command >h5cross scatter allows the scatter plot comparison of selected data fields from two HDF5 files. If the data array lengths of each file differ an histogram representation will be given instead. A minimum requirement is the matplotlib package. By default it uses the seaborn package if available but this setting can be optionally deactivated. The density colormap requires the scipy package, if not available a single color will be used.

seaborn

plt

hist

Converting file types to HDF5 file

It is possible to convert certain file formats to HDF5 with >h5cross convert . Currently supported: nek5000, pvtu, vtu, vtk.

Acknowledgement

h5cross is a service created in the EXCELLERAT Center Of Excellence and is continued as part of the COEC Center Of Excellence. Both projects are funded by the European community. logo logo

Release files for h5cross 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for h5cross 1.0.0
File Size Uploaded
h5cross-1.0.0.tar.gz 28.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for h5cross 1.0.0
File Interpreter ABI Platform
h5cross-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 56.4 kB

Release files / h5cross-1.0.0.tar.gz

Download URL h5cross-1.0.0.tar.gz
Size 28.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ef2d230e3d2ec539c48e11d5ccf6160fca5cc50da5a12551600e5cddda286de8
BLAKE2b-256 checksum
How to use checksums
02bdbba3c32b3ea259c3650f9668e834e01b755e80e4e4fe5fc98f1a7cf71967
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.0

Release files / h5cross-1.0.0-py3-none-any.whl

Download URL h5cross-1.0.0-py3-none-any.whl
Size 28.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90e3c1e18c852b485038392016b859aa47f3b7077eb7a0c3c8b101d9414a2c37
BLAKE2b-256 checksum
How to use checksums
b79994ceef0dfbb5219738f20fd6b116c8ce10cd8582311959203db58f77d2b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.0

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page