Save all waves in experiment?
pmazzoni
Tue, 02/13/2018 - 09:27 pm
I would like to export all waves in an Igor experiment to a text format like tab-delmited or CSV. To do this I would write a routine that goes through each datafolder, saves all waves within it, and then searches for the next subfolder and repeats the process. A nicer option would be to save everything, including variables and strings, similar to the Unpacked Experiment format, but in text form. This would be for archiving purposes.
If anyone has a utility already written for either of purposes and wants to share it, I would very much appreciate it.
Pietro
You might consider using HDF5.
Execute
DisplayHelpTopic "HDF5SaveGroup"
Look at the TestSaveGroup example. If you execute:
TestSaveGroup(root:)
it saves all data in the current experiment in a single HDF5 file.
For background information on HDF5 and for installation instructions, execute:
DisplayHelpTopic "HDF5XOP"
February 14, 2018 at 06:44 am - Permalink
February 14, 2018 at 11:43 am - Permalink
Thank you both for suggesting hdf5. I only recently learned about this format and so far I had been focused on reading files in hdf5. It had not occurred to me that Igor might be able to save in this format too. It's exactly what I wanted!
Pietro
February 21, 2018 at 07:18 pm - Permalink