📄 plotfield.sh
字号:
#! /bin/sh################################################################################## This material contains proprietary software of Entropic Speech, Inc. # Any reproduction, distribution, or publication without the the prior # written permission of Entropic Speech, Inc. is strictly prohibited.# Any public distribution of copies of this work authorized in writing by# Entropic Speech, Inc. must bear the notice # # "Copyright (c) 1987, 1990 Entropic Speech, Inc.; All rights reserved"# "Copyriight (c) 1998 Entropic Group; All rights reserved" ### Sccs info: @(#)plotfield.sh 1.4 7/20/98 ESI# Written by: Alan Parker, ESI #################################################################################USE_ESPS_COMMON=off export USE_ESPS_COMMONESPS_VERBOSE=0export ESPS_VERBOSEtrap 'rm -f /tmp/pf$$; echo "caught signal - exiting"; exit' 1 2 3 9 15range=1text=-t" "while test x"$1" != xdo case "$1" in -r) range=$2; shift;; -r*) range=`echo $1 | awk '{print substr($0, 3)}'` ;; -f) field=$2; shift;; -f*) field=`echo $1 | awk '{print substr($0, 3)}'` ;; -t) text=-t"$2"; shift;; -t*) text=-t`echo "$1" | awk '{print substr($0, 3)}'` ;; -x) debug=$2; shift;; -x*) debug=`echo $1 | awk '{print substr($0, 3)}'` ;; -y) yopt=-y$2; shift;; -y*) yopt=-y`echo $1 | awk '{print substr($0, 3)}'` ;; -Y) Yopt=-Y$2; shift;; -Y*) Yopt=-Y`echo $1 | awk '{print substr($0, 3)}'` ;; -) infile='-';; -*) echo "plotfield: unknown option $i" ; exit 1 ;; *) break;; esac shiftdoneif test x$infile != x- -a $# != 1 then echo 'Usage: plotfield -f field [-r range] [-t text] [-y range] [-Y range] file' exit 1fiif test x$infile != x- then infile=$1 in=$1else cat >/tmp/pf$$ - infile=/tmp/pf$$ in='<stdin>'fiif test ! -r $infile then echo plotfield: cannot read file $infile exit 1fiif test x$field = x then echo 'plotfield: fieldname must be given with -f option' exit 1fi## Check for complex data#fea_element -f $field $infile | grep -s CPLXif test $? -eq 0then echo "plotfield: Input filed ($field) is complex - complex data is not supported yet." exit 1fititle="File: $in, field: $field, record: $range"element=`fea_element -c -f $field $infile` || exitline="pplain -r$range -e$element $infile | testsd -a- - | plotsd -t'$title' '$text' $Topt $Yopt $yopt -"if test x$debug != x then echo "$line" exit 0fi eval "$line" rm -f /tmp/pf$$
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -