You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If SACHOME is /usr/local/sac and the sacinit file is modified accordingly,
to set the path and other options for SAC, do the following:
For csh and tcsh, edit ~/.cshrc adding the lines
setenv SACHOME /usr/local/sac
source ${SACHOME}/bin/sacinit.csh
After saving and exiting the file, enter
source ~/.cshrc
For bash, edit ~/.bashrc adding the lines
export SACHOME=/usr/local/sac
. ${SACHOME}/bin/sacinit.sh
After saving and exiting the file, enter
. ~/.bashrc```
If you received a binary distribution of SAC, it expects to be installed at /usr/local/sac.
tar -zxf sac-101.6_linux_x86_64.tar.gz -C /usr/local
Environment setup
SAC comes with a set of scripts to add the correct directories to your path and setup the environment variables properly. They are located in the bin directory within sac distribution. Follow the instructions based on the shell you are running.
sh / bash
To your ~/.profile or ~/.bashrc add:
source /usr/local/sac/bin/sacinit.sh
csh / tcsh
To your ~/.cshrc or ~/.tcshrc add:
source /usr/local/sac/bin/sacinit.csh
本文手冊上使用以下設定環境參數(舉linux部份)
而在sac安裝檔申請完收到後解壓縮,資料夾裡面的 README
在 * Environment Setup 部份
提供下列建議
而比如說我sac安裝在
/opt/sac
,在Linux的bash環境我會修改
/opt/sac/bin/sacinit.sh
裡面一行export SACHOME=/usr/local/sac
成
export SACHOME=/opt/sac
之後在bash環境參數添加
而在官方的wiki上也是提供類似建議
https://seiscode.iris.washington.edu/projects/sac/wiki/Binary_Installation
If you received a binary distribution of SAC, it expects to be installed at /usr/local/sac.
tar -zxf sac-101.6_linux_x86_64.tar.gz -C /usr/local
Environment setup
SAC comes with a set of scripts to add the correct directories to your path and setup the environment variables properly. They are located in the bin directory within sac distribution. Follow the instructions based on the shell you are running.
個人覺得添加官方說明部份也好讓使用者有個尋找安裝根據
在
sacinit.sh
內文有參數詳細配置選項而在 sac 底下
README
文件還提到Matlab Interface 怎麼設定環境參數 (本手冊好像沒包含?)
使用者翻閱 README 也可以知道更多可以控制地方
除了安裝之外,sac目錄底下還有四份
README
其中在
sac/doc/examples
有很多有趣script 和 fortran 跟 c 程式
未來也可以介紹在手冊裡面
謝謝這麼詳細SAC手冊!
The text was updated successfully, but these errors were encountered: