📄 nodiff.t
字号:
#!/bin/sh# This material contains unpublished, proprietary software of # Entropic Research Laboratory, Inc. Any reproduction, distribution, # or publication of this work must be authorized in writing by Entropic # Research Laboratory, Inc., and must bear the notice: ## "Copyright (c) 1990-1991 Entropic Research Laboratory, Inc. # All rights reserved"## The copyright notice above does not evidence any actual or intended # publication of this source code. ## @(#)nodiff.t 1.2 7/23/91 ERL# # Written by: Bill Byrne# Checked by:# Revised by:# # Brief description: nodiff test script# echo "Nodiff expects to find filters in ESPS_BASE/lib/filters "echo "following should find diff1.filt, ..., diff5.filt"echo "ls `get_esps_base`/lib/filters/diff[1-5].filt"ls `get_esps_base`/lib/filters/diff[1-5].filtecho " " cat > asc << EOD1 -10 00 00 00 00 00 00 00 00 0EODaddfea -f field1 -t double -s 2 -c" " asc testecho "nodiff -o5 -f field1 test test.d5"nodiff -o5 -f field1 test test.d5echo "Testing fifth order difference: output should be "cat << EOD 1 -1 -5 5 10 -10-10 10 5 -5 0 0 0 0 0 0 0 0 0 0EODecho "pplain -f field1_d5 test.d5"pplain -f field1_d5 test.d5echo " "echo "Testing first order difference: output should be "cat << EOD1 -1 1 -1 1 -10 0 -5 5 -6 60 0 10 -10 15 -150 0 -10 10 -20 200 0 5 -5 15 -150 0 0 0 -5 50 0 0 0 0 00 0 0 0 0 00 0 0 0 0 00 0 0 0 0 0EODecho "nodiff -f field1_d5 test.d5 test.d1"nodiff -f field1_d5 test.d5 test.d1pplain test.d1echo "check that following fields are defined in test.d1"cat << EODItem name: field1, type: DOUBLE, size: 2, rank: 1Item name: field1_d5, type: DOUBLE, size: 2, rank: 1Item name: field1_d5_d1, type: DOUBLE, size: 2, rank: 1EODecho " "echo "psps -Dv test.d1 | grep Item"psps -Dv test.d1 | grep Itemecho " "echo " "echo "test feasd processing"rm asccat > asc << EOD1 -10 00 00 00 0EODtestsd -t double -c -a asc test.sdecho "testsd -t double -c -a asc test.sd"nodiff -o5 -f samples test.sd test.d6echo "Testing fifth order difference: output should be "cat << EODRecord 1:samples: [1, -1]samples_d5: [1, -1]Record 2:samples: [0, 0]samples_d5: [-5, 5]Record 3:samples: [0, 0]samples_d5: [10, -10]Record 4:samples: [0, 0]samples_d5: [-10, 10]Record 5:samples: [0, 0]samples_d5: [5, -5]EODecho " "echo "psps test.d6"psps test.d6rm asc test test.d5 test.d1 test.sd test.d6
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -