> 
> 
> On Dec 8, 2011, at 5:01, Hoang Trong Minh Tuan <[email protected]> 
> wrote:
> 
>> Hi Dr. Werner,
>>    I'm doing the simulation of cells. In such case, one group is a snapshot 
>> at a single time point of the system. As such, I will have tens of thousands 
>> of such groups in a file; or maybe multiple files, each file contains 
>> thousands of groups. Also, I want to generate the video from these snapshots 
>> using IDL. Would your suggestion still be the reasonable approach or should 
>> I do in a different way? . Thank you!
>> 
>> Bests,
>> Tuan
>> 
>> 
>> On Thu, Dec 8, 2011 at 2:28 AM, Werner Benger <[email protected]> wrote:
>> Hi  Tuan,
>> 
>>  why don't you put all datasets which belong to a specific time into a 
>> group, one group for each timestep, and attach time information (physical 
>> time, seconds, float attribute) as attribute to this group?
>> 
>>    Werner
>>  
>> 
>> On Thu, 08 Dec 2011 00:40:34 -0600, Hoang Trong Minh Tuan 
>> <[email protected]> wrote:
>> 
>> Hi all,
>>    I am doing simulation in which I need to keep track of time information 
>> and 2d/3d data at each time step ( I may have more than one arrays). My 
>> question is what is the best way to store such data. Should I keep 2 
>> separate dataset, one to store time, and one to store 2d/3d data; or I can 
>> combine them into a special dataset (which is I don't know)? 
>>    Thanks a lot,
>> 
>> 
>> Tuan

Hi,

what about having one large (chunked?) array with dimensions, say, NxNxNt, 
where Nt is the number of time steps? Keep a separate linear array with the 
times in them, and use the indices to connect the correct timestamp to the 
correct hyperslab/slice in the large array.

Cheers
Paul


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to