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.

-á.



On Thu, Mar 15, 2012 at 17:59, Anthony Scopatz <scop...@gmail.com> wrote:
> Links are covered here.
>
> soft: http://pytables.github.com/usersguide/libref.html?#the-softlink-class
> hard: http://pytables.github.com/usersguide/libref.html?#the-externallink-class
>
> On Thu, Mar 15, 2012 at 7:56 AM, Alvaro Tejero Cantero <alv...@minin.es>
> wrote:
>>
>> Does PyTables support object region references[1]?
>>
>> When using soft links to other files, is a performance penalty
>> incurred? I like the idea of having the raw data, that never changes,
>> referenced from another file that is read-only. How do you guys
>> normally deal with this scenario?
>>
>> Álvaro.
>>
>> [1] I learnt about them here:
>> http://h5py.alfven.org/docs-2.0/topics/refs.html
>>
>>
>> ------------------------------------------------------------------------------
>> 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
>

------------------------------------------------------------------------------
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

Reply via email to