Re: h5dump and h5import, dimension sizes

152 views
Skip to first unread message

Ben

unread,
Oct 28, 2011, 8:46:47 AM10/28/11
to alembic-d...@googlegroups.com
Hi,

The hdf5 command tool "h5dump" is pretty handy to look at the structure
of an .abc file.
Basically it allows to expand the .abc in an ascii file.
http://www.hdfgroup.org/HDF5/doc/RM/Tools.html#Tools-Dump
The opposite command, "hd5import", takes an ascii file and compress it
in an hdf5 format (so .abc I guess)
http://www.hdfgroup.org/HDF5/doc/RM/Tools.html#Tools-Import
Also, as so far the python binding for writing alembic files are still
in progress, it might be a possibility to write down a not-heavy file in
this ascii format with python and to then compress it using
hd5import../lib/Alembic/AbcCoreHDF5/ReadUtil.cpp
To test this out I have to provide the dimension sizes of the dataset.
I see that there are some methods "readDimension()" in
./lib/Alembic/AbcCoreHDF5/ReadUtil.h though before going further I'd
like to know if that's a good way to go.
Regards


--
Benjamin Raverdy

VFX software engineer
La Maison
13-15 rue Gaston Latouche
92 210 Saint-Cloud. France
email: b.ra...@alamaison.fr
phone: 01.41.12.20.27

Lucas Miller

unread,
Oct 28, 2011, 12:27:35 PM10/28/11
to alembic-d...@googlegroups.com
This might work for certain small things, but would be terribly
inefficient for larger files, you would also need to be careful of
things sharing a dataset (linking) that you might be changing, as well
as keeping the hash keys that go along with the dataset correct.

Although technically possible It's not a good way to go,

Lucas

> --
> You received this message because you are subscribed to the Google
> Groups "alembic-discussion" group.
> To post to this group, send email to alembic-d...@googlegroups.com
> To unsubscribe from this group, send email to
> alembic-discuss...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/alembic-discussion?hl=en
>
> For RSS or Atom feeds related to Alembic, see:
>
> http://groups.google.com/group/alembic-dev/feeds
>
> http://groups.google.com/group/alembic-discussion/feeds
>

Reply all
Reply to author
Forward
0 new messages