h52gif does not accept the palette switch

Hi,

I am trying to use h52gif with the -p switch to specify a palette to be
used, but it does not seem to work.

I am using HDF5 version 1.8.10.

By the documentation h52gif should accept the -p switch:
http://www.hdfgroup.org/HDF5/doc/RM/Tools.html#Tools-H52GIF

On the other hand h52gif binary does not recognize it:
$ h52gif
Usage: h52gif <h5_file> <gif_file> -i <h5_image>
       h52gif -V
        Print HDF5 library version and exit
h52gif expects *at least* one h5_image.

The follow command has the same output:
$ h52gif /data/path/h5file.h5 output.gif -i CTTH_TEMPER -p 03-PALETTE

The source code of the version 1.8.10 does not hint to the the -p switch
http://fossies.org/dox/hdf5-1.8.10/hdf2gif_8c_source.html

whereas the version 1.6.5 is one of the last ones that does
http://www.nco.ncep.noaa.gov/pmb/codes/nwprod/gempak/nawips2/extlibs/HDF5/v1.6.5/tools/gifconv/hdf2gif.c

What could be the case?

Best regards,
Peeter

Hi Peeter,

It is great to know that someone is using the tool :slight_smile:

In the 1.6.6 release the h52gif and gif2h5 converters were rewritten to use High-Level Image APIs (http://www.hdfgroup.org/HDF5/doc/HL/RM_H5IM.html) that can handle palettes stored in an HDF5 file. Apparently (to be verified) -p became obsolete and was removed without proper announcement and documentation.

Are you getting the expected behavior with the 1.8.10 version (except -p option, of course)? If not, please report the issues to help@hdfgroup.org and we will go from there.

Thank you!

Elena

···

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Elena Pourmal The HDF Group http://hdfgroup.org
1800 So. Oak St., Suite 203, Champaign IL 61820
217.531.6112
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

On Nov 27, 2012, at 5:24 AM, Peeter Puusemp wrote:

Hi,

I am trying to use h52gif with the -p switch to specify a palette to be used, but it does not seem to work.

I am using HDF5 version 1.8.10.

By the documentation h52gif should accept the -p switch:
http://www.hdfgroup.org/HDF5/doc/RM/Tools.html#Tools-H52GIF

On the other hand h52gif binary does not recognize it:
$ h52gif
Usage: h52gif <h5_file> <gif_file> -i <h5_image>
       h52gif -V
        Print HDF5 library version and exit
h52gif expects *at least* one h5_image.

The follow command has the same output:
$ h52gif /data/path/h5file.h5 output.gif -i CTTH_TEMPER -p 03-PALETTE

The source code of the version 1.8.10 does not hint to the the -p switch
http://fossies.org/dox/hdf5-1.8.10/hdf2gif_8c_source.html

whereas the version 1.6.5 is one of the last ones that does
http://www.nco.ncep.noaa.gov/pmb/codes/nwprod/gempak/nawips2/extlibs/HDF5/v1.6.5/tools/gifconv/hdf2gif.c

What could be the case?

Best regards,
Peeter
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

HDF4 Users,

We are seeking your inputs on the tool hdf2jpeg. Please read on if its
future matters to you.

A little background:

i. The name of the tool hdf2jpeg may imply that any HDF images
were to be extracted and converted to JPEG. However, the tool only extracts
JPEG images.

ii. There is an inquiry about hdf2jpeg supporting RI and RI8 images
as well.

Your comments to the following options will be helpful for us to make the
most suitable decision:

1. Update hdf2jpeg to support RI and RI8 images and clearly describe
the tool in HDF documentation.

2. Keep hdf2jpeg as is and clearly describe what the tool does in HDF
documentation, and provide a new tool that allows the extraction of various
HDF objects (images, SDSs, vdatas,.) via option flags.

Thank you,

Binh-Minh

(The HDF Group)