Query Result as HDF5?

Merula_20758
Merula_20758 Altair Community Member
edited October 2020 in Community Q&A

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,

Merula

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2018

    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.

     

    Thanks,

    niwi