📄 copysd.1
字号:
.\" @(#)copysd.1 1.8 4/8/87.TH COPYSD 1\-ESPS 4/8/87.ds ]W "\fI\s+4\ze\h'0.05'e\s-4\v'-0.4m'\fP\(*p\v'0.4m'\ Entropic Processing, Inc..SH NAMEcopysd - copy selected portions of sd files to a new file..SH SYNOPSIS.B copysd[.BI \-x " debug_level"] [.BI \-r " range"] [.BI \-d " data_type"] [.BI \-s " scale"] [.B \-o ] [.B \-q] .I " file1"[.I " file2 ..."].I " outfile".SH DESCRIPTION.PP.I Copysdcopies selected portions of sampled data files into a new sampled datafile.In addition to the range of points that are copied,.I copysdallows the user to specify with the .B \-doptionthe data type of the new fileand with the \fB-s\fR option a scale factor to multiply the data by.Allowable data types are bytes, shorts, longs, float, or double; thedefault data type of the output file is that of the first input file..PPIf an input file name is replaced by a minus sign, stdin is read; similarly,if.I outfileis a minus sign, the output is written to stdout..PPWhen converting from a floating to integer, the values are rounded.Values that are too large to represent in the output data type areclipped and a warning is given..PPThe header of the output file is created by using \fIcopy_header\fR(3\-ESPSu)with the \fIfirst\fR input file as the source. .SH OPTIONS.PPThe following options are supported:.TP.BI \-x " debug level"Only debug level 1 is defined in this version; this causes severalmessages to be printed. The default level is zero, which causes nodebug output..TP.BI \-r " range"Select a range of points to be processed. By default, all points inthe file are processed. As is usual for ESPS programs a range isspecified as follows: two numbers separated by a colon (beginning :end), a single number (a range consisting of one value), a numberfollowed by a colon (the largest possible value determines the end ofthe range), or a colon followed by an number (the default is to startthe range at the smallest possible value). (See.I range_switch(3)for full details of range specification.).TP.BI \-d " data_type"The argument of the switch is a character representing the output datatype:.I bfor byte,.I sfor short,.I lfor long,.I ffor float, and.I dfor double..TP.B \-sThe argument is a float value by which the input samples are multipliedbefore being written to the output..TP.B \-oNormally the ESPS header from the input files arecopied into the header of the new output file as source files.If the.B \-ois specified, the input files' headers are not stored in the output file..TP.B \-qWhen data is converted to smaller data type (e.g. LONG toSHORT) each sample is compared to the maximum value of the target datatype. Samples that exceed this maximum are clipped. Normally, whenclipping occurs, a warning message is printed giving the sample numberand the original value. The \fB\-q\fR option suppresses thiswarning..SH ESPS COMMON.PPThe following items are read from the ESPS Common File:.IP.I "start - integer".IPThis is the starting point in the input file to begin copying..sp.I "nan - integer".IPThis is the number of points to copy from the input file.A value of zero means the last point in the file..sp.I "filename - string".IPThis is the name of the input file, if an input file is not specified onthe command line..PPThe values of \fIstart\fR and \fInan\fR are only used if the input filename onthe command line is the same as the filename in the common file, orif the filename was used from the common file.If \fIstart\fR and/or \fInan\fR are not given in the common file, orif the common file can't be opened for reading, then \fIstart\fRdefaults to the beginning of the file and \fInan\fR defaults to thenumber of points in the file..PPThe following items are written into the ESPS Common file:.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 (\fIcopysd\fP in this case)..sp.I "filename - string".IPThe name of the input file. If multiple input files are processed, thisis the name of the first file. .PPThese items are not written to ESPS COMMON if the input file is <stdin>..SH BUGSCannot write a sampled data file of type byte (char in C terms).This is because of a limitation of \fIput_ddata\fR. It will be changedin a later release..SH AUTHOR.PPDavid Burton, Alan Parker
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -