Skip to Content.
Sympa Menu

h5part - Re: [H5part] Question

h5part AT

Subject: H5Part development and discussion

List archive

Re: [H5part] Question

Chronological Thread 
  • From: John Shalf <jshalf AT>
  • To: Andreas Adelmann <andreas.adelmann AT>
  • Cc: h5part AT
  • Subject: Re: [H5part] Question
  • Date: Wed, 23 Aug 2006 22:04:59 -0700
  • List-archive: <>
  • List-id: H5Part development and discussion <>

There is H5PartGetNumStepAttribs() to get the number of attributes associated with a given step. That can be followed by H5PartGetStepAttribInfo() to get the names of each attribute stored at the currently selected step and then H5PartReadStepAttrib() to actually read the attrib data stored at a given step.


On Aug 23, 2006, at 9:44 PM, Andreas Adelmann wrote:
Hello, assume you have written attributes like:


When I read the file h5, how can I obtain a list of all the writestepattrib names ("Spos" in the example above) ?

I know we have a function for getting the Datasets as shown below:

nds=H5PartGetNumDatasets(file); /* get number of datasets in timestep 0 */

for(int i=0;i<nds;i++){ /* and print out those names */
msg << "Dataset " << i << " name= " << string(name) << endl;

I do not remember having such a function for writestepattrib. Correct ?

All the best,

Dr. sc. math. Andreas (Andy) Adelmann
Staff Scientist
Paul Scherrer Institut WLGA U125 CH-5232 Villigen PSI
Phone Office: xx41 56 310 42 33 Fax: xx41 56 310 31 91
Phone Home: xx41 62 891 91 44
H5Part mailing list
H5Part AT

  • [H5part] Question, Andreas Adelmann, 08/24/2006
    • Re: [H5part] Question, John Shalf, 08/24/2006

Archive powered by MHonArc 2.6.19.

Top of Page