man.diff
来自「speech signal process tools」· DIFF 代码 · 共 414 行
DIFF
414 行
.\" Copyright (c) 1991 Entropic Research Laboratory, Inc. All rights reserved..\" @(#)clip.1 1.2 4/2/97 ERL.ds ]W (c) 1991 Entropic Research Laboratory, Inc..TH CLIP 1\-ESPS 4/2/97.if n .ds - ---.if t .ds - \(em\h'-0.2m'\(em.SH "NAME"clip \- apply clipping or center clipping to FEA fields.SH "SYNOPSIS".B clip[.BI \-c " range"] [.BI \-f " input_field"[.BI \-f " output_field"]] [.BI \-m " range"] [.BI \-r " range"] [.BI \-x " debug_level"] [.BI \-C " const_value"] [.BI \-P " params"].I "input output".SH "DESCRIPTION".PP.I clipaccepts a FEA file \fIinput\fP containing arbitrary fields.It produces a FEA file \fIoutput\fP with records that are copies of theinput records except that there is a field.I output_fieldcontaining the results of applying specified clipping or ``center-clipping''operations to each element of the selected field.I input_field.It is possible to limit the the field elements to a given maximum or minimum(see the.B \-moption) or to replace all values in a given range with a given constant value(see.B \-cand.BR \-C ).The output field has the same size, rank, dimensions, and data type as.I input_field.If run on complex data, the programwill simply treat the real and imaginary parts separately as real data.Normally,.I output_fieldis a new field, different from any in the input file.However, the output field may replace an existing field, including.I input_field.In that particular case, the program transforms the contents of.I input_fieldby applying the specified operations to each element..PPIf \fIinput\fP is "\-", standard input is used for the input file.If \fIoutput\fP is "\-", standard output is used for the output file.The input and output should not be the same file;however, it is okay to run the program as a filter by specifying "\-"for both input and output..PPNote that the.B \-foption is used to specify both the input and output field names.If an output name isn't specified (the option is used once),the output name defaults to the input name followed by the suffix "_CLIP"..PP.I clippreserves FEA subtype information\*-for example,if the input is a FEA_SPEC file, the output file header will contain thesubtype code indicating a FEA_SPEC file,and the output file will in fact be a FEA_SPEC fileif one precaution is observed.Namely, if the output field is one that the FEA subtype specificationsubjects to requirements,it is the user's responsibility to see that the requirements are not violated.It is always legitimate to add a new field with a name not mentioned in thesubtype specification..PPFor scaling and shifting data, type conversion,and more general computations and transformations, see programs.IR copysd (1-ESPS),.IR copysps (1-ESPS),.IR feafunc (1-ESPS),and.IR select (1-ESPS)..SH OPTIONS.PPThe following options are supported. Default values are shown in brackets..TP.BI \-c " ctr_min" : "ctr_max" "\fR [(none):(none)]".TP.BI \-c " ctr_min" :+ "incr"In the first form,a pair of real numbers specifies a range for ``center-clipping.''(Decimal point and "e" followed by exponent are optional.)Input values between.I ctr_minand.I ctr_maxare replaced in the output witha specified value.I const_value.That is the argument of the.B \-Coption if.B \-Cis specified.Otherwise.I const_valueis taken from the parameter file, and if no value is found there,the default value of 0 is used.The second form specifies the same range as the first with.IR ctr_max " = " ctr_min " + " incr.If.B \-cis specified,.I ctr_minand.I ctr_max(or.I ctr_minand.IR incr )must both be given explicitly,and neither value is read from the parameter file..TP.BI \-f " field_name" "\fR [samples]".TP.BI \-f " field_name" "\fR [(input field name)_CLIP]"If this option is used once, it specifies the name of the source field\fIinput_field\fP in \fIinput\fP. If it is used twice, the secondtime it specifies the name of the destination field \fIoutput_field\fPin \fIoutput\fP. The default name for the input field is "samples".The default name for the output field is the input fieldfollowed by the suffix "_CLIP".If the output field has the same name as some field in the input file,the original contents of the field are lost.A warning message is normally printed in that case.However, if the output field is specified as "\-", the name of the inputfield is used instead, and the warning message is suppressed..TP.BI \-m " clip_min" : "clip_max" "\fR [(minus infinity):(plus infinity)]".TP.BI \-m " clip_min" :+ "incr"In the first form, a pair of real numbers specifies a range for clipping.(Decimal point and "e" followed by exponent are optional.)Input values of.I clip_minor less are replaced in the output with.I clip_min,andinput values of.I clip_maxor greater are replaced in the output with.I clip_max.Either.I clip_minor.I clip_maxmay be omitted, implying the default: no clipping on that side.The second form specifies the same range as the first with.IR clip_max " = " clip_min " + " incr.If this option is specified, neither.I clip_minnor.I clip_maxis read from the parameter file..TP.BI \-r " start" : "last" "\fR [1:(last in file)]".TP.BI \-r " start" :+ "incr".TP.BI \-r " start"In the first form, a pair of unsigned integers specifies the rangeof records to be processed.Either.I startor.I lastmay be omitted; then the default value is used.If.IR last " = " start " + " incr,the second form (with the plus sign) specifies the same range as the first.The third form (omitting the colon) specifies a single record.The \fB\-r\fP overrides the values of \fIstart\fP and \fInan\fP from the parameter file.The value of.I nanbecomes 1 +.IR last " \- " start(first form), 1 +.I incr(second form), or 1 (third form)..TP.BI \-x " debug_level" "\fR [0]"A positive value specifiesthat debugging output be printed on the standard error output.Larger values result in more output.The default is 0, for no output..TP.BI \-C " const_value" " \fR [0]"Input values in the range from.I ctr_minto.I ctr_max(see.BR \-c )are replaced with this value in the output.This option is ignored unless.B \-cis also specified or the parameter-file values.I ctr_minand.I ctr_maxare given.This value overrides any value for.I const_valuespecified in a parameter file.If the option is not specified and no value is specified in a parameter file,the default of 0 is used..TP.BI \-P " param" "\fR [params]\fP"The name of the parameter file..SH "ESPS PARAMETERS".PPThe parameter file does not have to be present,since all the parameters have default values.The following parameters are read, if present, from the parameter file:.TP.I "ctr_min \- float".TP.I "ctr_max \- float".IPThese are the limits of the interval for ``center-clipping'':the operation described under the.B \-coption.The values in the parameter file are ignored if the option is specified.If.B \-cis not specified,the parameter file must either contain both of these values or contain neither.In the former case center-clipping is done, and in the later case it isn't..TP.I "clip_min \- float".TP.I "clip_max \- float".IPThese are the limits of the invervalfor the clipping operation described under the.B \-moption.The values in the parameter file are ignored if the option is specified.If.B \-mis not specified, then.I clip_minis used as a lower bound for clipping if present, and.I clip_maxis used as an upper bound for clipping if present..TP.I "const_value \- float".IPThis is the constant replacement value for the center-clipping operationas described under the.B \-coption.The value in the parameter file is ignored if the.B \-Coption is specified or if center-clipping is not done.If.I const_valis not specified either with the.B \-Coption or in the parameter file, the default value of 0 is used..TP.I "input_field \- string".IPThis is the name of the selected data field in.I input.The default is "samples". A parameter-file value (if present) is overriddenby the first use of the \fB\-f\fP option. .TP.I "output_field \- string".IPThis is the name of the field in.I outputin which the result values are stored.The default name is that of \fIinput_field\fP with a suffix "_CLIP".A parameter file value (if present) is overridden by the second use ofthe \fB\-f\fP option..TP.I "start \- integer".IPThis is the first record of \fIinput\fP to process. The default is 1.It is not read if the \fB\-r\fP option is used..TP.I "nan \- integer".IPThis is the number of records to process. It is not read if the\fB\-r\fP option is used. A value of zero means all subsequentrecords in the file; this is the default..PPRemember that command line option values override parameter-filevalues..SH "ESPS COMMON".PPESPS Common processing may be disabled by setting the environment variableUSE_ESPS_COMMON to "off". The default ESPS Common file is .espscom in the user's home directory. This may be overridden by settingthe environment variable ESPSCOM to the desired path. User feedback ofCommon processing is determined by the environment variable ESPS_VERBOSE,with 0 causing no feedback and increasing levels causing increasinglydetailed feedback. If ESPS_VERBOSE is not defined, a default value of 3 isassumed..PPESPS Common is not processed by .I clipif \fIinput\fP is standard input. Otherwise, provided that the Common file is newer than the parameter file, and provided that the \fIfilename\fP entry in Common matches \fIinput\fP, the Common values for \fIstart\fP and \fInan\fP override those that may be present in the parameter file. .PPThe following items are written into the ESPS Common file provided that \fIoutput\fP is not <stdout>. .IP.I "start \- integer".IPThe starting point from the input file..sp.I "nan \- integer".IPThe number of points in the selected range..sp.I "prog \- string".IPThis is the name of the program .RI ( clipin this case)..sp.I "filename \- string".IPThe name of the input file \fIinput\fP..SH ESPS HEADERS.PPThe \fIoutput\fP header is a new FEA file header. All generic headeritems are copied from the input header to the output header. Thegeneric header item \fIstart_time\fP is written with a value computedby taking the \fIstart_time\fP value from the header of the input file(or zero, if such a header item doesn't exist) and adding to it therelative time from the first record in the file to the first recordprocessed. The computation of \fIstart_time\fP depends on the value of the generic header item \fIrecord_freq\fP in the input file.If this item is not present, \fIstart_time\fP is just copied from the input file to the output. .PPThe items \fIstart\fP and \fInan\fP are rewritten (if they alreadyexist) to contain the starting record number and number of recordsprocessed.As usual, the command lineis added as a comment, and the header of \fIinput\fP is added as asource file to \fIoutput\fP..SH "FUTURE CHANGES".PP.SH "SEE ALSO".PP.nf\fIaddfea\fP(1\-\s-1ESPS\s+1), \fIaddgen\fP(1\-\s-1ESPS\s+1), \fIcopysps\fP(1\-\s-1ESPS\s+1), \fIcopysd\fP(1\-\s-1ESPS\s+1), \fIframe\fP(1\-\s-1ESPS\s+1), \fImergefea\fP(1\-\s-1ESPS\s+1),\fIpwr\fP(1\-\s-1ESPS\s+1), \fIselect\fP(1\-\s-1ESPS\s+1), \fIfeafunc\fP(1\-\s-1ESPS\s+1),FEA(5\-\s-1ESPS\s+1).fi.SH "WARNINGS AND DIAGNOSTICS".PPIf an unknown option is specified, if.B \-fis used more than twice, or if the number of file names is wrong,.I clipprints a synopsis of command-line usage and exits.The program exits with an error message if any of the following are true: .I inputdoes not exist or is not an ESPS FEA file; .I inputis the same as.I output(but not "\-");the \fIinput_field\fP does not exist in.I input;the data type of.I input_fieldis nonnumeric;a bad range is specified with.BR \-r .The program prints a warning and continues if an explicit.I output_field(that is, not specified as "\-") already exists in.I input..SH "BUGS".PPNone known. .SH "AUTHOR".PPManual page and program by by Rod Johnson,based on John Shore's.I feafunc.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?