破书万卷 行路万里分享 http://blog.sciencenet.cn/u/kiger 只要地球不毁灭,地球科学将是人类永恒的事业!

博文

GMT 及Win4GMT简介及其安装技巧

已有 11813 次阅读 2009-9-19 17:17 |个人分类:学研心得|系统分类:科研笔记| GMT, General, Mapping, Tools, Win4GMT

GMT-The Generic Mapping Tools,即通用制图工具,是一个开源的工具集,主要用于XYXYZ数据的处理和显示,包括栅格化、过滤和各种地图投影等操作。GMT最初是由哥伦比亚大学的两位毕业生Paul WesselWalter H. F. Smith1988年创建的,至今已经发展到版本4.5.0
经过这段时间的了解,感觉该软件主要有以下几个优点:(1)完全免费;(2)源代码是开放的,可以进行二次开发;(3)可以在多种系统下安装和使用,如 UNIX LinuxMkLinuxMac OS 9WindowsOS/2,但是每个系统下的安装要求是不一样的;(4)GMT好比一个工具箱,每个工具之间相对独立,操作起来更为灵活,这也是GMT研究小组的一个特别考虑;(5)有很多免费数据资源都可以被GMT调用,尤其是NOAA, USGS, NGDC, NEIC等;(6)制作出来的图形图像精美,感觉比ArcGisMapGis等软件成图的效果要好。正是由于以上诸多优点,该软件已经被较为广泛应用于医学,工程,物理,数学,地球科学,社会科学等领域。
由于该软件的最初是在UNIX系统上发展的,所以对于初学者来说早期的版本安装和使用方面还是有点麻烦的,我也是学习第一次安装该软件,经过摸索,终于在Windows XP系统下安装成功。习惯了Windows操作的人来说,突然要用DOS操作,确实需要一段时间的适应,故可以安装一个GUI(图形交互界面)软件Win4GMT。具体安装过程如下:

1. Install GMT3 (Eg: C:GMT).

As you will see GMT3 programs will be installed in C:GMTbin and rivers, border, shorelines, patterns etc in C:GMTsharecoast and gmtenv.bat in C:GMT

(Note: In GMT 4.5.0, gmtenv.bat can’t be need any more, and the installer has done the work and set the path.)

 2. Set Home: Modify gmtenv.bat with an ASCII editor in order to set your home dir.

SET NETCDF= C:GMT

SET GMTHOME= C:GMT

SET HOME=C: USERS USERS PROJECTS or C:GMTTEMP

SET PATH=%PATH%; %GMTHOME%BIN; %NETCDF%LIB

 3. Run cmd command to open this window in a DOS window.

In GMT4.5.0, .gmtdefaults is created by default in C: GMTbin, you should copy it to C:GMT. Then close the window.

 4. if necessary, install Ghostsview or other postscript viewer or editor.

 5. Put netcdf.dll in C:GMT.

 6. Unzip the Win4GMT and run setup.exe to install it.

To avoid problems, Please install Win4GMT in the GMT Home Directory (C:GMT).

 7. Reboot the computer.

 8. Configure folders in Preferences menu when starts the program or edit win4gmt.ini in C:WINDOWS or C:WINNT folder 

 Notes:

Setup will create a subdirectory (man) where will be installed the html version of the GMT manuals. If you have problems with OLEAUT32.DLL (in some cases, problems has been reported). Rename your oleaut32.dll (just in case) and copy the ftp file in your system directory (C: WINDOWSSystem). Then restart the computer.

其它:

GMT下载地址:http://gmt.soest.hawaii.edu/

Win4GMT下载地址:http://www.icm.csic.es/gma



https://wap.sciencenet.cn/blog-48730-256588.html

上一篇:世界十大地质奇迹
下一篇:地球科学常见SCI及其IF(典藏版)
收藏 IP: .*| 热度|

0

发表评论 评论 (3 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-3-29 12:48

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部