当前位置:文档之家› su简单中文使用手册

su简单中文使用手册

CWP软件的安装与简单使用手册CWP软件的安装一.在LINUX下建立用户CWP,在CWP下建立目录path,将源文件cwp.su.all.37.tar.Z放二.到path目录下,并建立bin文件夹三.在CWP用户主目录下显示隐藏文件,修改.bash_profile 文件,在已有的export之后另起一行,分别添加export CWPROOT=/home/CWP/path,再于PATH=$PATH:$HOME/bin后添加:/home/CWP/path/bin:/home/CWP退出保存四.从终端中分别输入cd pathzcat cwp.su.all.37.tar.Z | tar –xvf-…待终端中反映完毕,分别输入cd srcmake installmake xtinstallmake mglinstallmake utilsmake xminstallmake sfinstall这期间可能有系统安装所等待的时间,不用急,但凡遇到yes/no,一路y下来即可。

四.为了检查是否安装完毕,在终端中输入Suplane > data.suSuxwigb < data.su &若出现一个简单的图像,则成功!CWP软件的简单说明一、文中涉及的命令全部以小写形式,均可在终端窗口下输入,以次获取自述帮助。

先说几个命令:suplane和suxwigb,more。

suplane作用是产生一个简单的零偏移距su文件,suxwigb是一个典型的X—windows 绘制图形工具,如例子:suplane > data.susuxwigb < data.sumore < data.su比较全面的了解它们,请在终端中输入suplane , suxwigb ,more 。

二、关于DEMOS的应用所有DEMOS必须把文件拷到用户根目录下,而后依照readme文件中的执行顺序,在终端中输入文件名。

注意目录下的文件变动。

三、在执行DEMOS文件时,如果想清楚了解程序执行过程,请输入more programname由于水平有限,这里的谬误很多,希望大家能在偶尔翻看时,多多留心,发现并改正,衷心希望能和大家一起学习。

谢谢第一节两种数据的转换在CWP应用中免不了和两种数据打交道,su和segy格式。

它们有联系也有区别。

一.数据的输入输出1 读写编辑数据常用命令如下:segyread---read an SEG-Y tapesegywite---write an SEG-Y tapesegyclean—zeor out unsigned portion(部分)of headersuaddhead---put headers on bare traces and set the track and ns fieldssustrip—remove the SEGYheaders from the tracessupaste---paste existing(现存的) SEGY headers on existing datasegyhdrs—make segyascii and innards(内部) headers for segywrite bhedtopar,setbhed---editing the binary header filesurange---get max and min values for non-zero header entriessuchw---change header word using one or two header word fieldssugethw---get the header words in su datasuedit---examine segy diskfiles and edit headerssuxedit---examine segy diskfiles and edit headers2 常规的数据转换命令a2b—convert ascii floats to binaryb2a---convert binary floats to asciiftnstrip---convert fortran floats to c-systels floatsrecast---recast data type (convert from one data type to another)h2b—convert 8 bit hexadecimal floats to binarytransp—transpose an n1 by n2 element matrix二.SEGY与SU的转换SEGY文件格式由三部分组成,镜象头文件,十进制头文件和实际的地震记录,而SU 格式的文件只含有其第三部分。

命令segyread可以实现两种格式的转换,使用如下:在“big-endian”平台上,Segyread tape=/dev/rmt0 verbose=1 endian=1 >data.su或者更常用一点的Segyread tape=/dev/rmt0 verbose=1 endian=1 | segyclean > data.su命令行中斜线部分是SEGY磁带的位置(或者是磁盘文件的位置),其它应用看自述文档。

三.典型命令的使用如下命令行输入,注意主目录中文件的变化和终端中的屏幕输出。

1.suplane > data.susuxwigb < data.su &segyhdrs < data.subhedtopar < binary outpar=binary.parsetbhed bfile=binary par=binary.par [parameter1=value paramenter2=value……]segywriteb2a < data.binary n1=5 > data.asciia2b <data.ascii n1=5 > data.binarytransp < data.binary n1=5 >data.trnsp2.Su数据简单操作suplane >data.susustrip < data.su head=data.headers > data.binsuaddhead <data.bin ns=1024 > data.susupaste < data.bin ns=1024 head=data.headers >data.susurange < data.susuplane | surangesugethw < data.su key=tracl,tracr.offset,dt,ns | moresuplane |sugethw key=tracl,tracr,offset,dt ns output=binary > file.binmore file.binsushw < data.su key=sx a=6400 c=-100 j=5 > data.new.susuplane |sushw key=sx a=6400 c=-100 j=5 | sugethw key=sx | moresuplane | sushw key=offset a=200 b=200 j=5 | sugethw key=offset | moresuplane | sushw key=dt,sx ,offset,a=2000,6400,200 b=0,0,200 c=0,-100,0j=0,5,5 | sugethw key=dt,sx,offset | moresuedit data.su第二节CWP中图形打印显示工具一.X-WINDOWS下的图形打印1.浮点数据绘图常用的命令有xcontour—x contour plot of f(x1,x2) via vector plot callximage---x imgae plot of a uniformly-sampled function f(x1,x2)xwigb---x wiggle-trace plot of f(x1,x2) via bitmapxgraph---x grapher graphs n[i] pairs of (x,y) coordinatesxmovie ---image one or more frames of a uniformly sampled function f(x1,x2) 相应的,在SU平台上有以下程序suxcontoursuximagesuxwigbsuxgraphsuxmoviesuxmax例子:suplane | suxcontour title=‖contuour‖ &suplane | suximgae title=‖image‖ &suplane | suxwigb title=‖wigb‖ &suplane | suxgraph title=‖graph‖ &suplane | suxmovie title=‖movie‖ &suplane | suxmax tilte=‖max‖ &suplane | junk1.susuplane | suaddnoise sn=20 >>junk1.susuplane | suaddnoise sn=15 >>junk1.susuplane | suaddnoise sn=10 >>junk1.susuplane | suaddnoise sn=5 >>junk1.susuplane | suaddnoise sn=3 >>junk1.susuplane | suaddnoise sn=2 >>junk1.susuplane | suaddnoise sn=1 >>junk1.susuxmovie < junk1.su n2=32 title=‖frame=%g‖ loop=1 &2.PS 下的图形打印pscontourpsimagepswigbpsgraphpsmoviepscubepswigp在SU平台上相应的程序有:supscontoursupsimagesupswigbsupsgraphsupsmoviesupscubesupswigp例子:suplane > junk.susupscontour <junk.su title=‖contour‖ > data1.eps &supsimage <junk.su title=‖image‖label1=―sec‖ label2=‖trace number‖ > data2.eps & supswigb <junk.su title=‖bitmap wigb traces‖ > data3.eps &supsgraph <junk.su title=‖graph‖ > data4.eps &supsmovie <junk.su title=‖movie‖ > data5.eps &supscube <junk.su title=‖coue plot‖ > data6.eps &supswigp <junk.su title=‖wiggle trace‖ > data7.eps &运行以上程序之后,进入主目录,在所生成的*.eps文件上点击右键,打开方式选择ggv,查看图像。

相关主题