📄 filter.test
字号:
#!/bin/sh#@(#)filter.test 3.5 6/6/91 ESIESPSCOM=./espscomexport ESPSCOMecho Make test sampled data filetestsd -a- test.sd << EOD1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 EODecho " " echo filter the test sampled data fileecho " "echo "filter -PPfilter test.sd - | psps -H - > test"filter -PPfilter test.sd - | psps -H - > testecho " "echo "Compare test with ref (correct result)"echo diff test refcat > ref << EOD 1: 0.3333 0.7778 1.3704 0.8272 0.9918 6: 1.0631 0.9607 1.0052 1.0097 0.9918 11: 1.0022 1.0012 0.9984 1.0006 1.0001 16: 0.9997 1.0002 1.0000 1.0000 1.0000EODdiff test refecho " "echo diff should produce no outputecho " "echo "test multichannel filtering"cat > asc << EOD1 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 2EOD\rm test_mc.sdaddfea -T FEA_SD -f samples -t float -s2 -c" " asc test_mc.sd addgen -g record_freq -t double -v 8000.0 test_mc.sdecho "second column should be twice first column"filter -PPfilter test_mc.sd - | psps -H -echo " "echo "test multichannel complex filtering"cat > asc << EOD1 2 -1 -21 2 -1 -21 2 -1 -21 2 -1 -21 2 -1 -21 2 -1 -21 2 -1 -21 2 -1 -21 2 -1 -21 2 -1 -21 2 -1 -21 2 -1 -21 2 -1 -21 2 -1 -21 2 -1 -21 2 -1 -21 2 -1 -21 2 -1 -21 2 -1 -21 2 -1 -2EODaddfea -T FEA_SD -f samples -t float_cplx -c" " -s 2 asc test_cplx.sdaddgen -g record_freq -t double -v 8000.0 test_cplx.sdecho " "echo "imaginary part should be twice real part; data type should be double_cplx"echo "second field should be negative of first field"filter -PPfilter -d double test_cplx.sd - | psps -v -rm test.sd test test_mc.sd test_cplx.sd asc ref
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -