Hdf-forum Digest, Vol 55, Issue 43

Send Hdf-forum mailing list submissions to
        hdf-forum@lists.hdfgroup.org

To subscribe or unsubscribe via the World Wide Web, visit

http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org

or, via email, send a message with subject or body 'help' to
        hdf-forum-request@lists.hdfgroup.org

You can reach the person managing the list at
        hdf-forum-owner@lists.hdfgroup.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Hdf-forum digest..."

Today's Topics:

   1. Re: Converting image files to HDF5 (George N. White III)
   2. Re: Problem with property lists (Rob Latham)

----------------------------------------------------------------------

Message: 1
Date: Thu, 30 Jan 2014 14:10:36 -0400
From: "George N. White III" <gnwiii@gmail.com>
To: HDF Users Discussion List <hdf-forum@lists.hdfgroup.org>
Subject: Re: [Hdf-forum] Converting image files to HDF5
Message-ID:
        <
CAKTOP44-Xm5vvXUQPnurNhigpJjmOXrK5G-QW8sbDV2nOjJ3qw@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

I use GDAL for mapped image data (by creating a .vrt file for each image).
  ImageMagick has support the formats you mention. If you are hoping to
interpret indexed color images as data you need to watch for optimizations
that can scramble the original relationship between colors and data values
(some tools used to apply annotations will "optimize" the color palette,
presumably to "free up" some colors for annotations, but they can leave you
with an image where similar colors are far apart in the color LUT).

> Deal All,
>
> I needed to convert PNG, TIFF, and BMP files to HDF5 image format in
batch
> mode.
> Is there any command line tools (or libraries I can use in C++ or Python
)
> exist for this?
>
> Thanks in advance.
>
> --Gheni Abla
>
>
>
>
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> Hdf-forum@lists.hdfgroup.org
>
>
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
>

--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://mail.lists.hdfgroup.org/pipermail/hdf-forum_lists.hdfgroup.org/attachments/20140130/c82f295b/attachment-0001.html
>

------------------------------

Message: 2
Date: Thu, 30 Jan 2014 13:07:06 -0600
From: Rob Latham <robl@mcs.anl.gov>
To: <hdf-forum@lists.hdfgroup.org>
Subject: Re: [Hdf-forum] Problem with property lists
Message-ID: <52EAA2DA.6030708@mcs.anl.gov>
Content-Type: text/plain; charset="windows-1252"; format=flowed

> Indeed that was the problem, one of the groups was not closed.

Sometimes it can be hard to figure out which HDF doodad is still open.
I use this (c code) snippet to point to the culprit:

   norphans = H5Fget_obj_count(file->file_id, H5F_OBJ_ALL);
   if (norphans > 1) { /* expect 1 for the file we have not closed */
       int i;
       H5O_info_t info;
       char name[64];
       hid_t * objects = calloc(norphans, sizeof(hid_t));
       H5Fget_obj_ids(file->file_id, H5F_OBJ_ALL, -1, objects);
       for (i=0; i<norphans; i++) {
           H5Oget_info(objects[i], &info);
           H5Iget_name(objects[i], name, 64);
           printf("%d of %zd things still open: %d with name %s of type
%d", i, norphans, objects[i], name, info.type);
       }
   }

==rob

--
Rob Latham
Mathematics and Computer Science Division
Argonne National Lab, IL USA

------------------------------

Subject: Digest Footer

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org

http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org

------------------------------

End of Hdf-forum Digest, Vol 55, Issue 43
*****************************************

···

On Jan 31, 2014 10:00 AM, <hdf-forum-request@lists.hdfgroup.org> wrote:

On Thu, Jan 30, 2014 at 1:39 PM, Gheni Abla <abla@fusion.gat.com> wrote:
On 01/21/2014 02:37 AM, Matthieu Dorier wrote: