On Thu, Mar 15, 2012 at 1:44 PM, Francesc Alted <fal...@gmail.com> wrote:
> On Mar 15, 2012, at 1:30 PM, Alvaro Tejero Cantero wrote:
>
> > I had seen this, but I don't see how to point to regions inside a
> > leaf. It seems that h5py supports this. Quoting from their
> > documentation
> >
> > <>
> > Region references always contain a selection. You create them using
> > the dataset property “regionref” and standard NumPy slicing syntax:
> >
> >>>> myds = myfile.create_dataset('dset', (200,200))
> >>>> regref = myds.regionref[0:10, 0:5]
> >
> > The reference itself can now be used in place of slicing arguments to
> > the dataset:
> >
> >>>> subset = myds[regref]
> > </>
> >
> > It seems that they can be stored in datasets and attributes.
> >
> > Typically I would like to store references to interesting features in
> > my data (contiguous slices) that I have detected with some algorithm,
> > and I was wondering if I could do that with refs in HDF5 with PyTables
> > or I should just use tuples of integers to store slices (start, end)
> > in another table, and establish a link to the table /column that these
> > tuples refer to.
>
> No, native HDF5 region references are not supported by PyTables (although
> it would be nice if we could have this implemented). In case you want
> this, then storing (start, end) in other table/column/nested column, would
> solve the problem.
>
A possibly related issue: https://github.com/PyTables/PyTables/issues/132
Please voice your desires for new features on github!
>
> -- Francesc Alted
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Pytables-users mailing list
> Pytables-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pytables-users
>
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users