Wiki@CSUSP

Sismologia, Sismologia, Sismologia!

Ferramentas do usuário

Ferramentas do site


soft:seisan

como instalar o SeisAn

# baixar o arquivo com o código compilado para RedHat 7 (parece funcionar bem no Ubuntu):

 wget ftp://ftp.geo.uib.no/pub/seismo/SOFTWARE/SEISAN/seisan_linux_8.2.1.tar.gz

# baixar os dados de teste (caso queira)

wget ftp://ftp.geo.uib.no/pub/seismo/SOFTWARE/SEISAN/seisan_test_data.tar.gz

# escolher um diretório para instalacao

cd /opt

# descompactar o pacote

tar -zxvf seisan_linux_8.2.1.tar.gz

# criar o arquivo $SEISAN/COM/SEISAN.sh e adicioná-lo ao /etc/profile ou .bashrc do usuario com as devidas alteracoes:

       # bash definition of SEISAN config environment file
	# 20090512
	# =================================================
	#
	# SEISAN definitions to be sourced from users .cshrc file
	#
 
	#
	# set platform, used for compilation, can be linux or solaris
	#
	export SEISARCH='linux'
 
	#
	#    set SEISAN top directory
	#
	export SEISAN_TOP='/opt/seisan_linux_8.2.1'   # top directory for data 
	export SEISAN_RES='/opt/seisan_linux_8.2.1'   # top directory for programs
 
	#
	# set editor
	#
	export SEISAN_EDITOR='gedit' 
 
	#
	# rename laser printers
	#
	export PRINTER='sune-2'
	export IMAGEN='sune-2'
 
	#
	# set X and Y scaling for Postscript output 
	#   some examples:  A4     x=0.55,y=1.0
	#                   Letter x=0.55,y=0.9
	#
	export SEISAN_PSSCALE_X=0.55 
	export SEISAN_PSSCALE_Y=1.0 
 
	#
	# set default data base
	#
	export DEF_BASE='TEST'
 
	#
	# set up search path
	#
 
	pro_path="$SEISAN_RES/PRO"
	if [ $(echo $PATH | grep -c $pro_path) == 0 ];
	then 
	   export PATH="$PATH:$pro_path"
	fi
 
	com_path="$SEISAN_RES/COM"
	if [ $(echo $PATH | grep -c $com_path) == 0 ];
	then 
	   export PATH="$PATH:$com_path"
	fi
 
	#
	# aliases for SEISAN
	#
 
	alias pr='cd $SEISAN_RES/PRO'     
	alias li='cd $SEISAN_RES/LIB'      
	alias ic='cd $SEISAN_RES/INC'        
	alias re='cd $SEISAN_TOP/REA'
	alias da='cd $SEISAN_TOP/DAT'
	alias wo='cd $SEISAN_TOP/WOR'
	alias wa='cd $SEISAN_TOP/WAV'
	alias ca='cd $SEISAN_TOP/CAL'
	alias co='cd $SEISAN_TOP/COM'
	alias in='cd $SEISAN_RES/INF'
	alias is='cd $SEISAN_RES/ISO'
 
 
	#
	# following lines are for the PITSA analysis package
	#
	export PITSAHOME=$SEISAN_TOP/DAT
	export PITSA_CONFIG_PATH_ENV=$PITSAHOME/
	export PITSA_PRINTDEF_PATH_ENV=$PITSAHOME/
	export PITSA_PRINTDEF_NAME_ENV="8X11_landscape.PS"
 
	#
	# include seismo/LIB in LD_LIBRARY_PATH, needed by NANSEI
	#
 
	if [ $( echo "Z$LD_LIBRARY_PATH") == "Z" ]; 
	then
	  export LD_LIBRARY_PATH="$SEISAN_RES/LIB"
	else
	  export LD_LIBRARY_PATH="$SEISAN_RES/LIB:$LD_LIBRARY_PATH"
	fi
 
 
	#
	# set CLASSPATH for java app
	#
 
	if [ $( echo "Z$CLASSPATH") == "Z" ]; 
	then
	  export CLASSPATH="$SEISAN_TOP/PRO:$SEISAN_TOP/PRO/jseisan.jar"
	else
	  export CLASSPATH="$SEISAN_TOP/PRO:$SEISAN_TOP/PRO/jseisan.jar:$CLASSPATH"
	fi
 
	#
	# aliases for Java tools
	#
	alias jseisan='java -DSEISAN_TOP=$SEISAN_RES -classpath $SEISAN_TOP/PRO/jseisan.jar SEISAN'
	alias seisconf='java -DSEISAN_TOP=$SEISAN_RES -classpath $SEISAN_TOP/PRO/jseisan.jar SEISCONF'
	alias sformat='java -DSEISAN_TOP=$SEISAN_RES -classpath $SEISAN_TOP/PRO/sformat.jar Sformat' 
 
 
	#
	# set SEISAN extension code, this variable can be used to implement specific 
	# code into SEISAN, at the moment used are:
	#                BGS
	#
	export SEISAN_EXTENSION='none'
 
	#
	# set SAC library file to be linked to when compiling
	#
	export SACLIB='/usr/local/sac/lib/sacio.a'
soft/seisan.txt · Última modificação: 2009/05/13 16:50 (edição externa)