code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#! /bin/sh
# Output a system dependent set of variables, describing how to set the
# run time search path of shared libraries in an executable.
#
# Copyright 1996-2003 Free Software Foundation, Inc.
# Taken from GNU libtool, 2001
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This program is ... | Shell |
#!/bin/sh
# postinst script for stardict
set -e
case "$1" in
configure)
# if [ -e /etc/gconf/schemas/stardict.schemas ]; then
# HOME=/root \
# GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` \
# /usr/bin/gconftool-2 \
# --makefile-install-rule /etc/gconf/schemas/stardict.schemas ... | Shell |
#!/bin/sh
# postrm script for stardict
set -e
case "$1" in
remove)
# if [ -x /usr/bin/scrollkeeper-update ]; then
# /usr/bin/scrollkeeper-update -q
# fi
;;
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
echo "postrm called with unknown argument \`$1'"... | Shell |
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
echo "Boostrapping StarDict dictionary..."
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
PKG_NAME="stardict"
REQUIRED_AUTOMAKE_VERSION=1.9
(test -f $srcdir/configure.ac \
&& test -f $srcdir/ChangeLog \
&& test -d $srcdir/src) || {
echo -n ... | Shell |
#!/bin/sh
echo "Boostrapping common lib..."
(libtoolize --version) < /dev/null > /dev/null 2>&1 || {
echo;
echo "You must have libtool installed to compile common lib";
echo;
exit;
}
(automake --version) < /dev/null > /dev/null 2>&1 || {
echo;
echo "You must have automake installed to compile common lib";
ech... | Shell |
#!/bin/bash
# 打开apache.http调试信息
adb shell setprop log.tag.org.apache.http VERBOSE
adb shell setprop log.tag.org.apache.http.wire VERBOSE
adb shell setprop log.tag.org.apache.http.headers VERBOSE
echo "Enable Debug"
| Shell |
#!/bin/bash
#
# Copyright 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | Shell |
# This shell script attempts to find the actual lexical spelling
# of the following objects:
# _iob : the traditional name of the stdio FILE structure
# _filbuf: the traditional name of the function to fill a FILE buffer
# _flsbuf: the traditional name of the function to flush a FILE buffer
#
# _uflow: _filbuf on Linux... | Shell |
if test "`cat Make.state`" != "$1"
then rm *.o Stdio_b/*.o Stdio_s/*.o Sfio_f/*.o
fi >/dev/null 2>&1
echo "$1" > Make.state
exit 0
| Shell |
#! /bin/sh
# mailhome.sh - send a message back to CWP
# John Stockwell, Center for Wave Phenomena, 1 August 1997
#set -x
# these items identify the date/release of the codes
DATE="15 Feb 2010"
RELEASE="42"
echo
echo
echo "################################################################"
echo "####### Legal Statement... | Shell |
#!/bin/sh
# $Id: ps2pdfwr,v 1.4 2002/04/23 11:58:36 easysw Exp $
# Convert PostScript to PDF without specifying CompatibilityLevel.
OPTIONS="-dSAFER"
while true
do
case "$1" in
-?*) OPTIONS="$OPTIONS $1" ;;
*) break ;;
esac
shift
done
if [ $# -lt 1 -o $# -gt 2 ]; then
echo "Usage: `basename $0` [options...] (i... | Shell |
#! /bin/sh
# /*********************** self documentation **********************/
# MERGE2 - put 2 standard size PostScript figures on one page
#
# Usage: merge2 fig1 fig2
#
# Notes: Translation values are hard-coded numbers that work well for
# standard size (8.5 x 11) figures.
# See selfdoc of: psmerge for details... | Shell |
#! /bin/sh
#/*********************** self documentation **********************/
# MERGE4 - put 4 standard size PostScript plots on one page
#
# Usage: merge4 ulfig urfig llfig lrfig
#
# Note: Translation values are hard-coded numbers that work well for
# standard size (8.5 x 11) figures.
# See selfdoc of: psmerge ... | Shell |
#! /bin/sh
# auto-correlation
# Authors: Dave, Jack
# NOTE: Comment lines preceeding user input start with #!#
set -x
#!# set parameters
panel=cdp601to610
cdpmin=601
cdpmax=610
fold=30
### compute spacing corresponding to number of offsets in the cdp gather
d2=`bc -l <<-END
scale=4
1/$fold
END`
### autocorrelate ... | Shell |
#! /bin/sh
# Muting
# Authors: Jack
# NOTE: Comment lines preceeding user input start with #!#
#set -x
#!# Set file etc.
input=cdpby100
mutepicks=mute.p
cdp=601 # gather to pick mutes from
fold=30
#!# Label output according to cdp number and get the cdp
suwind <$input key=cdp min=$cdp max=$cdp count=$fold >cdp.$cdp... | Shell |
#! /bin/sh
# Plot (approx) common offset section
# Author: Jack
# NOTE: Comment lines preceeding user input start with #!#
set -x
#!# From values in Cos shell
minoffset=291 # minimum offset
doffset=106 # delta offset (take smallest)
j=0 # j is the index of the offset range (0 is near offset)
### Plot--note that in t... | Shell |
#! /bin/sh
# Velocity analyses for the cmp gathers
# Authors: Dave, Jack
# NOTE: Comment lines preceeding user input start with #!#
#set -x
#!# Set parameters
velpanel=cdpby100
alldata=cdp201to800
#alldata=cdp201to800.pack # if not packed, zap call to suunpack2 below
vpicks=stkvel.p
normpow=0
slowness=0
cdpmin=... | Shell |
#! /bin/sh
# Create deconvolution test panels for an input cmp gather
# Authors: Jack, Ken
# NOTE: Comment lines preceeding user input start with #!#
#set -x
#!# Set file etc.
input=cdpby100
cdp=501 # pick a cdp -- also used for naming output files
fold=30
space=6 # 6 null traces between panels
tpow=2 # gain power... | Shell |
#! /bin/sh
# Shell: Unisam2
# Example: unisam2 --- uniform sampling in 2 dimensions
# Author: John Stockwell, 27 August 1992
#set -x
# constant wavespeed (of 10) model 100x100 samples
echo "10" > junkv # make ascii data
a2b < junkv n1=1 > infile.v # convert to binary
unisam2 < infile.v x1=0 n1=10... | Shell |
#! /bin/sh
# shell for sugazmig
# Author: John Stockwell 12 Oct 1992
#
set -x
#### Example 1 --- compute and display impulse response
## use suspike to make test data
#n1=64
#n2=32
#suspike nspk=3 it1=16 ix1=16 it2=32 ix2=16 it3=48 ix3=16 |
#sushw key=dt a=50000 |
#sushw key=d2 a=.05 > junk.spike
#supsimage < junk.... | Shell |
#! /bin/sh
# Select small sets of cdps for testing processing parameters
# NOTE: Comment lines preceeding user input start with #!#
# Author: Jack
set -x
#!# Set input file name and fold (if known, else adjust suwind line)
input=cdp201to800.pack # assuming packed input (cf. supack2)
fold=30
#!# Set output files and... | Shell |
#! /bin/ksh
# First break picking
# Author: Jack
# NOTE: Comment lines preceeding user input start with #!#
#set -x
#!# Set parameters
input=cdpby100
cdp=601 # pick a cdp -- also used for naming output files
dxcdp=13.36
integer timefrac=2 # use first nt/timefrac samples
integer fold=30 panelsize=6
#integer fold=6 p... | Shell |
#! /bin/ksh
# Velocity analyses for the cmp gathers
# Authors: Dave, Jack
# NOTE: Comment lines preceeding user input start with #!#
#set -x
#!# Set parameters
velpanel=cdpby100
alldata=cdp201to800.pack # if not packed, zap call to suunpack2 below
vpicks=stkvel.p
normpow=0
slowness=0
integer cdpmin=301
integer... | Shell |
#! /bin/ksh
# Muting
# Authors: Jack
# NOTE: Comment lines preceeding user input start with #!#
#set -x
#!# Set file etc.
input=cdpby100
mutepicks=mute.p
cdp=601 # gather to pick mutes from
fold=30
#!# Label output according to cdp number and get the cdp
suwind <$input key=cdp min=$cdp max=$cdp count=$fold >cdp.$cd... | Shell |
#! /bin/ksh
# auto-correlation
# Author: Dave
set -x
### set parameters
panel=cdp601to610
cdpmin=601
cdpmax=610
fold=30
d2=$(bc -l <<-END
1/$fold
END)
### autocorrelate the selected cmp's after gaining by t
sugain <$panel tpow=1 |
suacor norm=1 |
suximage f2=$cdpmin d2=$d2 \
label1="Time (sec)" title="Autocor: CMP... | Shell |
#! /bin/ksh
# Range of nmo corrections for a set of cmp gathers
# Authors: Jack, Ken
# NOTE: Comment lines preceeding user input start with #!#
set -x
#!# Set input/output file names and data parameters
input=cdpby100
nmodata=nmoscan
fold=30
space=3 # 3 null traces between panels
#!# Determine velocity sampling.
in... | Shell |
#! /bin/ksh
# Select small sets of cdps for testing processing parameters
# NOTE: Comment lines preceeding user input start with #!#
# Author: Jack
set -x
#!# Set input file name and fold (if known, else adjust suwind line)
input=cdp201to800.pack # assuming packed input
integer fold=30
#!# Set output files and cdp ... | Shell |
#! /bin/ksh
# Plot (approx) common offset section
# Author: Jack
# NOTE: Comment lines preceeding user input start with #!#
set -x
#!# From values in Cos shell
integer minoffset=291 # minimum offset
integer doffset=106 # delta offset (take smallest)
integer j=0 # j is the index of the offset range (0 is near offset)
... | Shell |
#! /bin/ksh
# Velocity analyses for the cmp gathers
# Authors: Dave, Jack
# NOTE: Comment lines preceeding user input start with #!#
#set -x
#!# Set parameters
velpanel=cdpby100
vpicks=stkvel.p1
normpow=0
slowness=0
integer cdpmin=201
integer cdpmax=800
integer dcdp=200
#integer dcdp=100
integer min max count
integer... | Shell |
#! /bin/ksh
# Create deconvolution test panels for an input cmp gather
# Authors: Jack, Ken
# NOTE: Comment lines preceeding user input start with #!#
#set -x
#!# Set file etc.
input=cdpby100
cdp=601 # pick a cdp -- also used for naming output files
fold=30
space=6 # 6 null traces between panels
tpow=1 # gain pow... | Shell |
#! /bin/ksh
# Get (approx) common offset section---runs in background
# NOTE: Comment lines preceeding user input start with #!#
# Author: Jack
set -x
#!# Set input file
input=cdp201to800.pack
### Get the variation in offset from gather to gather (cf. Getcdps)
#sugethw <cdp371to380 cdp offset >offsetvals
#exit
#!# ... | Shell |
#! /bin/ksh
# nmo, decon before stack, and stack
set -x
# set parameters
input=dmocmgs
stack=dmostack
integer cdp1=201 cdp2=800 fold=30
# nmo, decon before stack, and stack
integer count=fold*(cdp2-cdp1+1)
suwind <$input key=cdp min=$cdp1 max=$cdp2 count=$count |
sugain tpow=2 |
supef minlag=0.024 maxlag=0.250 |
sunm... | Shell |
#! /bin/ksh
# Create filter panels for an input cmp gather
# Authors: Jack, Ken
# NOTE: Comment lines preceeding user input start with #!#
#set -x
#!# Set file etc.
input=cdpby100
cdp=601 # pick a cdp -- also used for naming output files
fold=30
space=6 # 6 null traces between panels
#!# Determine range of cutoff ... | Shell |
#! /bin/sh
# nmo, decon before stack, and stack
set -x
# set parameters
input=dmocmgs
stack=dmostack
cdp1=201 cdp2=800 fold=30
# nmo, decon before stack, and stack
count=`bc -l <<END
fold*(cdp2-cdp1+1)
END`
suwind <$input key=cdp min=$cdp1 max=$cdp2 count=$count |
sugain tpow=2 |
supef minlag=0.024 maxlag=0.250 |
su... | Shell |
#! /bin/sh
# Get (approx) common offset section---runs in background
# NOTE: Comment lines preceeding user input start with #!#
# Author: Jack
set -x
#!# Set input file (the data may be packed--with supack2 or supack4)
input=cdp201to800.pack
### Get the variation in offset from gather to gather (cf. Getcdps)
#sugeth... | Shell |
#! /bin/ksh
# nmo, decon before stack, and stack
set -x
# set parameters
input=dmocmgs
stack=dmostack
integer cdp1=201 cdp2=800 fold=30
# nmo, decon before stack, and stack
integer count=fold*(cdp2-cdp1+1)
suwind <$input key=cdp min=$cdp1 max=$cdp2 count=$count |
sugain tpow=2 |
supef minlag=0.024 maxlag=0.250 |
sunm... | Shell |
#! /bin/ksh
# Constant-velocity stack of a range of cmp gathers
# Authors: Jack, Ken
# NOTE: Comment lines preceeding user input start with #!#
set -x
### From Cvstack
stackdata=cvstack
integer cdpmin=601 cdpmax=610
fold=30
space=1
integer vmin=1500 dv=150
### Plot the common velocity stacked data
integer ncdp=cd... | Shell |
#! /bin/ksh
# Plot dmocogs for western data
# Author: Dave
set -x
# plot common-offset gathers
suwind <dmocogs key=tracf min=1 max=4 count=600 |
sugain tpow=2 gpow=0.5 |
suximage f2=201 d2=1 \
label1="Time (sec)" title="Dmo common-offset gather" \
perc=99 grid1=solid &
# plot common-offset gathers
suwind <dmocmgs k... | Shell |
#! /bin/ksh
# shell to compute and plot 1-D spectrum
# Author: Jack
set -x
### set parameters
panel=cdp371to380
cdpmin=371
cdpmax=380
fold=30
d2=$(bc -l <<-END
1/$fold
END)
### get spectrum of the selected cmp's
sugain <$panel tpow=2 gpow=0.3 |
suspec1 |
suximage f2=$cdpmin d2=$d2 \
title="1-D Transform of $panel" ... | Shell |
#! /bin/sh
# auto-correlation
# Author: Dave
set -x
### set parameters
panel=cdp371to380
cdpmin=371
cdpmax=380
### autocorrelate the selected cmp's
sugain <$panel tpow=2 |
suacor norm=1 |
suximage f2=$cdpmin d2=.033333 \
label1="Time (sec)" title="Autocor: CMPs $cdpmin to $cdpmax" \
perc=99 grid1=solid &
| Shell |
#! /bin/ksh
# Range of nmo corrections for a set of cmp gathers
# Authors: Jack, Ken
# NOTE: Comment lines preceeding user input start with #!#
set -x
### From Nmoscan
nmodata=nmoscan
fold=30
space=3 # 3 null traces between panels
integer vmin=1500 vmax=3000 dv=250
integer cdpmin=401 dcdp=100
### Plot the nmo ... | Shell |
#! /bin/ksh
# deconvolution (prediction error filtering) for western data
# Author: Dave
set -v
# set parameters
input=dmostack
#input=dmocmgs
#input=cdp201to800
integer cdp1=201
integer cdp2=800
integer fold=30
# decon stack
integer count=cdp2-cdp1+1
suwind <$input key=cdp min=$cdp1 max=$cdp2 count=$count |
supef m... | Shell |
#! /bin/ksh
# plot migration for western data
# Author: Dave
# set parameters
migdata=dmomig
dxcdp=13.36
# X plot
sugain <$migdata gpow=0.8 |
suximage f2=0.0 d2=0.01336 \
label1="Time (sec)" label2="Distance (km)" \
title="Migrated DMO Stack" perc=99 grid1=solid &
| Shell |
#! /bin/ksh
# Plot deconvolution test panels for an input cmp gather
# Authors: Jack, Ken
set -x
### From Decontest
cdp=601 # pick a cdp -- also used for naming output files
fold=30
space=6 # 6 null traces between panels
deconpanel=decon.$cdp
### Plot deconvolution test panels
f2=0
d2=$(bc -l <<-END
scale=5; 1/($f... | Shell |
#! /bin/ksh
# shell to compute and plot 2-D spectrum for one of Oz's shot records
# Author: Jack
panel=cdp371to380
cdpmin=371
### get 2d spectrum of the selected cmp's
sugain <$panel tpow=2 gpow=0.3 |
sushw key=d2 a=.008 |
suspec2 |
suximage \
title="2-D Transform of $panel" \
label1="Frequency (Hz)" label2="Wavenu... | Shell |
#! /bin/ksh
# plot nmo stack for western data
# Author: Dave
set -x
# set parameters
stack=dmostack.pack
cdp1=201 cdp2=800
suunpack2 <$stack |
sugain gpow=0.5 |
suximage f2=$cdp1 d2=1 label2="CMP"\
label1="Time (sec)" title="DMO Stack of CMPs $cdp1 to $cdp2" \
perc=99 grid1=solid &
| Shell |
#! /bin/ksh
# Plot filter panels created by Filtertest for an input cmp gather
# Authors: Jack, Ken
#set -x
### From Filtertest
cdp=601 # pick a cdp -- also used for naming output files
fold=30
space=6 # 6 null traces between panels
filpanel=fil.$cdp
### Plot filter panels
f2=0
d2=$(bc -l <<-END
1/($fold + $space)... | Shell |
#! /bin/ksh
# Plot first break picks
# Author: Jack
# NOTE: Comment lines preceeding user input start with #!#
#set -x
### From Firstbreak shell
cdp=601 # pick a cdp -- also used for naming output files
pickfile=fbpicks.save
#pickfile=fbpicks.$cdp
a2b <$pickfile >temp outpar=picks.p
xgraph <temp par=picks.p nplot=... | Shell |
#! /bin/sh
# migration
set -x
# set parameters
input=dmostack
output=dmomig
dxcdp=13.36
fmax=45
# decon after stack, migrate
supef <$input minlag=0.024 maxlag=0.250 |
sufilter f=0.0,4.0,40,45 |
sumigtk dxcdp=$dxcdp fmax=$fmax verbose=1 \
speed=1 ltaper=50 nxpad=350 vfile=vintavg >$output
# plot
sugain <$outp... | Shell |
#! /bin/sh
# read segy data from original tape from record 368 to 880
# We subsampled and deleted every other shot gather (i.e. kept even #s)
# Author: Jack
output=shots.pack
minrec=368
maxrec=880
dxg=16.66667
### Take a fast look to see if we are reading the tape OK
#segyread trmax=180 |
#segyclean |
#sugain tpow=2.... | Shell |
#! /bin/sh
# Sufdmod2 --- example script for sufdmod2
# finite-difference modeling
# Author: John Stockwell
set -v
n1=100 d1=5 f1=0.0 label1="Depth (km)"
n2=100 d2=5 f2=0.0 label2="Distance (km)"
xs=250 zs=250 hsz=250 vsx=250 verbose=2
vsfile="junk.vseis" ssfile="junk.sseis" hsfile="junk.hseis"
tmax=.5 mt=5
makevel ... | Shell |
#! /bin/sh
# Shell: Smooth2
# Example: smooth2 --- smooth a uniformly sampled 2D data set
# Author: John Stockwell, 1 Oct 1992
set -x
# use unisam2 to make uniformly sampled data
# See Unisam2 for details on how to use unisam2
well1="10 10 40 40 30 30"
well2="10 10 40 40 30 30"
well3="10 10 40 40 30 30"
well4="1... | Shell |
#! /bin/sh
# Examples of segyread and segywrite
# Author: John Stockwell
set -x
##### Example 1 --- reading data from a tape to a file
##
## processing steps:
## 1) segyread ---- read the data from tape
## 2) segyclean ---- zero optional fields in SEGY header
## 3) > outfile.su ---- redirect stdout to file
##
## a... | Shell |
#! /bin/sh
# dmo
set -x
# set parameters
input=cdp201to800
temp=dmocogs
output=dmocmgs
smute=1.7
vnmo=1500,1550,1700,2000,2300,2600,3000
tnmo=0.00,0.40,1.00,2.00,3.00,4.00,6.00
# sort to common-offset, nmo, dmo, inverse-nmo
susort <$input offset cdp |
sunmo smute=$smute vnmo=$vnmo tnmo=$tnmo |
sudmofk cdpmin=201 cdp... | Shell |
#! /bin/sh
# Velocity analyses for the cmp gathers
# Authors: Dave, Jack
# NOTE: Comment lines preceeding user input start with #!#
#set -x
#!# Set parameters
velpanel=cdpby100
vpicks=stkvel.p1
normpow=0
slowness=0
cdpmin=201
cdpmax=800
dcdp=200
fold=30
#!# Set velocity sampling and band pass filters
nv=51 dv=30 fv=... | Shell |
#! /bin/sh
# Constant-velocity stack of a range of cmp gathers
# Authors: Jack, Ken
# NOTE: Comment lines preceeding user input start with #!#
set -x
#!# Set input/output file names and data parameters
input=cdp601to610
stackdata=cvstack
cdpmin=601 cdpmax=610
fold=30
space=1 # 1 null trace between panels
#!#... | Shell |
#! /bin/sh
# First break picking
# Author: Jack
# NOTE: Comment lines preceeding user input start with #!#
#set -x
#!# Set parameters
input=cdpby100
cdp=601 # pick a cdp -- also used for naming output files
dxcdp=13.36
timefrac=2 # use first nt/timefrac samples
fold=30 panelsize=6
### Label output according to cdp... | Shell |
#! /bin/sh
# Range of nmo corrections for a set of cmp gathers
# Authors: Jack, Ken
# NOTE: Comment lines preceeding user input start with #!#
set -x
#!# Set input/output file names and data parameters
input=cdpby100
nmodata=nmoscan
fold=30
space=3 # 3 null traces between panels
#!# Determine velocity sampling.
vmi... | Shell |
#! /bin/sh
# This is the same as CvStack---left here to be compatible with SU Manual v1.1
# Constant-velocity stack of a range of cmp gathers
# Authors: Jack, Ken
# NOTE: Comment lines preceeding user input start with #!#
set -x
#!# Set input/output file names and data parameters
input=cdp601to610
stackdata=cvstack
c... | Shell |
#! /bin/sh
# Shell: Unisam
# Example: unisam --- uniform sampling in 1 dimension
# Comment: unisam data format can be tough to achieve, I wrote a C
# program, mkparfile, to help with this. This shell is
# an example of how to use it to unisam to ascii data.
# The particular jargon used is for graphing time-v... | Shell |
#! /bin/sh
# Create filter panels for an input cmp gather
# Authors: Jack, Ken
# NOTE: Comment lines preceeding user input start with #!#
set -x
#!# Set file etc.
input=cdpby100
cdp=501 # pick a cdp -- also used for naming output files
fold=30
space=6 # 6 null traces between panels
#!# Determine range of cutoff fr... | Shell |
#! /bin/sh
# cdp sort
# Authors: Dave, Jack
set -x
input=shots.pack
output=cdp.pack
### Window to full fold cmgs (30 fold)--Working with PACKED data!
suwind <$input key=cdp min=1462 max=2823 |
susort cdp offset >$output
exit
### Usually cdp is set, but in this case Dave did it on the fly ...
### set cdp = shotnumbe... | Shell |
#! /bin/sh
# /*********************** self documentation **********************/
# LOOKPAR - show getpar lines in SU code with defines evaluated
#
# Usage: lookpar filename ...
#
# /**************** end self doc ********************************/
# $Source: /usr/local/cwp/src/su/shell/RCS/lookpar.sh,v $
# $Revision: 1.... | Shell |
#! /bin/sh
# /*********************** self documentation **********************/
# RMAXDIFF - find percentage maximum difference in two segy data sets
#
# Usage: rmaxdiff file1 file2
#
# /**************** end self doc ********************************/
# $Source: /usr/local/cwp/src/su/shell/RCS/rmaxdiff.sh,v $
# $Revis... | Shell |
#! /bin/sh
# /*********************** self documentation **********************/
# SUFIND - get info from self-docs
#
# Usage: sufind [-v -n] string
#
# sufind string gives a brief synopsis
# sufind -v string is a verbose hunt for relevant items
# sufind -n name_fragment searches for command name
#
# /********... | Shell |
#! /bin/sh
# /*********************** self documentation **********************/
# UNGLITCH - zonk outliers in data
#
# Usage: unglitch < stdin
#
# Note: this shell just invokes: sugain < stdin qclip=.99 > stdout
# See selfdoc of: sugain for further information
# /**************** end self doc ********************... | Shell |
#! /bin/sh
# /*********************** self documentation **********************/
# SUKEYWORD -- guide to SU keywords in segy.h
#
# Usage: sukeyword -o to begin at the top of segy.h
# sukeyword [string] to find [string]
#
# Note: keyword= occurs in many SU programs.
# /**************** end self ... | Shell |
#! /bin/sh
# /*********************** self documentation **********************/
# SUFIND - get info from self-docs
#
# Usage: sufind [-v -n] string
#
# sufind string gives a brief synopsis
# sufind -v string is a verbose hunt for relevant items
# sufind -n name_fragment searches for command name
#
# Author: ... | Shell |
#! /bin/sh
# /*********************** self documentation **********************/
# SUGENDOCS - generate complete list of selfdocs in latex form
#
# Usage: sugendocs -o output filename is: selfdocs.tex
# Note: this shell simply calls gendocs
#
#/**************** end self doc ********************************/
# Auth... | Shell |
#! /bin/sh
#set -x
# /*********************** self documentation **********************/
# SUAGC - perform agc on SU data
#
# Note: this is an interface to sugain for backward compatibility
# See selfdoc of: sugain for more information
# /**************** end self doc ********************************/
# Author: ... | Shell |
#! /bin/sh
# /*********************** self documentation **********************/
# SUDOC - get DOC listing for code
#
# Usage: sudoc name
#
# Note: Use this shell script to get selfdoc information for
# codes labeled with and asterisk (*) or pound sign (#) in suname list
# /**************** end self doc *********... | Shell |
#! /bin/sh
# /*********************** self documentation **********************/
# SUHELP - list the CWP/SU programs and shells
#
# Usage: suhelp
#
# /**************** end self doc ********************************/
PAGE_PROGRAM=cat
# test for CWPROOT
if test "${CWPROOT}" = ""
then
echo "The environment variable \"... | Shell |
#! /bin/sh
# /*********************** self documentation **********************/
# SUDIFF, SUSUM, SUPROD, SUQUO, SUPTDIFF, SUPTSUM,
# SUPTPROD, SUPTQUO - difference, sum, product, quotient of two SU data
# sets via suop2
#
# Usage:
# sudiff file1 file2 > stdout
# susum file1 file2 > stdout
# ...etc... | Shell |
#! /bin/sh
# /*********************** self documentation **********************/
# RECIP - sum opposing (reciprocal) offsets in cdp sorted data
#
# Usage: recip <stdin >stdout
#
# /**************** end self doc ********************************/
# $Source: /usr/local/cwp/src/su/shell/RCS/recip.sh,v $
# $Revision: 1.8 $... | Shell |
#! /bin/sh
# /*********************** self documentation **********************/
# SUENV - Instantaneous amplitude, frequency, and phase via: SUATTRIBUTES
#
# Usage: suenv < stdin > stdout
#
# Note: this shell mimmics the old program SUENV, supersceded by SUATTRIBUTES
# See selfdoc of: suattributes for more in... | Shell |
#! /bin/sh
# /*********************** self documentation **********************/
# MAXDIFF - find absolute maximum difference in two segy data sets
#
# Usage: maxdiff file1 file2
#
# /**************** end self doc ********************************/
# $Source: /usr/local/cwp/src/su/shell/RCS/maxdiff.sh,v $
# $Revision: ... | Shell |
#! /bin/sh
# /*********************** self documentation **********************/
# SUNAME - get name line from self-docs
#
# Usage: suname [name]
#
# Note: dummy selfdocs have been included in all cwp and shell programs
# that don't have automatic selfdocs.
# /**************** end self doc ***********************... | Shell |
#! /bin/sh
# /*********************** self documentation **********************/
# SUBAND - Trapezoid-like Sin squared tapered Bandpass filter via SUFILTER
#
# Usage: suband < stdin > stdout
#
# Note: this shell mimmics the old program SUBAND, supersceded by SUFILTER
# See selfdoc of: sufilter for more inform... | Shell |
#! /bin/sh
# mkoffs.sh - get offset.h for mkhdr.c from segy.h
# Usage: mkoffs.sh
#
# $Author: jkc $
# $Source: /NeXTMount_3.1b/usr/local/cwp/src/su/include/RCS/mkoffs.sh,v $
# $Revision: 1.3 $ ; $Date: 94/07/08 13:48:17 $
PATH=/bin:/usr/bin
cmd=`basename $0`
sed '
/int tracl/,/unass\[/!d
/;/!d
s/;.*//
/tracl/d
... | Shell |
#! /bin/sh
# mkprehdr.sh - make hdr.h from segy.h
# Usage: mkprehdr.sh
# Caution: Don't move the unsigned substitutions below the signed ones!
#
# $Author: john $
# $Source: /usr/local/cwp/src/su/include/RCS/mkprehdr.sh,v $
# $Revision: 1.2 $ ; $Date: 1996/09/09 17:10:28 $
PATH=/bin:/usr/bin
sed '
/int tracl/,/unass... | Shell |
#! /bin/sh
# mailhome.sh - send a message back to CWP
# John Stockwell, Center for Wave Phenomena, 1 August 1997
#set -x
# these items identify the date/release of the codes
DATE="15 Feb 2010"
RELEASE="42"
# home address
ADDRESS="john@dix.mines.edu"
# message
MESSAGE="Installing the $DATE version (Release ${RELEASE... | Shell |
#! /bin/sh
# make null traces with sunull, add linear moveout arrivals with suaddevent
sunull nt=500 dt=0.004 ntr=100 |
sushw key=offset a=-1000 b=20 |
suaddevent v=1000 t0=0.05 type=lmo |
suaddevent v=1800 t0=0.8 |
sufilter f=8,12,75,90 | suxwigb clip=1 &
exit 0
| Shell |
#! /bin/sh
# Clean created data files
rm -f data*.su *.eps oz* *.su
exit
| Shell |
#! /bin/sh
# Author: Werner M. Heigl
# Usage: ./WedgeModel
# We would like to create a reflectivity model of a wedge, which is
# often used to model subcropping layers against an unconformity.
# The purpose of this is to study how the wavelets interfere when
# the thickness of the subcropping layer decreases. This gi... | Shell |
#! /bin/sh
WIDTH=400
HEIGHT=400
XOFF1=50
YOFF1=50
XOFF2=450
YOFF2=450
# fake data no multiples
sunull nt=1500 ntr=60 dt=.004 |
sushw key=gx,offset a=3300,-3237 b=25,50 c=1,1 |
suchw key1=sx key2=gx key3=offset a=0 b=1 c=1 |
suaddevent type=nmo nt=1500 t0=.5 dt=.004 vel=1500 |
suaddevent type=nmo nt=1500 t0=.6 dt=.... | Shell |
#! /bin/sh
# Clean.sh - recursively call Clean.sh in the demo directories
# Test back-up dir first (at CWP must run on NeXT-net)
# Take care of subdirectories
for i in `ls`
do
if
[ -d $i ]
then
cd $i
if
[ -f Clean.sh ]
then
Clean.sh
fi
rm -f *~ \#*\# .nfs* *.eps
cd ..
fi
done
# Take care of t... | Shell |
#! /bin/sh
S=.
viewer3 verbose=1 \
< $S/hzfile3.grid \
rayfile=$S/rayfile3.grid \
sttfile=$S/sttfile3.grid \
wffile=$S/wffile3.grid
exit 0
| Shell |
#! /bin/sh
rm *.grid *.su
| Shell |
#! /bin/sh
Hz=.
nxhz=3
nyhz=3
nhz=1
tetrafile=$Hz/tetrafile3.grid
hzfile=$Hz/hzfile3.grid
tetramod verbose=1 nhz=$nhz \
nxhz=$nxhz nyhz=$nyhz \
z00=0 \
z01=0 \
z10=0 \
z11=0 \
v00=2 \
v01=2 \
v10=2 \
v11=2 \
dvdz00=1.0 \
dvdz01=1.0 \
dvdz10=1.0 \
dvdz11=1.0 \
hzfile=$hzfile > $tetrafile
exit 0
| Shell |
#! /bin/sh
Hz=.
hzfile=$Hz/hzfile3.grid
tetrafile=$Hz/tetrafile3.grid
ntakeoff=9
nazimuth=19
ifwf2dump=1
nwf2dump=7
rayfile=$Hz/rayfile3.grid
ttfile=$Hz/ttfile3.su
wffile=$Hz/wffile3.grid
sttfile=$Hz/sttfile3.grid
sutetraray verbose=1 ntakeoff=$ntakeoff nazimuth=$nazimuth \
edgemax=2.0 jpfile=$Hz/output.txt fsz=0... | Shell |
#! /bin/sh
# Clean.sh - recursively call Clean.sh in the demo directories
# Test back-up dir first (at CWP must run on NeXT-net)
# Take care of subdirectories
for i in `ls`
do
if
[ -d $i ]
then
cd $i
if
[ -f Clean.sh ]
then
Clean.sh
fi
rm -f *~ \#*\# .nfs* *.eps
cd ..
fi
done
# Take care of t... | Shell |
#! /bin/sh
# convert depth velocity density from ascii to binary format
a2b outpar=nsamp.ascii n1=3 < sonic.txt > dvrfile.bin
# note that nsamp.ascii contains the value of 28306 samples
nval=28306
# compute reflectivity function with suwellrf
suwellrf ntr=50 nval=28306 dtout=.008 dvrfile=dvrfile.bin |
sufilter > da... | Shell |
#! /bin/sh
# Clean.sh created data files
rm -f *.out *.bin *.su junk* *.eps *.ps density* velocity* nsamp*
exit
| Shell |
#! /bin/sh
# Clean.sh - recursively call Clean.sh in the demo directories
# Test back-up dir first (at CWP must run on NeXT-net)
# Take care of subdirectories
for i in `ls`
do
if
[ -d $i ]
then
cd $i
if
[ -f Clean.sh ]
then
Clean.sh
fi
rm -f *~ \#*\# .nfs* *.eps
cd ..
fi
done
# Take care of t... | Shell |
#! /bin/sh
# Clean.sh - recursively call Clean.sh in the demo directories
# Test back-up dir first (at CWP must run on NeXT-net)
# Take care of subdirectories
for i in `ls`
do
if
[ -d $i ]
then
cd $i
if
[ -f Clean.sh ]
then
Clean.sh
fi
rm -f *~ \#*\# .nfs* *.eps
cd ..
fi
done
# Take care of t... | Shell |
#! /bin/sh
# set -x
# Demos shell for sugoupillaudpo
# Albena Mateeva, Feb, 2002
#----------------------------------------------------------------------------
# Example reflection coefficient series: rdemo.asc
#
# rdemo.asc has 250 samples:
# The first one, r[1]=-1.0, represents the earth surface (free surface);
# r[... | Shell |
#! /bin/sh
# Clean.sh created data files
rm -f *.out *.su junk* *.eps *.ps density* velocity*
exit
| Shell |
#! /bin/sh
# set -x
# Demos shell for sugoupillaud
# Albena Mateeva, Jan 22, 2001
#---------------------------------------------------------------
# An example reflectivity series in rdemo.asc
#
# 2048 samples corresponding to:
#
# a surface reflection coeficient
# ( r[0]=-1.0 for this example, i.e., free surface )
... | Shell |
#! /bin/sh
# Clean.sh created data files
rm -f *.out *.su junk* *.eps *.ps density* velocity*
exit
| Shell |
#! /bin/sh
# set -x
# Demos shell for sugoupillaud
# Albena Mateeva, Jan 29, 2001
#---------------------------------------------------------------
# An example reflectivity series in rdemo.asc
#
# 2048 samples corresponding to:
#
# a surface reflection coeficient
# ( r[0]=-1.0 for this example, i.e., free surface )
... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.