⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 firstbreak.ksh

📁 su 的源代码库
💻 KSH
字号:
#! /bin/ksh# First break picking# Author: Jack# NOTE: Comment lines preceeding user input start with  #!##set -x#!# Set parametersinput=cdpby100cdp=601		# pick a cdp -- also used for naming output filesdxcdp=13.36integer timefrac=2	# use first  nt/timefrac samplesinteger fold=30 panelsize=6#integer fold=6 panelsize=6### Label output according to cdp number and get the cdppickfile=fbpicks.$cdpinteger nt=$(sugethw ns <$input | sed 1q | sed 's/.*ns=//')integer itmax=nt/timefracsuwind <$input key=cdp min=$cdp max=$cdp count=$fold |suwind itmax=$itmax >cdp.$cdp### Do the pickingprint "Pick first breaks by moving mouse and typing 's', type 'Q' when done"integer trace=1while ((trace <= fold))do	sushw <cdp.$cdp key=tracr a=1 b=1 |	suwind key=tracr min=$trace count=$panelsize |	suxwigb perc=99 xcur=0.25 nbpi=96 f2=$trace d2=1 wbox=1100 \		label1="Time (sec)" label2="Velocity (m/sec)" \		mpicks=mpicks.$trace	trace=trace+panelsizedoneset +x### Combine the individual picksprint "Editing pick files ..."trace=1while ((trace <= fold))do	cat mpicks.$trace	trace=trace+panelsizedone |awk '	BEGIN	{dx='$dxcdp'}		{print $1 "	" (NR-1)*dx}' >$pickfilea2b <$pickfile >temp outpar=picks.pxgraph <temp par=picks.p nplot=1 \	label1="Time (sec)" label2="Range (m)" \	title="First Breaks" \	grid1=solid grid2=solid \	linecolor=2 style=seismic &### Clean uptrace=1while ((trace <= fold))do	rm mpicks.$trace	trace=trace+panelsizedonerm tempprint "The first breaks are recorded in $pickfile"

⌨️ 快捷键说明

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