天天看点

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处理软件安装