news07

来自「su 的源代码库」· 代码 · 共 46 行

TXT
46
字号
SU News 03/17/91We are beginning to accumulate a set of really nifty Korn shellsfor doing seismic processing.  Dave got us started, and latelyKen has been constructing some examples with intriguing nameslike Filtertest, Nmoscan, etc.I'm editing (ie. generalizing, reorganizing) on a collection ofthe "Best of Dave and Ken" and expect it to become a best seller.I'll let you know when I get it ready.Meanwhile, here is a nifty hack I've discovered (and use extensivelyin these shells) for doing float calculations in shell scripts:-----#! /bin/shpi=3.14159a=`bc << EOF	$pi * 2EOF`echo $a-----#! /bin/kshpi=3.14159a=$(bc <<-EOF	$pi * 2EOF)print $a-----And now I'll announce two of the most trivial codes you can imagine:New program: sunull---construct file of null (all zeroes) tracesRemark1: This is one I've actually written many times, but this is	the first time I *meant* to get an all-zero section.  The immediate	application is to use it in a shell loop to get some space between	"panels" of actual data for clarifying screen displays.Remark2: sunull might be considered as Chris's suzero carried to the limitRemark3: Thx to Serge for the ideaNew program: sushape---compute filter that shapes given wavelet	into desired wavelet and apply it to the tracesRemark 1: suascii can be used to capture a segment of a trace (wavelet).Remark 2: If someone writes a wavelet estimation program, we'll really	have something, otherwise this is mainly for use in putting	desired wavelets on synthetic traces.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?