Install GMT Linux

  1. Masuk ke root dengan perintah  (Ubuntu Linux)
    •  $ sudo su
    •  
  2. Masuk ke directory /usr/local/
    • $ cd /usr/local
    •  
  3. Simpan paket aplikasi GMT (BZip, NetCDF, GMT) dalam directory root /usr/local.
  4. Atur environment setting dalam bashrc
    • export GMTHOME=/usr/local/GMT4.5.2
      export PATH=${PATH}:${GMTHOME}/bin
      export MANPATH=${MANPATH}:${GMTHOME}/man
      export NETCDFHOME=/usr/local/netcdf-3.6.3
    •  
  5. Masuk dan compile bzip
    • $ tar -xvf  bzip2-1.0.5.tar.gz
    • $ cd bzip2
    • $ make
    • $ make install

  6. Masuk dan compile NetCDF
    • $ tar -xvf  netcdf-3.6.3.tar.bz2
    • $ cd netcdf
    • $ ./configure
    • $ ./configure--prefix=/usr/local
    • $ ./install-sh
    • $ make check
    • $ make install
    • $ make install-sh
    • $ export CC=/some/strange/place/cc
    • $ gcc

  7. Masuk dan compile GMT
    • $ tar -xvf GMT4.5.2_doc.tar.bz2
    • $ tar -xvf GMT4.5.2_share.tar.bz2
    • $ tar -xvf GMT4.5.2_src.tar.bz2
    • $ tar -xvf GMT4.5.2_suppl.tar.bz2
    • $ tar -xvf GMT4.5.2_triangle.tar.bz2
    • $ ./configure
    • $ make all
    • $ make install-gmt
    • $ make install-data
    • $ make install-man
    • $ make install-doc
    • $ make install-suppl
    • $ make install-all
    • $ make examples

  8. Masuk ke directory GMT dan compile GSHHS
    • $ tar -xvf GSHHS2.0.2_coast.tar.bz2
    • $ tar -xvf GSHHS2.0.2_full.tar.bz2
    • $ tar -xvf GSHHS2.0.2_high.tar.bz2
    •  
  9. Buka terminal di luar root. Cek keberhasilan instalasi paket GMT
    • $ which GMT
                       /usr/local/GMT4.5.2/bin/GMT
    • Tes GMT berhasil bila muncul keterangan command GMt misal psxy
    • $ psxy
                       psxy 4.5.2 - Plot lines, polygons, and symbols on maps

usage: psxy <infiles> -J<params> -R<west>/<east>/<south>/<north>[r] [-A[m|p]] [-B<params>] [-C<cpt>] [-D<dx>/<dy>]
    [-E[x|y|X|Y][n][cap][/[+|-]<pen>]] [-G<fill>] [-H[i][<nrec>]] [-I<intens>] [-K] [-L] [-N] [-O] [-P]
    [-S[<symbol>][<size>]] [-T] [-U[<just>/<dx>/<dy>/][c|<label>]] [-V] [-W[+|-][<pen>]] [-X[a|c|r]<x_shift>[u]] [-Y[a|c|r]<x_shift>[u]]
    [-c<ncopies>] [-:[i|o]] [-bi[s|S|d|D[<ncol>]|c[<var1>/...]]] [-f[i|o]<colinfo>] [-g[a]x|y|d|X|Y|D|[<col>]z[-|+]<gap>[unit]] [-m[<flag>]]

......................................

-g Use point separation to identify data gaps.
       Append x|X or y|Y to flag gaps in x or y coordinates, respectively, and d|D for distance gaps.
       Upper case means we first project the points.  Append <gap> and optionally a unit.
       For geographic data, choose from m(e)ter [Default], (k)ilometer, (m)iles), or (n)autical miles).
       For gaps based on mapped coordinates, choose from (i)nch, (c)entimeter, (m)eter, or (p)oints [cm].
       Note: For x|y with time data the unit is instead controlled by TIME_UNIT
       Repeat option to specify multiple criteria, and prepend + to indicate all critera must be met [any].
    -m Input/output file(s) contain multiple segments separated by a record
       whose first character is <flag> [>]
       Use -mi or -mo to give different settings for input and output [Same]
    (See gmtdefaults man page for hidden GMT default parameters)

SELAMAT MENCOBA & SEMOGA BERHASIL !!

Komentar

Postingan populer dari blog ini

Install SAC

Metode Magnet Sebagai Prekursor Gempabumi

Download data IRIS Wilber orfeus II