吴文官 发表于 2004-12-24 18:06:38

在Magic Linux 1.2下安装sac

SAC(Seismic Analysis Code)是由加州大学Lawrence Livermore国家实验室(LLNL)开发研制的用于处理和研究时间序列信号,主要是地震信号的通用软件。其分析能力包括通常的算术运算、傅氏变换、频谱估计、IIR和FIR滤波、信号叠加处理(stacking)、数据提取、数值内插、相关分析、地震震相读取(picking)等。SAC具有多种绘图功能,同时提供不同的版本以适用于不同的计算机系统。现行的SAC版本可适用于UNIC(AT&T System V,Berkeley4.2),DEC VAC/VMS,PRIME,IBM VM/CMS,AIX,Stellar,Data General等不同的系统,在图形处理方面可适用于仿真Tektronix 4010/4014的任何图形终端,以及X-Window,SUN-Window等适用于工作站的图形系统。
SAC采用交互式命令的驱动方式,即每条命令都需要在终端上键入,或者将其放在宏(macro)命令文件中去执行。地震信号存储在数据文件中,数据文件包括一个头段,用来说明这个文件的内容。SAC格式可与CSS格式和SEED格式进行相互转换。
sac的安装其实很简单,只要解压就可以了,但是由于涉及到添加用户以及设置用户的环境变量,而且安装说明写得模糊不清,所以给一些用户带来麻烦。这是我在Magic Linux 1.2上安装sac的过程,供大家参考。
[root@wuwenguan software]# adduser -s /bin/csh sac
[root@wuwenguan software]# ls /home/
sacwuwenguan
[root@wuwenguan software]# cp sac_v59.48_linux.tar.gz /home/sac/
[root@wuwenguan software]# passwd sac
Changing password for user sac.
New UNIX password:
BAD PASSWORD: it is too short
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@wuwenguan software]# cd /home/sac
[root@wuwenguan sac]# ls .
./             .bash_logout   .bashrc
../            .bash_profile.kde/
[root@wuwenguan sac]# cp /etc/csh.cshrc /home/sac/.cshrc
[root@wuwenguan sac]# ls -a
.   .bash_logout   .bashrc.kde
...bash_profile.cshrc   sac_v59.48_linux.tar.gz
[root@wuwenguan sac]# chown -c sac .cshrc
‘.cshrc’ 的所有者已更改为 sac
[root@wuwenguan sac]# ll .cshrc
-rw-r--r--1 sac root 599 12月 24 17:43 .cshrc
[root@wuwenguan sac]# chgrp -c sac .cshrc
‘.cshrc’ 的所属组已更改为 sac
[root@wuwenguan sac]# ll .cshrc
-rw-r--r--1 sac sac 599 12月 24 17:43 .cshrc
[root@wuwenguan sac]# cp /etc/csh.
csh.cshrccsh.login
[root@wuwenguan sac]# cp /etc/csh.login /home/sac/.login
[root@wuwenguan sac]# chown -c sac .login
‘.login’ 的所有者已更改为 sac
[root@wuwenguan sac]# chgrp -c sac .login
‘.login’ 的所属组已更改为 sac
[root@wuwenguan sac]# vi .login
[root@wuwenguan sac]# su sac
[sac@wuwenguan ~]$ tar vfxz sac_v59.48_linux.tar.gz   
修改过的.login文件内容:

# /etc/csh.login

# System wide environment and startup programs, for login setup

if ($?PATH) then
      setenv PATH "${PATH}:/usr/X11R6/bin"
else
      setenv PATH "/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:~/bin
"
endif

limit coredumpsize unlimited

setenv HOSTNAME `/bin/hostname`
set history=1000

if ( ! -f $HOME/.inputrc ) then
      setenv INPUTRC /etc/inputrc
endif

if ( $?tcsh ) then
      bindkey "^[[3~" delete-char
endif
setenv SACAUX /home/sac/aux
setenv SACGRAPHIC xwindow

SAC下载:
http://www.linuxfans.org/nuke/modules.php?name=Site_Downloads&op=geninfo&did=2995

zzb 发表于 2004-12-24 18:13:57

:-D

吴文官 发表于 2004-12-24 18:27:04

我估计你八成是没有改变.login和.cshrc的属主

lovewilliam 发表于 2004-12-24 18:32:30

没有传感器怎么分析?

又是帮助其他人分析数据的东西?

网格计算?

architectcom 发表于 2004-12-25 00:45:22

好酷的应用啊

zzb 发表于 2004-12-28 13:56:32

SAC2000 works similiarly on each of these computers. This section includes instructions to help you set up your environment to be able to run SAC2000 on each of these types of computers. The instructions are short and easy to implement. Once you have completed them, you will be ready to start using SAC2000. If they are not clear or if you have problems please see your system administrator or the person who installed SAC2000 on your system.



First set up the environmental variable SACAUX to be the name of the directory that contains the SAC auxiliary files. These files are used by SAC2000 while it is executing. Assume that this directory is located on your system in the directory /foo/sac/aux. If you are running under AT&T System V you would put the following in your .profile file:



SACAUX = /foo/sac/aux


export SACAUX



If you are running under BSD 4.2 you would put the following in your .login file:



setenv SACAUX /foo/sac/aux



It is important that SACAUX be in uppercase and that the pathname be entered in the correct case. The SAC2000 executable is called sac2000 and is normally found in the bin subdirectory (i.e. /foo/sac/bin/sac). Add this subdirectory to your search path or set up an alias. Once you have completed these two steps, to start up the program type "sac2000".

zzb 发表于 2004-12-28 13:59:51

吴文http://www.llnl.gov/sac/官,

zzb 发表于 2004-12-30 15:10:53

我已经安装成功了,哈哈
页: [1]
查看完整版本: 在Magic Linux 1.2下安装sac