Export data

Irena produces large number of data sets, which can sometimes be exported when created, but more often not. While the most convenient use of the data is within Igor experiment by ploting or processing further, many users may want to use another programs. And then it is imperative to export them as ASCII files. This is the tool for that…

../_images/DataExport1.jpeg

Above are standard set of controls. Select data in the top part of the panel. Than decide – do you want to see graph of the data? Do you want to see any associated notes (Irena writes a lot of stuff in the wave notes)?

Push button “Load data”

Note the “Export multiple data sets?” checkbox. It opens the Multiple Data Export selection panel. This panel enables exporting of many data sets at once. The correct use of this option is to export one data set manually (sets all parameters and export paths), test one data set and then use the Multiple Data set option…. See comments later.

../_images/DataExport2.png

Now we have graph and list of notes. Note, that no attempt is made to create sensible graph. You may have to modify the graph manually if needed.

Next select Output options:

Attach notes about data will attach the wave note into the ASCII file. Note, at the bottom of the panel is field where one can insert the separator character (including spaces) if different than default is desired.

Use folder names for output if you are using folder names as anmes for samples, this is sensible…

Use Y wave name for output if your Y wvae name is sample name (e.g., qrs data this type)

“Set export folder” set where to store data. Cannot create folder, create first, then set here. The folder is displayed din red box above the button.

Export file name modify, if default is not good enough

Export file extension set to whatever needed

Header separator change, if different isdesired. Include spaces, if these are desired!!!

“Export Data & Notes” button does the job. If the data exist, you will be asked if you want to overwrite them.

Multiple data set export option:

../_images/DataExport3.jpeg

There are few items one needs to know about this tool.

  1. If you make changes to the main panel, the list of folders in this panel may get stale. Use button “Update list” to update it.
  2. There is logic in listing the data which is actually quite complicated… Here are some comments:
  1. The tool started to search for data from parent folder of data selected in the main panel. In the current selection :
../_images/DataExport4.jpeg

The tool start searching from root:USAXS:USAXS_WMU: - if you cannot find your data, select different starting folder in the main panel and update the list. This is to reduce clutter and help users with giant experiments…

  1. For results… The tool will search for not only the same data type as selected in the main panel, but also same generation! Therefore, if you have in some folders saved multiple results from same tool (you have waves with results like: SizesVolumeDistribution_0, but in some also SizesVolumeDistribution_1, SizesVolumeDistribution_2, etc…) the tool will search only for generation (“_0”, “_1”,…) selected in the main panel. It just gets really messy to create different logic.