天天看點

net framework 3.5.安裝工具包_ISCE InSAR處理軟體安裝

net framework 3.5.安裝工具包_ISCE InSAR處理軟體安裝
1.安裝環境

系統:Ubuntu 18.04.03

依賴軟體:

gcc >= 4.8+ (with C++11 support)
fftw >= 3.2.2 (with single precision support)
Python >= 3.5 (3.6 preferred)
scons >= 2.0.1
curl - for automatic DEM downloads
GDAL and its Python bindings >= 2.2
           

注意:GDAL版本必須大于2.2

2.ISCE安裝

A.從github上下載下傳ISCE源代碼

https://github.com/isce-framework/isce2​github.com

在isce安裝包下建立文本檔案,命名為SConfigISCEisce-framework/isce2在isce安裝包下建立文本檔案,命名為SConfigISCE

PRJ_SCONS_BUILD=/home/un/isce2/build
PRJ_SCONS_INSTALL=/home/un/isce2/install/isce
LIBPATH=/usr/lib/x86_64-linux-gnu /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial
CPPPATH=/usr/include/x86_64-linux-gnu /usr/include /usr/include/python3.6m /usr/include/hdf5/serial /usr/include/gdal
FORTRANPATH=/usr/include /usr/lib/gcc/x86_64-linux-gnu/7/finclude
FORTRAN=/usr/bin/gfortran
CC=/usr/bin/gcc
CXX=/usr/bin/g++
MOTIFLIBPATH = /usr/lib/x86_64-linux-gnu
X11LIBPATH = /usr/lib/x86_64-linux-gnu
MOTIFINCPATH = /usr/include/Xm
X11INCPATH = /usr/include/X11
ENABLE_CUDA=False
           

B.依賴軟體安裝

打開終端,輸入

sudo apt install -y gfortran libmotif-dev libhdf5-dev libfftw3-dev libgdal-dev scons python3 cython3 python3-scipy python3-matplotlib python3-h5py python3-gdal python3-pip gdal-bin
           

C.編譯

設定scons環境變量

export PYTHONPATH=/home/un/isce2/configuration
export SCONS_CONFIG_DIR=/home/un/isce2/
           

終端下輸入

scons
           
net framework 3.5.安裝工具包_ISCE InSAR處理軟體安裝

編譯成功!

D.環境設定

在.bashrc檔案最後加入

export ISCE_ROOT=/home/un/isce2/install
export ISCE_HOME=$ISCE_ROOT/isce
export PATH=$ISCE_HOME/bin:$ISCE_HOME/applications:$PATH
export PYTHONPATH=$ISCE_ROOT:$ISCE_HOME/applications:$ISCE_HOME/component
           
net framework 3.5.安裝工具包_ISCE InSAR處理軟體安裝

終端下輸入

source ~/.bashrc 
           

驗證安裝是否成功

終端下輸入topsApp.py --steps --help
           
net framework 3.5.安裝工具包_ISCE InSAR處理軟體安裝

另:如果在Ubuntu 16.04下進行編譯,會出現以下問題

https://trac.osgeo.org/gdal/wiki/DownloadSource​trac.osgeo.org

net framework 3.5.安裝工具包_ISCE InSAR處理軟體安裝

這個問題是由于GDAL版本過低引起,應下載下傳GDAL2.2以上源碼,自行編譯可以解決問題

可參考

鴨毛:Ubuntu下GDAL編譯與安裝​zhuanlan.zhihu.com

net framework 3.5.安裝工具包_ISCE InSAR處理軟體安裝