GMTSAR INSTALLATION TUTORIAL
on ubuntu 12.04 For processing ALOS‐PALSAR data
Luhur Bayuaji
20120821 (ver. 1) Suggestion, question or other inquiries related to this GMTSAR installation tutorial Please send it to
[email protected]
1
Terminal •
•
•
Mostly the installation process is performed on the terminal. To open the terminal, press windows sign button and type terminal then click on terminal icon. Command can be typed in the terminal and press enter to execute it. This is terminal
2
1
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
OS bit version The knowledge about your Operating System (OS) bit version is needed for compiling process. The process to find out this information is very simple. Type this command below in terminal
uname –m •
•
(then hit enter)
If the If the response is i686 or i386, you have a 32‐bit version of Linux. If the If the response is x86_64, you have a 64‐bit version of Linux.
3
Guidance •
Install C‐shell
•
Install gfortan
•
Install Google earth
•
Install GMT (Generic Mapping Tools)
•
Install GMTSAR
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Guidance •
Install C‐shell
•
Install gfortan
•
Install Google earth
•
Install GMT (Generic Mapping Tools)
•
Install GMTSAR
5
Install C‐shell Purpose : Ubuntu works on bash‐shell by default. GMTSAR script developed on C‐shell scripting language. C‐shell should be installed into Ubuntu to make it run. Type the command below on the terminal then press enter to install C‐shell
sudo apt‐get install tcsh For testing, type tcsh in the terminal, then the command prompt should change into C‐shell command prompt. In order to go back into bash‐shell then type exit in the C‐shell command prompt
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Guidance •
Install C‐shell
•
Install gfortan
•
Install Google earth
•
Install GMT (Generic Mapping Tools)
•
Install GMTSAR
7
Install gfortran Purpose : Gfortran Gfortran is i s a compiler for FORTRAN language. GMT software needs it to compile the source code. Type the command below on the terminal then press enter sudo apt‐get install gfortran gfortran‐multilib
For testing, type gfortran in the terminal, then error no input file message will come out
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Guidance •
Install C‐shell
•
Install gfortan
•
Install Google earth
•
Install GMT (Generic Mapping Tools)
•
Install GMTSAR
9
Install Google Earth Purpose : Google Earth will be used to display the GMTSAR result in KML format. It is optional, but it is recommended. • •
Installation need several steps as follow Download installation file by using command below
wget http://dl.google.com/dl/eart http://dl.google.com/dl/earth/client/ h/client/current/goo current/google gle ‐earth‐stable_current_i386.deb •
Install the google earth by typing command below. If If error error message appear during the process, process, just just ignore it and run the next command.
sudo dpkg ‐i google‐earth‐stable_current_i386.deb Install all dependency programs sudo apt‐get install ‐f For testing, type google‐earth in the terminal, then google earth program will run.
•
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Guidance •
Install C‐shell
•
Install gfortan
•
Install Google earth
•
Install GMT (Generic Mapping Tools)
•
Install GMTSAR
11
Install GMT Purpose : Generic Mapping Tools is the important software that required by GMTSAR. The installation need several steps including download and setting the path. We will create new directory (folder) called APPS. From now on, APPS will become installation directory for GMT, GMTSAR and other needed software . •
Create new APPS folder, using this command below
mkdir APPS •
Enter APSS folder, using this command below (do not forget to do it)
cd APPS
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Install GMT 2 •
Open the GMT site in the web address below
http://gmt.soest.hawaii.edu/ •
Click the download link in the left frame of the of the website
13
Install GMT 3 •
Click on INSTALL FORM link
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Install GMT 4 •
Scroll down. In part B. Support Library Setup, select Please get and install
the latest netCDF 3.6.x
•
Scroll down. In part 11. Complete the operation, give a check on Delete all archives upon successful installation, then click on GET PARAMETES button
15
Install GMT 5 •
Save the parameters file into APPS folder by right click on the parameters frame. For Mozilla Firefox user, below is the menu to save parameters file. The GMT4param.txt file will be created in APPS folder.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Install GMT 6 •
Run the script from terminal, using the command below
sh install_gmt.sh GMT4param.txt •
After the GMT installation complete the result will be look like this. Save this information carefully or copy paste into text editor. We will need it during GMTSAR installation later on.
17
Install GMT 7 •
Pay attention to the following result, then we will do some set up
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Install GMT 8 •
Pay attention to the following result, then we will do some set up
Add the path setting to file .tcshrc (C shell setup file)
cd ~ pico .tcshr .tcshrcc
The underlined word could be different in your case. Please input the correct one, based on previous result (Install GMT 6 step)
•
add these commands in the last line inside .tcshrc
•
setenv NETCDFHOME /home/gmt/APPS/netcdf ‐3.6.3 set path=(/home/gmt/APPS/GMT4.5.8/bin $path) press CTRL+X then type Y (to save the changes) 19
Install GMT 9 •
Enter to C‐shell by typing command tcsh in the terminal, then test the path by running the grdinfo program from GMT. If it If it succeed, then the following output should come out.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Guidance •
Install C‐shell
•
Install gfortan
•
Install Google earth
•
Install GMT (Generic Mapping Tools)
•
Install GMTSAR
21
Install GMTSAR Purpose : Previously we install all the program that needed for GMTSAR to run properly. From now on, GMTSAR installation tutorial will be presented. GMTSAR will be installed inside APPS folder. Make sure these two
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Install GMTSAR 2 •
Download GMTSAR source code using this command
wget http://topex.ucsd.edu/gmtsar/tar/GMTSAR. http://topex.ucsd.edu/gmtsar/tar/GMTSAR.tar tar it will download GMTSAR.tar file inside APPS folder. •
Create GMTSAR folder inside APPS folder
mkdir GMTSAR •
Extract GMTSAR.tar (source code) into GMTSAR folder
tar xvf GMTSAR.tar ‐C GMTSAR It will extract the GMTSAR.tar into GMTSAR folder inside APPS folder.
23
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Install GMTSAR 4 •
Please pay attention to the parameters below. You should modify to your needs.
For number 2) set the compiler switch to match the way GMT was compiled. •
If your If your Operating System (OS) is 64 bit, just bit, just leave it
•
If your If your OS is 32 bit, switch the comment mark
#setenv M64 “‐m64 ‐O3” setenv M64 “‐m32 ‐O3” 25
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Install GMTSAR 6
For number 5) Set the ccfft1d routine for your computer Uncomment the A. no special fft code is available part cd $GMTSAR/lib_src rm cfft1d.c ln ‐s cfft1d_codes/cfft1d_fftpack.c cfft1d_codes/cfft1d_fftpack.ccfft1d.c cfft1d.c cd ../.. 27
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Install GMTSAR 8 •
Save the modification
press CTRL+X then type Y (to save the changes) •
Source gmtsar_config gmtsar_config (to apply all the setting in gmtsar_config)
source gmtsar_config •
Compile the GMTSAR source code
make •
Test the result by doing command (result should be as in the image)
align.csh esarp
29