Export data to an ASCII file

The data (in the time interval) displayed in the graphic panels can be stored in an ASCII file.
When the File->SaveData ->FlatFile buttons are pressed a window appears.
This dialog window is named the Flat File Dialog.
The upper part is a scrolled window containing 132 pushbuttons. These pushbuttons are used to assign the current plot to a flatfile column number.
The current plot is selected by pressing one of the small pushbutton in the upper right corner in the graphic panel in the ISDAT igr window.
We can assign from 1 to 132 plots to a flat file. However, when plotting one quantity as function of another, only one plot is allowed to save in a flat file.
Error messages are written in the "Error messages" line.
panel control If the user wants to undo his selections, the Reset is pressed.
If he wants to cancel the whole flat file saving, the Cancel button is pressed.

It is also possible to assign all plots to the flatfile at once. This is done when the AllPlots button in the Flat File Dialog is pressed. In this case the 32 first plots are assigned to the flat file.

When the requested number of plots are assigned to flat file column numbers, the Apply button is pressed.
Then the file selection part of this dialog becomes sensitive. The user now selects the name of the flat file. The default directory is at the user's home directory, and the default file name is igr.flat .

When the Ok button is pressed, the flat file is created.

If the file exists, a small dialog, the igr save verify dialog appears. If the selected file can be overwritten the user presses the Yes button. If not he has to press the No button.

When saving spectra (i.e. data with dimension 1) each spectra is saved in one (long) line.

The leftmost column in the flat file is the time for each sample. When the SecOfDay is selected the time column is the total seconds of the day.
Example:


# Time start at: 2003-04-08 07:50:00.0
# Time interval: 10800.000000 s
#
# Seconds of the day  , Cluster 1 efw E p4 10Hz any SC
#      [s]              [V]
   28200.022665778      -3.347459
   28200.222665778      -3.307652
   28200.422665778      -3.322317
   28200.622665778      -3.387267
   28200.822665778       -3.45012
When the SecFromStart button is selected the time column is the seconds from the start of the interval.
Example:

# Time start at: 2003-04-08 07:50:00.0
# Time interval: 10800.000000 s
#
#   Time from start   , Cluster 1 efw E p4 10Hz any SC
#      [s]              [V]
       0.022665778      -3.347459
       0.222665778      -3.307652
       0.422665778      -3.322317
       0.622665778      -3.387267
       0.822665778       -3.45012
In this case the third sample has the time 2003-04-08 07:50:422665778 .
When the IsoTime button is selected (default) the time column is the ISOTIME which is easier to read.
Example:

# Time start at: 2003-04-08 07:50:00.0
# Time interval: 10800.000000 s
#
# yyyy-mm-ddThh:mm:ss.sZ  , Cluster 1 efw E p4 10Hz any SC
#   [ISO time]          [V]
2003-04-08T07:50:00.022665778Z      -3.347459
2003-04-08T07:50:00.222665778Z      -3.307652
2003-04-08T07:50:00.422665778Z      -3.322317
2003-04-08T07:50:00.622665778Z      -3.387267
2003-04-08T07:50:00.822665778Z       -3.45012

When several plots are printed in a flat file, they are
printed below each other in the flat file . (In this case
the user is guaranteed a correct time for each sample.)


Updated Feb 09, 2010 by Bjørn Lybekk