HDF compressor: Useful tool for compressing a HDF4 file

Language/Format: C++
Application type(s): Data Conversion
Related project(s):

Description

The hdfcompressor tool copies a source HDF file and compress its SDS data, using a gzip algorithm.

Limitation

At this time, only the file/SDS attributes and SDS data are supported. The VData, VGroup… are ignored.

The build process supports only the UNIX/LINUX platforms

Usage

hdfcompressor infile outfile  [compression-level]
 
    infile  a valid and existing HDF file [REQUIRED]
 
    outfile path to the compressed output file [REQUIRED]
 
    [compression-level] gzip compression level, from 0 to 9 [OPTIONAL]. If not set, 6 is used by default

Download

Source can be downloaded here :

HDFCompressor.v1.0.0.tar.gz

Package can be browsed here :

HDFCompressor

Compilation

Prerequisites

Environment

First, set the pathes to the HDF4 library by defining the environment variables

  • HDF_INC=<HDF4-includes-directory> , where <HDF4-includes-directory> contains the HDF4 library includes : hdf.h, mfhdf.h…
  • HDF_LIBDIR=<HDF4-libraries-directory>, where <HDF4-libraries-directory> contains the HDF4 libraries : libdf.a ( or libdf.so ), libmfhdf.a ( or libmfhdf.so )

If you are using the bash shell, this can be done via the export command :

> export HDF_INC=&lt;HDF4-includes-directory>
> export HDF_LIBDIR=&lt;HDF4-libraries-directory>

Of course, replace <HDF4-includes-directory> and <HDF4-libraries-directory> by the real pathes on your system.

Build

Build the application by running

> make

If successfull, the hdfcompressor tool will be situed in the bin directory. You can also use the library contained in the lib directory

Copyright

Copyright (C) 2010 Icare – ICARE web site

Nicolas PASCAL, nicolas.pascal@icare.univ-lille.fr

This program is a free software; you can redistribute it and/or modify it under the terms of the CeCILL Public License as published by www.cecill.info (License version 2 or later).

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the CeCILL Public License for more details.

You should have received a copy of the CeCILL Public License along with this program; if not, please contact www.cecill.info

For any questions or concerns regarding this program, or general information about the ICARE Project, please email to contact@icare.univ-lille.fr

 

Author(s): Nicolas Pascal (ICARE)

More news

Development Tools

HDF5 reader: HDF5 files read library in many languages

Language/Sofware: C, Fortran, IDL, MATLAB, Python
Application type(s): Data Read/Write
Related project(s):
Description:
The library contains high-level read functions for HDF5 files in R and MATLAB.
Author(s): Aminata Ndiaye (CGTD)

25.08.2014

Development Tools

SSMIS tools: Useful Python software for reading SSMI binary files

Language/Sofware: Numpy, Python
Application type(s): Data Conversion, Data Read/Write
Related project(s):
Description:
This tool is a reading Python software for SSMI binary files consisting in some headers followed by records with the same pattern (Headers and record patterns are described in text files: ./conf/).
Datasets are returned as Numpy arrays and write in HDF4 file.
Author(s): Nicolas Henriot. Bruno Six (ICARE)

27.02.2014

Development Tools

SSMI_TOOLS: Useful Python software for reading SSMI binary files

Language/Sofware: Numpy, Python
Application type(s): Data Conversion, Data Read/Write
Related project(s):
Description:
This tool is a reading Python software for SSMI binary files consisting in some headers followed by records with the same pattern (Headers and record patterns are described in text files: ./conf/).
Datasets are returned as Numpy arrays and write in HDF4 file.
Author(s): Nicolas Henriot. Bruno Six (ICARE)

26.02.2014

Search