EnglishFrenchSpanish

OnWorks favicon

h5jam - Online in the Cloud

Run h5jam in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command h5jam that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


h5jam - Add a user block to a HDF5 file

SYNOPSIS


h5jam -u user_block -i in_file.h5 [-o out_file.h5] [--clobber]

DESCRIPTION


h5jam concatenates a user_block file and an HDF5 file to create an HDF5 file with a user
block. The user block can be either binary or text. The output file is padded so that the
HDF5 header begins on byte 512, 1024, etc.. (See the HDF5 File Format.)

If out_file.h5 is given, a new file is created with the user_block followed by the
contents of in_file.h5. In this case, infile.h5 is unchanged.

If out_file.h5 is not specified, the user_block is added to in_file.h5.

If in_file.h5 already has a user block, the contents of user_block will be added to the
end of the existing user block, and the file shifted to the next boundary. If --clobber is
set, any existing user block will be overwritten.

EXAMPLE USAGE


Create new file, newfile.h5, with the text in file mytext.txt as the user block for the
HDF5 file file.h5.

h5jam -u mytext.txt -i file.h5 -o newfile.h5

Add text in file mytext.txt to front of HDF5 dataset, file.h5.

h5jam -u mytext.txt -i file.h5

Overwrite the user block (if any) in file.h5 with the contents of mytext.txt.

h5jam -u mytext.txt -i file.h5 --clobber

RETURN VALUE


h5jam returns the size of the output file, or -1 if an error occurs.

CAVEATS


This tool copies all the data (sequentially) in the file(s) to new offsets. For a large
file, this copy will take a long time.

The most efficient way to create a user block is to create the file with a user block (see
H5Pset_user_block), and write the user block data into that space from a program.

The user block is completely opaque to the HDF5 library and to the h5jam and h5unjam
tools. The user block is simply read or written as a string of bytes, which could be text
or any kind of binary data. It is up to the user to know what the contents of the user
block means and how to process it.

When the user block is extracted, all the data is written to the output, including any
padding or unwritten data.

This tool moves the HDF5 file through byte copies, i.e., it does not read or interpret the
HDF5 objects.

Use h5jam online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Image Downloader
    Image Downloader
    Crawl and download images using
    Selenium Using python3 and PyQt5.
    Supported Search Engine: Google, Bing,
    Baidu. Keywords input from the keyboard
    or input from ...
    Download Image Downloader
  • 2
    Eclipse Tomcat Plugin
    Eclipse Tomcat Plugin
    The Eclipse Tomcat Plugin provides
    simple integration of a tomcat servlet
    container for the development of java
    web applications. You can join us for
    discussio...
    Download Eclipse Tomcat Plugin
  • 3
    WebTorrent Desktop
    WebTorrent Desktop
    WebTorrent Desktop is for streaming
    torrents on Mac, Windows or Linux. It
    connects to both BitTorrent and
    WebTorrent peers. Now there's no
    need to wait for...
    Download WebTorrent Desktop
  • 4
    GenX
    GenX
    GenX is a scientific program to refine
    x-ray refelcetivity, neutron
    reflectivity and surface x-ray
    diffraction data using the differential
    evolution algorithm....
    Download GenX
  • 5
    pspp4windows
    pspp4windows
    PSPP is a program for statistical
    analysis of sampled data. It is a free
    replacement for the proprietary program
    SPSS. PSPP has both text-based and
    graphical us...
    Download pspp4windows
  • 6
    Git Extensions
    Git Extensions
    Git Extensions is a standalone UI tool
    for managing Git repositories. It also
    integrates with Windows Explorer and
    Microsoft Visual Studio
    (2015/2017/2019). Th...
    Download Git Extensions
  • More »

Linux commands

Ad