1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5 <link rel=
"stylesheet" media=
"screen" type=
"text/css" href=
"./style.css" />
6 <link rel=
"stylesheet" media=
"screen" type=
"text/css" href=
"./design.css" />
7 <link rel=
"stylesheet" media=
"print" type=
"text/css" href=
"./print.css" />
9 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8" />
13 <h1 class=
"sectionedit1" id=
"ngsconvert_man-page">ngsconvert man-page
</h1>
15 <pre class=
"code">SCONVERT(
1) SCONVERT(
1)
20 sconvert - convert spice formats
23 sconvert fromtype fromfile totype tofile
24 sconvert fromtype totype
28 Sconvert translates spice output files among three formats: the old
29 binary format, a new binary format, and a new ascii format. The for-
30 mats are specified by the fromtype and totype arguments: ‘o’ for the
31 old format, ‘b’ for the new binary format, and ‘a’ for the new ascii
32 format. Fromtype specifies the format to be read, and totype specifies
33 the format to be written. If fromfile and tofile are given, then they
34 are used as the input and output, otherwise standard input and output
35 are used. (Note that this second option is only available on UNIX sys-
36 tems - on VMS and other systems you must supply the filenames.) If no
37 arguments are given, the parameters are prompted for.
39 Binary format is the preferred format for general use, as it is the
40 most economical in terms of space and speed of access, and ascii is
41 provided to make it easy to modify data files and transfer them between
42 machines with different floating-point formats. The old format is pro-
43 vided only for backward compatibility. The three formats are as fol-
56 char[numoutputs][
8] numoutputs *
8
57 types of output numoutputs *
2
58 node index numoutputs *
2
59 plot title numoutputs *
24
60 the actual data numpoints * numoutputs *
8
64 Title: Title Card String
67 Flags: complex or real
68 No. Variables: numoutputs
70 Command: nutmeg command
71 Variables:
0 varname1 typename1
78 ] repeated one or more times
81 If one of the flags is complex, the points look like r,i where r and i
82 are floating point (in %e format). Otherwise they are in %e format.
83 Only one of real and complex should appear.
85 The lines are guaranteed to be less than
80 columns wide (unless the
86 plot title or variable names are very long), so this format is safe
87 to mail between systems like CMS.
89 Any number of Command: lines may appear between the No. Points:
90 and the Variables: lines, and whenever the plot is loaded into
91 nutmeg they will be executed.
95 Title Card (a NULL terminated string)
96 Date, Time (a NULL terminated string)
98 Plot title (a NULL terminated string)
99 Number of variables (an int)
100 Number of data points (an int)
102 variable header struct (repeated numoutputs times)
103 variable name (a NULL terminated string)
104 variable type (an int)
105 set of outputs (repeated numpoints times)
106 ] repeated one or more times.
109 A set of outputs is a vector of doubles of length numoutputs, or
110 a vector of real-imaginary pairs of doubles if the data is complex.
113 nutmeg(
1), spice(
1), writedata(
3)
116 Wayne Christopher (faustus@cad.berkeley.edu)
119 If variable names and the title and plotname strings have trailing
120 blanks in them they will be stripped off when the file is read, if it
123 If a plot title begins with
"Title:
" nutmeg will be fooled into think-
124 ing that this is an ascii format file. Sconvert always requires the
125 type to be specified, however.
130 4th Berkeley Distribution
20 March
1986 SCONVERT(
1)
</pre>