next up previous contents
Next: hldec Up: Example Programs Previous: Example Programs

hlenc

Encodes raw binary data in one file and an ASCII file containing header information, into an HDF5 file.

hlenc -hdv -z compression -i inputprefix -o outputfile

-h Prints a help text.

-d Prints debugging information.

-v Prints the version number.

-z compression Sets the compression level, can be in the range 0 to 9 where 0 is no compression and 9 is the highest compression.

-i inputprefix Specifies the prefix for the input files, the files that will be read are inputprefix.info and inputprefix.data.

-o outputfile Specifies the name of the HDF5 file to be generated.

The file with extension .info should have the following apperance:
DATATYPE: ATTRIBUTE or DATASET
FIELDNAME: name of the field, e.g. '/attr1'
DATASIZE: size of the datatype in bytes
DATAFORMAT: string representation of the datatype, e.g. int
DIMS: the dimension of the data embraced by [], e.g. [10,10]

The file with extension .data should contain raw binary data with native byte order.




2000-08-08