1. Install extra libraries.
sudo apt-get -y install csh subversion autoconf libtiff5-dev libhdf5-dev wget
sudo apt-get -y install liblapack-dev
sudo apt-get -y install gfortran
sudo apt-get -y install g++
sudo apt-get -y install libgmt-dev
sudo apt-get -y install gmt-dcw gmt-gshhg
sudo apt-get -y install gmt
2. Install orbit files.
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)
3. Download GMTSAR from github.
sudo -i
cd /usr/local
git clone --branch 6.5 https://github.com/gmtsar/gmtsar GMTSAR
#After completing download make youself the owner of this directory
cd /usr/local
sudo chown -R $USER GMTSAR
4.Make and install GMTSAR.
cd GMTSAR
autoconf
autoupdate
./configure --with-orbits-dir=/usr/local/orbits
make
make install
5.Add the executables to your path for bash.
gedit ~/.bashrc
#At the end of bashrc file, add the following lines.
export GMTSAR=/usr/local/GMTSAR
export PATH=$GMTSAR/bin:"$PATH"
6. Test your installation. Open a new terminal window and run the following commands. Expected outputs are:
esarp
#esarp [GMTSAR] - Produce SAR processed image
#Usage: esarp filein.PRM fileout.SLC [R4]
Reference: