C-PLOT

Scientific Graphics and Data Analysis

3.3. - sa save current data



lists the current data points on the screen or, if specified, to a file or device.
sa
or
sa [-b] filename [a or w]
You may, for example, wish to save data to a file if you have entered data using the digitizer or the keyboard, if you have created or modified data with a user function (see fn, Chapter 11), if you have modified data using the data editor, gd 7, or if you wish to save data in binary format.

If no parameters are given with the command, save data lists the values of the current data on the screen. If 3D, error-bar and/or line-control modes are on, r, s, z and/or p values are listed, as appropriate, in addition to x and y.

Filename is the path name of a file or device to which to write the data points. If the file already exists, you will be asked whether you want to write over the current contents of the file or add the data to the end of the file. Type <return> if you don't want to do either. You also can choose on the command line to write over or append the file by putting an a, for append, or a w, for write over, after the file name.

A -b before the file name will cause the data to be written to the file in a binary format suitable for reading back with gd modes 13 or 14. Binary data files can be read in and written out faster than ASCII files and are generally smaller.

Save data will abort if there is a write error to the file or device.