http://topex.ucsd.edu/gmtsar/tar/ORBITS.tar sudo -i cd /usr/local mkdir orbits cd orbits tar -xvf ~/Downloads/ORBITS.tar # (need full path to ORBITS.tar)2.下载需要的环境和软件
sudo apt install csh subversion autoconf libtiff5-dev libhdf5-dev wget sudo apt install liblapack-dev sudo apt install gfortran sudo apt install g++ sudo apt install libgmt-dev sudo apt install gmt-dcw gmt-gshhg sudo apt install gmt
下载gmt版本可能是6.0.0,如果自己想下载6.2和6.3版本gmt,根据下面这个官方教程即可安装,注意如果有conda需要把bashrc中conda注释掉再进行安装。
gmt6.2版本
3.下载gmtsar软件,放入usr/local文件夹sudo -i cd /usr/local git clone --branch 6.1 https://github.com/gmtsar/gmtsar GMTSAR
如果下载不了,可以先去github官网下载好安装包,移动到usr/local文件夹
注意:ubuntu16版本安装gmtsar只能装5.8版本的,gmt版本只能是5,所以建议大家装18版本和20版本ubuntu(for UBUNTU 14, 16 where only gmt5 is available, use V5.8 git clone --branch 5.8 https://github.com/gmtsar/gmtsar GMTSAR) 4.编译和安装gmtsar软件(要先进入管理员模式,不然autoconf出现问题)sudo -i cd GMTSAR autoconf autoupdate ./configure --with-orbits-dir=/usr/local/orbits make make install5.bashrc更新环境变量
cd ~
# edit your .bashrc file and add the following lines
export GMTSAR=/usr/local/GMTSAR
export PATH=$GMTSAR/bin:"$PATH"
或者,直接进入.bashrc文件加入环境变量
export GMTSAR=/usr/local/GMTSAR export GMTSAR_csh=/usr/local/GMTSAR/gmtsar/csh export PATH=$GMTSAR/bin:"$PATH":$GMTSAR_csh
然后更新一下环境变量
source ~/.bashrc6.测试GMTSAR安装是否成功
输入以下两个代码测试
p2p_S1_TOPS.csh make_slc_s1a
出现以下,即安装成功
7.官网地址gmtsar
安装地址
github_gmtsar



