建設(shè)項目環(huán)境登記表遼寧省網(wǎng)站軟文營銷的作用
Ubuntu中安裝StaMPS
- 0 StaMPS簡介
- 1 首先安裝好MATLAB,安裝一些依賴工具包
- 2 安裝StaMPS
- 2.1 下載StaMPS安裝包
- 2.2 安裝
- 2.3 配置環(huán)境
- 2.4 matlab中的路徑設(shè)置
0 StaMPS簡介
官網(wǎng):https://homepages.see.leeds.ac.uk/~earahoo/stamps/
A software package to extract ground displacements from time series of synthetic aperture radar (SAR) acquisitions.
The original version was developed at Stanford University but subsequent development has taken place at the University of Iceland, Delft University of Technology and the University of Leeds.
The package incorporates persistent scatterer and small baseline methods plus an option to combine both approaches.
- Andy Hooperhttp://www.see.leeds.ac.uk/people/a.hooper
School of Earth and Environment
University of Leeds
Leeds LS2 9JT
1 首先安裝好MATLAB,安裝一些依賴工具包
安裝MATLAB請參閱Ubuntu中安裝matlab2020a
https://blog.csdn.net/qq_41159191/article/details/129294717?spm=1001.2014.3001.5501
- 安裝一些matlab插件和StaMPS會用到的工具
>>> sudo apt-get update # 先更新一波
gawk >>>>>>>>>>>>> sudo apt-get install gawk
tcsh >>>>>>>>>>>>>sudo apt-get install tcsh
matlab-support>>> sudo apt-get install
Make>>> sudo apt-get make
build essential >> sudo apt-get install build-essential
tringle>> sudo apt-get install triangle-bin
snaphu>> I personally recommend the latest version 2.0.5
2 安裝StaMPS
2.1 下載StaMPS安裝包
-
STAMPS官網(wǎng)
https://homepages.see.leeds.ac.uk/~earahoo/stamps/
-
GitHUB項目地址
https://github.com/dbekaert/StaMPS/releases/tag/v4.1-beta
2.2 安裝
解壓,打開到src文件夾
- 打開terminal
sudo make
sudo make install
2.3 配置環(huán)境
返回到StaMPS主文件夾并編輯StaMPS_CONFIG.bash文件
sudo gedit StaMPS_CONFIG.bash
- 編輯這個文件,修改里面插件的路徑
** 有哪些插件就寫哪些插件**
export STAMPS="/home/nama/Desktop/RSdata/app/StaMPS-4.1-beta"
#export SAR="/home/ahooper/software/ROI_PAC_3_0"
#export GETORB_BIN="/home/ahooper/software/getorb/bin"
#export SAR_ODR_DIR="/home/ahooper/software/SAR_FILES/ODR"
#export SAR_PRC_DIR "/home/ahooper/software/SAR_FILES/PRC"
#export VOR_DIR="/home/ahooper/software/SAR_FILES/VOR"
#export INS_DIR="/home/ahooper/software/SAR_FILES/INS"
#export DORIS_BIN="/home/ahooper/software/doris_v4.02/bin"
export TRIANGLE_BIN="/usr/bin/triangle"
export SNAPHU_BIN="/usr/local/bin/snaphu"
export TRAIN="/home/nama/Desktop/RSdata/app/TRAIN-master"#export ROI_PAC="$SAR/ROI_PAC"
#####################################
# ROI_PAC VERSION 3
#####################################
#export INT_BIN="$ROI_PAC/INT_BIN"
#export INT_SCR="$ROI_PAC/INT_SCR"
##########################################################################
# ROI_PAC VERSION 2.3 and before
#####################################
#set MACH=`uname -s`
#if ($MACH == "HP-UX") then
# export ARCHC=HP
#else if ($MACH == "IRIX") then
# export ARCHC=SGI
#else if ($MACH == "SunOS") then
# export ARCHC=SUN
#else if ($MACH == "Linux") then
# export ARCHC=LIN
#else if ($MACH == "Darwin") then
# export ARCHC=MAC
#fi
#export INT_LIB="$ROI_PAC/LIB/$ARCHC"
#export INT_BIN="$ROI_PAC/BIN/$ARCHC"
#export FFTW_LIB="$SAR/FFTW/$ARCHC""_fftw_lib"
##########################################################################
# shouldn't need to change below here
######################################export MY_BIN="$INT_BIN"
export MATLABPATH=$STAMPS/matlab:`echo $MATLABPATH`
#export DORIS_SCR="$STAMPS/DORIS_SCR"# Needed for ROI_PAC (a bit different to standard)### use points not commas for decimals, and give dates in US english
export LC_NUMERIC="en_US.UTF-8"
export LC_TIME="en_US.UTF-8"#export MY_SAR="$SAR"
#export OUR_SCR="$MY_SAR/OUR_SCR"
#export MY_SCR="$STAMPS/ROI_PAC_SCR"export SAR_TAPE="/dev/rmt/0mn"#export PATH=${PATH}:$STAMPS/bin:$MY_SCR:$INT_BIN:$INT_SCR:$OUR_SCR:$DORIS_SCR:$GETORB_BIN:$DORIS_BIN:$TRIANGLE_BIN:$SNAPHU_BIN** 這個要和最前面的對應(yīng)上**
export PATH=${PATH}:$STAMPS/bin:$TRIANGLE_BIN:$SNAPHU_BIN:$TRAINexport PATH=${PATH}:$STAMPS/bin:$MATLABPATH
編輯好了之后,就source和echo
在StaMPS-4.1-beta文件夾中打開terminal
source StaMPS_CONFIG.bash
# 查看環(huán)境變量
echo $PATH
如下圖則沒問題,其中:
為間隔符
- StaMPS_CONFIG.bash 在StaMPS軟件中,每一次啟動的有效期保持到terminal關(guān)閉前,因此,最好是在系統(tǒng)文件夾的根目錄設(shè)置一個環(huán)境變量。
- 在桌面打開terminal
touch .bash_profile
- 把StaMPS_CONFIG.bash中的內(nèi)容復(fù)制過去,保存,然后
source .bash_profile
# 查看環(huán)境變量
echo $PATH
2.4 matlab中的路徑設(shè)置
- 在matlab中加載紅框所示路徑
- 在command Windows中輸入
stamps --verison
,出現(xiàn)此圖表示安裝成功。
感謝閱讀!