📄 addsd.1
字号:
.\" @(#)addsd.1 1.1 6/27/86.TH ADDSD 1\-SPS 6/27/86.ds ]W "\fI\s+4\ze\h'0.05'e\s-4\v'-0.4m'\fP\(*p\v'0.4m'\ Entropic Processing, Inc..SH "NAME"addsd - add SPS sampled data files with scaling.SH "SYNOPSIS".B addsd[.BI \-x " debug_level"] [.BI \-f " range"] [.BI \-s " scale"] [.BI \-i] [.BI \-t] .I "file1 file2 file3".SH "DESCRIPTION".PP.I Addsdtakes sampled date from .I file1,adds it sample-by-sample to the sampled data in .I file2,possibly scaling the data in .I file2 first, and outputs the results as an SPS SD file.I file3.If there are not enough records in .I file2, and if the.B \-toption is not used, .I addsdreuses .I file2,starting with its first record. .PPBoth.I file1and.I file2must be SPS SD files, and they must have the same sampling frequency; otherwise.I addsdexits with an error message. If "\-" is supplied in place of .I file1,then standard input is used. If "\-" is supplied in place of .I file3,standard output is used. In a typical application, .I file1is the "signal",.I file2is the "noise", and.I file3 is the "signal + noise". The data type for .I file3is the same as that in.I file1. .SH OPTIONS.PPThe following options are supported:.TP.BI \-x " debug_level"If .I debug_levelis positive,.I addsdprints debugging messages and other information on the standard erroroutput. The messages proliferate as the .I debug_levelincreases. If.I debug_levelis 0, no messages are printed. The default is 0. Levels up through 2are supported currently. .TP.BI \-f " range"Selects a subrange of records from .I file1using the format .I start\-endor.IR start:end .Either .I startor .I endmay be omitted, in which case the omitted parameter defaults respectivelyto the start or end of .I file1. The first record in .I file1is considered to be frame 1, regardless of its position relative to anyoriginal source file. The default range is the entire input file.I file1. The selected subrange from .I file1is then added to the (possibly scaled) data from the .I file2,starting with the first record of .I file2.If the subrange does not exist in.I "file1, addsd"exits with an error message. .TP.BI \-s " scale"Causes .I addsdto multiply the data in .I file2by .I scalebefore adding it to the data in .I file1. The format for .I scale is either integer or floating point. .TP.BI \-iInhibits warning messages that normally are generated if the contents of .I file2are used more than once. .TP.BI \-tTruncates the processing if there are not enough records in .I file2.In this case, .I file3will contain as many records as there are in .I file2or, if the .B \-foption is used, as many records as in the intersection of .I rangeand the full range of .I file2. .SH "SPS PARAMETERS".PPThe SPS parameter file is not read by .I addsd. .SH SPS HEADERS.PP.I Addsd reads the following values from the input SD files:all SPS file headers: .RS 5\fI.nfcommon.typecommon.ndreccommon.taghd.sd\->sfhd.sd\->src_sf.fi\fP.RE.PPThe following items in the header of the output file .I file3are set as appropriate:.RS 5\fI.nfcommon.typecommon.ndrec\fP.fi.RE.PPThe following items are copied from the header of .I file1to the header of .I file3:.RS 5\fI.nfvariable.commentvariable.referhd.sd\->sfhd.sd\->src_sf.fi\fP.RE.PPThe value of hd.sd\->equip is set to NONE. If the .B \-soption is used, the value of hd.sd\->scale is set to the value of .I scale. If the values of .I hd.sd\->max_value from both.I file1and.I file2are non-zero, the value of .I hd.sd\->max_value in .I file3is set to the value from .I file1plus .I scaletimes the value from .I file2;otherwise, the value of .I hd.sd\->max_value in .I file3is set to zero. .SH "FUTURE CHANGES".PPThe value of.I hd.sd\->max_valuein .I file3will correspond to the actual maximum value,.I notthe value of .I hd.sd\->max_valuein .I file1plus .I scaletimes the value of.I hd.sd\->max_valuein .I file2..SH "SEE ALSO".PPSPS (5-SPS), SD (5-SPS), record (1-SPS), copysd (1-SPS) .SH "WARNINGS".PPIf there are not enough records in .I file2\- i.e., if .I addsdhas to start over at the beginning of .I file2,\- a warning message is printed. This warning is inhibited by the.B \-ioption, and does not apply if.B \-tis used. .SH "BUGS".PPNone known..SH "AUTHOR".PPAjaipal S. Virdy
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -