Jump to content

Query Result as HDF5?

Recommended Posts

Hi there,


I want to export stress querrys with large data sets. Until no I use:

myModel GetQueryCtrlHandle myQuery


myQuery WriteData ...


This results in large files. Is there a way to export also compressed data formats like .hdf5?

I know you can export hdf5 directly with control cards when running the simulation, but is it also possible afterwards?


Thanks in advance and best regards,


Share this post

Link to post
Share on other sites

Hi Merula,


How big are your data sets? I export my query results in hwascii format and the result files are rather small sized. I'm unaware of a method to export in compressed data formats, but if you find anything I would be interested as well.

I think the "WriteData" command always results in .csv format. I prefer to use a loop to handle the results:


myQuery GetIteratorHandle iter

for {iter First} {[iter Valid]} {iter Next} {

lappend Datalist [iter GetDataList]



You are more flexible in handling the result format this way, since you can format the data before exporting it.




Merula and Rahul R like this

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...