Skip to Content.
Sympa Menu

h5part - Re: [H5part] Question

h5part AT lists.psi.ch

Subject: H5Part development and discussion

List archive

Re: [H5part] Question


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

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.

-john

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

H5err=h5pt_writestepattrib_r8(H5fh,"Spos",H5spos,1)
......

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 */
H5PartGetDatasetName(file,i,name,64);
msg << "Dataset " << i << " name= " << string(name) << endl;
}

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

All the best,
Andreas

--
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 lists.psi.ch
https://lists.web.psi.ch/mailman/listinfo/h5part




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