📄 man.diff
字号:
.\" Copyright (c) 1986-1990 Entropic Speech, Inc..\" Copyright (c) 1996 Entropic Research Laboratory, Inc. All rights reserved..\" @(#)setrange.1 1.9 3/31/97 ESI/ERL.ds ]W (c) 1991 Entropic Research Laboratory, Inc..TH SETRANGE 1\-ESPS 3/31/97.SH NAMEsetrange - put range in records or seconds in Common; allow conversion from seconds.SH SYNOPSIS.B setrange[.BI \-x " debug_level"] [.BI \-P " param_file"] [.BI \-{prs} " range"] [.B \-z] .I " esps_file".SH DESCRIPTION.PP.I Setrangetakes a range of time (specified in seconds), converts it to a rangeof records in the ESPS FEA file \fIesps_file\fP, and leavesthe sample range in ESPS Common. Note that \fIsetrange\fPtakes into consideration the value of the\fIstart_time\fP generic, if it exists. (That is, the times specified by \fB-s\fP are treated as absolute times, not as times relative to the start of the file.) \fISetrange\fP also takes a range specified in records, converts it to a range in seconds, and leaves the time range in ESPS Common. Actually, regardless of whether a time or record range is given, \fIsetrange\fPwrites Common with range values in both measurement units. .PPIn computing the range in records, \fIsetrange\fP uses the generic\fIrecord_freq\fP (number of records per seconds). This is thesampling rate for FEA_SD files. If \fIrecord_freq\fP does not existor is less than or equal to 0, \fIsetrange\fP exits with an errormessage..PPUnless the \fB-z\fP option is used, \fIsetrange\fP prints a messagegiving the range in points that is stored in ESPS Common..PP\fISetrange\fP will work properly with old-style sampled data (SD)files. .PP\fISetrange\fP is useful when run before other ESPS programs thatprocess FEA files but that do not permit a range specification in timeunits. It is also useful in scripts when one needs to convert ineither direction between range specs in records or time. Futureversions of ESPS will provide a uniform means of specifying ranges astime or samples. \fISetrange\fP is provided as interim support..SH OPTIONS.PPThe following options are supported:.TP.BI \-x " debug"Only debug level 1 is defined in this version. This causes severalmessages to be printed as internal processing proceeds. The defaultis level 0, which causes no debug output..TP .BI \-P " param_file"uses the parameter file .I param_filerather than the default, which is.I params..TP.BI \-s " first" : "last".TP.BI \-s " first" :+ "incr"Specifies in units of time (seconds) the range of sampled data in\fIesps_file\fP. In the first form, a pair of unsigned integersspecifies the range. If.IR last " = " first " + " incr,the second form (with the plus sign) specifies the same range as thefirst two forms. If .I firstis omitted, the default value of 0 is used. If .I lastis omitted, then the end of the file is assumed. The beginning of \fIesps_file\fP is treated as 0 seconds. .TP.BI \-{p} " first" : last "\fR [1:(last in file)]".TP.BI \-{p} " first" :+ incr.TP.BI \-{r} " first" : last "\fR [1:(last in file)]".TP.BI \-{r} " first" :+ incrSpecifies in units of points the range of sampled data in the\fIesps_file\fP. In the first form, a pair of unsigned integers givesthe first and last points of the range, counting from 1 for the firstpoint in the file. If.I firstis omitted, 1 is used. If .I last is omitted, the range extends to the end of the file. The second formis equivalent to the first with.I "last = first + incr".This option should not be specified if.B \-sis specified. If neither option is specified, the range is determinedby the parameters.I start_sand.I nan_sas read from the parameter file. If either parameter is missing fromthe parameter file, it is determined by default. Note that \fB-p\fPand \fB-r\fP are synonyms. .TP.B \-zSuppress output message giving range of sampled data points. .SH ESPS PARAMETERS.PPThe parameter file is not required to be present, as there are default parameter values that apply. If the parameter file does exist, the following parameters are read:.TP.I "start_s - float".IPThe starting point to be processes (in seconds). A value of 0 denotesthe start of the file. This parameter is read only if the no rangeoption is used. If it is not in the parameter file, the default valueof 0 is used..TP.I "nan_s - float".IPThe total number of seconds in the range. If .I nan_sis 0, the whole file is processed. This parameter is read only if the no rangeoption is used. If it is not in the parameter file, the default valueof 0 is used..SH ESPS COMMON.PPESPS Common is not read. .PPThe following items are written into the ESPS Common file:.IP.I "start - integer".IPThe starting sample number in \fIesps_file\fP..IP.I "nan - integer".IPThe number of samples in the selected range..IP.I "start_s - float".IPThe starting time (seconds) in \fIesps_file\fP..IP.I "end_s - float".IPThe ending time (seconds) in the selected range..IP.I "nan_s - float".IPThe totoal time (seconds) in the selected range..IP.I "prog - string".IPThis is the name of the program (\fIsetrange\fP in this case)..I "filename - string".IPThe name of \fIesps_file\fP. .SH ESPS HEADERS.PPFor FEA files, \fIsetrange\fP makes use of the the generic headeritems start_time and record_freq. If the input file is an oldstyle SD, the header is converted automatically to a FEA_SD header before proceeding (i.e., the generics don't need to be there in the SD header). .SH DIAGNOSTICS.PP.I Setrangeinforms the user and exits if \fIesps_file\fP does not exist, or is not anESPS sampled data file..PPIf the starting point requested is greater than the last point in\fIesps_file\fP, then a message is printed and the program exits. Ifthe ending point requested is greater than the last point in\fIesps_file\fP, it is reset to the last point and a warning isprinted. continues..SH FILES.SH BUGS.SH EXPECTED CHANGES.PP.SH AUTHOR.PPManual page and program by John Shore.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -