This page provides the information about the wind barb extension for GMT 5-6. The extension adds sub-commands "grdbarb" and "psbarb" to GMT, and enables to plot wind barbs on a map.
One can install the wind barb extension by using either the plugin or patch as explained below. If you have already installed GMT, installation with the plugin is recommended. The plugin is installed as "windbarb.so" that can be dynamically loaded by GMT main program "gmt". If you install the extension by using the patch, the sub-commands "grdbarb" and "psbarb" are stored in "supplements.so" along with other supplement packages included in the official GMT.
Download the plugin tar file gmt-*-windbarb-plugin.tar.xz from this page.
Extract the tar file.
tar Jxvpf gmt-6.4.0-windbarb-plugin.tar.xz
Configure, make and install.
cd gmt-windbarb/build
cmake -DCMAKE_INSTALL_PREFIX="your GMT directory" ..
make
make install
Check the installation.
gmt --show-modules
gmt grdbarb
gmt psbarb
Run test scripts.
cd ../test
./grdbarb_example.sh
./psbarb_example.sh
The scripts create some PostScript files by using "grdbarb" and "psbarb." Compare them with the PDF files posted below on this page.
Download gmt-*-src.tar.xz from the GMT official site or a mirror site.
Download the wind barb patch for GMT, gmt-*-windbarb.patch from this web page.
Extract the tar file and then apply the patch.
tar Jxvpf gmt-6.4.0-src.tar.xz
cd gmt-6.4.0
patch -p1 < ../gmt-6.4.0-windbarb.patch
Configure, make and install. For details, refer to the GMT installation documents.
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="your GMT directory" ..
make
make install
Check the installation.
gmt --show-modules
gmt grdbarb
gmt psbarb
Run test scripts.
cd ../src/windbarb
./grdbarb_example.sh
./psbarb_example.sh
The author would like to thank Mr KATO Masaya, Nagoya University for developing and maintaining the Wind Barb Extension for GMT 3-4 (http://www.rain.hyarc.nagoya-u.ac.jp/~kato/work/GMT/index-e.html). The extension for GMT 5-6 is based on his great work.