data search

I have a dataset (actually a Packet Table used as a Dimension Scale) which is guaranteed to be increasing (it's a time index). Is there a good way to find a specific (or nearest) time index? Do I need to write my own search routine (say midpoint, false position, or something)?

Also does anyone have an opinion on using a separate time Dimension Scale vs. just having that extra field within the Packet Table?

Scott

···

________________________________
This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender.
Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of ITT Corporation. The recipient should check this e-mail and any attachments for the presence of viruses. ITT accepts no liability for any damage caused by any virus transmitted by this e-mail.

Hi Scott,

I have solved this by adding two additional datasets, one for time and
an index to it. This was necessary because our packet table is quite
large (>> 2 GB). And it works very well. The time-array and
index-array have the same length as the packet table, only the
index-array is stored as a dataset, not a packet table, because you
have to update it every time add a non-chronological entry. If the
time-array is not too large you sort or even scan it on the fly to find
the right entry in the packet table. But this depends on your
application.

Best regards, Richard

Mitchell, Scott - AES wrote:

···

I have a dataset (actually a Packet Table used
as a Dimension Scale) which is guaranteed to be increasing (it’s a time
index). Is there a good way to find a specific (or nearest) time index?
Do I need to write my own search routine (say midpoint, false position,
or something)?

Also does anyone have an opinion on using a
separate time Dimension Scale vs. just having that extra field within
the Packet Table?

Scott


This e-mail and any files
transmitted with it may be proprietary and are intended solely for the
use of the individual or entity to whom they are addressed. If you have
received this e-mail in error please notify the sender.

Please note that any views or opinions presented in this e-mail are
solely those of the author and do not necessarily represent those of
ITT Corporation. The recipient should check this e-mail and any
attachments for the presence of viruses. ITT accepts no liability for
any damage caused by any virus transmitted by this e-mail.


This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.