📄 sconvert.0
字号:
20 March 1986 SCONVERT(1)NAME sconvert - convert spice formatsSYNOPSIS sconvert fromtype fromfile totype tofile sconvert fromtype totype sconvertDESCRIPTION Sconvert translates spice output files among three formats: the old binary format, a new binary format, and a new ascii format. The formats are specified by the fromtype and totype arguments: `o' for the old format, `b' for the new binary format, and `a' for the new ascii format. Fromtype specifies the format to be read, and totype specifies the format to be written. If fromfile and tofile are given, then they are used as the input and output, otherwise stan- dard input and output are used. (Note that this second option is only available on UNIX systems - on VMS and other systems you must supply the filenames.) If no arguments are given, the parameters are prompted for. Binary format is the preferred format for general use, as it is the most economical in terms of space and speed of access, and ascii is provided to make it easy to modify data files and transfer them between machines with different floating-point formats. The old format is provided only for backward compatibility. The three formats are as follows: Old: What Size in Bytes title 80 date 8 time 8 numoutputs 2 the integer 4 2 variable names -- char[numoutputs][8] numoutputs * 8 types of output numoutputs * 2 node index numoutputs * 2 plot title numoutputs * 24 the actual data numpoints * numoutputs * 8 Ascii: Title: _T_i_t_l_e _C_a_r_d _S_t_r_i_n_g Date: _D_a_t_e [ Plotname: _P_l_o_t _N_a_m_e Flags: _c_o_m_p_l_e_x or _r_e_a_l No. Variables: _n_u_m_o_u_t_p_u_t_s 1SCONVERT(1) 20 March 1986 No. Points: _n_u_m_p_o_i_n_t_s Command: _n_u_t_m_e_g _c_o_m_m_a_n_d Variables: 0 _v_a_r_n_a_m_e_1 _t_y_p_e_n_a_m_e_1 1 _v_a_r_n_a_m_e_2 _t_y_p_e_n_a_m_e_2 etc... Values: 0 n n n n ... 1 n n n n ... And so forth... ] repeated one or more times If one of the flags is _c_o_m_p_l_e_x, the points look like r,i where r and i are floating point (in %e format). Otherwise they are in %e format. Only one of _r_e_a_l and _c_o_m_p_l_e_x should appear. The lines are guaranteed to be less than 80 columns wide (unless the plot title or variable names are very long), so this format is safe to mail between systems like CMS. Any number of Command: lines may appear between the No. Points: and the Variables: lines, and whenever the plot is loaded into nutmeg they will be executed. Binary: _T_i_t_l_e _C_a_r_d (a NULL terminated string) _D_a_t_e, _T_i_m_e (a NULL terminated string) [ _P_l_o_t _t_i_t_l_e (a NULL terminated string) _N_u_m_b_e_r _o_f _v_a_r_i_a_b_l_e_s (an int) _N_u_m_b_e_r _o_f _d_a_t_a _p_o_i_n_t_s (an int) _f_l_a_g_s (a short) _v_a_r_i_a_b_l_e _h_e_a_d_e_r _s_t_r_u_c_t (repeated numoutputs times) _v_a_r_i_a_b_l_e _n_a_m_e (a NULL terminated string) _v_a_r_i_a_b_l_e _t_y_p_e (an int) _s_e_t _o_f _o_u_t_p_u_t_s (repeated numpoints times) ] repeated one or more times. A set of outputs is a vector of doubles of length numoutputs, or a vector of real-imaginary pairs of doubles if the data is complex.SEE ALSO nutmeg(1), spice(1), writedata(3)AUTHOR Wayne Christopher (faustus@cad.berkeley.edu)BUGS If variable names and the title and plotname strings have trailing blanks in them they will be stripped off when the220 March 1986 SCONVERT(1) file is read, if it is in ascii format. If a plot title begins with "Title:" nutmeg will be fooled into thinking that this is an ascii format file. Sconvert always requires the type to be specified, however. 3
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -