doris安装_安装DORIS5.03

使用操作系统为Ubuntu 16.04

下载5.03版本

TUDelftGeodesy/Doris​github.com
ca9585b3bef325a31487fe96a0b72ee1.png

下载4.06版本

Doris InSAR Processor​doris.tudelft.nl

一、安装fftw库

1. download fftw-3.2.1 from FFTW Home Page

: wget -c http://www.fftw.org/fftw-3.2.1.tar.gz

2. gunzip and tar xvf it in subdirectory of doris root installation.

3. cd fftw-3.2.1

4. ./configure --prefix=`pwd` --enable-float

5. make

6. make install

二、安装核心代码

7. cd ../doris_core

8. Read the README file

9. ./configure (creates "Makefile") # requires tcsh shell to run, to install type "sudo apt-get install

tcsh" at shell prompt on Ubuntu platform.

( +answer the questions about libraries, etc.)

===> What is your C++ compiler? [g++]

输入g++

===> Do you have the FFTW library (y/n)? [n]

y

===> What is the path to the FFTW library (libfftw3f.a or libfftw3f.so)? []

/usr/local/Doris-5.0.3Beta/fftw-3.3.8/lib

What is the path to the FFTW include file (fftw3.h)? [/usr/include]

/usr/local/Doris-5.0.3Beta/fftw-3.3.8/include

===> Do you have the VECLIB library (y/n)? [n]

n

===> Do you have the LAPACK library (y/n)? [n]

n

===> Are you working on a Little Endian (X86 PC, Intel) machine (y/n)? [y]

y

===> Installation of Doris in directory: /usr/local/bin (y/n)? [y]

y

Creating Makefile for:

compiler: g++

fftw: y

FFTW LIB DIR: /usr/local/Doris-5.0.3Beta/fftw-3.3.7/lib

FFTW INCLUDE DIR: /usr/local/Doris-5.0.3Beta/fftw-3.3.7/include

veclib: n

lapack: n

Little endian: y

DEBUG version: n

Install in dir: /usr/local/bin

file: Makefile will be OVERWRITTEN.

===> Press enter to continue (CTRL-C to exit).

10. make (compiles the software)

11. make install (installs doris and bin scripts)

PS:在第二步安装之前将4.06版本bin目录下的construct_dem.sh文件拷入5.03版本下的bin目录下

三、安装SARtools和envisat_tools

12. cd ../sartools

13. make

14. Review/edit the Makefile if this does not work

(for example if you do not want to use GNU gcc/g++ as compiler)

15. make install (installs in /usr/local/bin unless you edit the Makefile)

PS:修改makefile中的INSTALL_DIR 路径

16. cd ../envisat_tools # on 64-bit system requires libc-dev-i386 library ex: "sudo apt-get install libc-dev-i386"

17. make

18. Review/edit the Makefile if this does not work

(for example if you do not want to use gcc as compiler)

19. make install

PS安装之前修改makefile文件


#########################################
### Makefile to compile envisat tools ###
### based on BEST toolbox of ESA ###
### see source code for info ###
### i did a quick hack, but am not ###
### familar with c (but did not want ###
### to mix it with c++ for such a ###
### simple program). ###
### Bert Kampes, 15-JUN-2003 ###
### ###
### Support for ERS in Envisat Format ###
### Mahmut Arikan, 19-Oct-2010 ###
### ###
#########################################
### Check if you agree with the options below (install_dir OK?)
### then simply type: "make install"
SHELL = /bin/sh
CC = gcc
#CFLAGS = -O3
#CFLAGS = -m32 # for 64-bit systems, it requires compatibility lib32, no need for epr_api v2.2
LFLAGS = -lm
INSTALL_DIR = /usr/local/bin
PS: 使用Batuhan Osmanoglu修改后的makefile: http://www.osmanoglu.org/supplement/error-installing-envisattools-for-doris-on-ubuntu-1204/Makefile, 替代ENVISAT_TOOLS文件夹下掉Makefile文件, 再运行make
#############################################################
### THERE SHOULD BE NOTHING YOU HAVE TO CHANGE BELOW HERE ###
#############################################################
LIB_SRC = epr_api-2.2/src/epr_api.c
epr_api-2.2/src/epr_band.c
epr_api-2.2/src/epr_bitmask.c
epr_api-2.2/src/epr_core.c
epr_api-2.2/src/epr_dataset.c
epr_api-2.2/src/epr_dddb.c
epr_api-2.2/src/epr_dsd.c
epr_api-2.2/src/epr_dump.c
epr_api-2.2/src/epr_field.c
epr_api-2.2/src/epr_msph.c
epr_api-2.2/src/epr_param.c
epr_api-2.2/src/epr_product.c
epr_api-2.2/src/epr_ptrarray.c
epr_api-2.2/src/epr_record.c
epr_api-2.2/src/epr_string.c
epr_api-2.2/src/epr_swap.c
epr_api-2.2/src/epr_typconv.c
### targets ###
default: envisat_dump_header envisat_dump_data envisat_dump_HH envisat_dump_VV
### compile envisat_dump_header program (dumps envisat header info to stdout) ###
envisat_dump_header: BEST
$(CC) epr_api-2.2/src/*.o envisat_dump_header.c $(CFLAGS) $(LFLAGS)
-o envisat_dump_header
### compile envisat_dump_data program (dumps envisat slc short int data to file) ###
envisat_dump_data: BEST
$(CC) epr_api-2.2/src/*.o envisat_dump_data.c $(CFLAGS) $(LFLAGS)
-o envisat_dump_data
### compile envisat_dump_data program (dumps envisat slc short int data to file) ###
envisat_dump_HH: BEST
$(CC) epr_api-2.2/src/*.o envisat_dump_HH.c $(CFLAGS) $(LFLAGS)
-o envisat_dump_HH
### compile envisat_dump_data program (dumps envisat slc short int data to file) ###
envisat_dump_VV: BEST
$(CC) epr_api-2.2/src/*.o envisat_dump_VV.c $(CFLAGS) $(LFLAGS)
-o envisat_dump_VV
### create object code BEST library functions ###
BEST: $(LIB_SRC)
(cd epr_api-2.2/src/; make)
### installer ###
PROGS = envisat_dump_header envisat_dump_data envisat_dump_HH envisat_dump_VV
SCRIPTS = envisat_dump_header2doris.csh
install: $(PROGS) $(SCRIPTS)
@echo "installing envisat tools..."
cp -f $(PROGS) $(SCRIPTS) $(INSTALL_DIR)/.
#if test -d /cygdrive/c/cygwin; then
# echo "* cygwin detected";
# cp -f envisat_dump_header $(INSTALL_DIR)/.;
# cp -f envisat_dump_data $(INSTALL_DIR)/.;
# cp -f envisat_dump_header.exe $(INSTALL_DIR)/.;
# cp -f envisat_dump_data.exe $(INSTALL_DIR)/.;
#fi;
make cleaner;
@echo " "
@echo "------------------------------------"
@echo "FINISHED INSTALLING ENVISAT TOOLS..."
@echo " executables in: $(INSTALL_DIR)"
@echo "------------------------------------"
### cleaners ###
uninstall: cleaner
@echo "un-installing envisat tools in $(INSTALL_DIR)..."
(cd $(INSTALL_DIR); rm -f $(PROGS) $(SCRIPTS))
@echo "now you can rm this directory yourself"
@echo "for a full uninstall"
@echo " "
clean:
@echo "cleaning envisat tools..."
(cd epr_api-2.2/src/; make clean)
rm -f *.o
cleaner: clean
rm -f $(PROGS)
### EOF.

安装完成后还是显示4.0版本

5787fea9027ae6766694e5e569b7d9ed.png

四、安装getorb

ERS and Envisat Precise Orbit Determination​www.deos.tudelft.nl

sudo rm/var/cache/apt/archives/lock

ERS and Envisat Precise Orbit Determination​www.deos.tudelft.nl

/var/cache/apt/archives/lock

sudo rm /var/lib/apt/lists/lock

sudo apt install gfortran

进入getorb文件夹

make

make install

五、安装sanphu

http://www-star.stanford.edu/sar_group/snaphu/​www-star.stanford.edu

cd ..

cd snaphu-v1.4.2/src

在/usr/local文件夹下建个man文件夹,在man文件夹下建个man1文件夹

make

make install

六、修改环境变量

export PAGER=less

export EDITOR=vi

七、设置init_cfg文件

cd ../install

python init_cfg.py

一般安装路径如下:

Enter the path to doris: /usr/local/bin/doris

Enter the path to cpxfiddle: /usr/local/bin/cpxfiddle

Enter the path to snaphu: /usr/local/bin/snaphu

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值