10.07.2015 Views

GMT 1 - mapping and plotting

GMT 1 - mapping and plotting

GMT 1 - mapping and plotting

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Sunday, November 28, 2010Try it again with a scriptcreate with text editor“chmod +x” to make it executable#!/bin/csh# plot a Cassini projected map of Alaska with a user-defined scaleset workingdir = `pwd`gmtset `cat $workingdir/gmt.plot.parameters`set scale = $1set w_lon = 180set e_lon = 225set s_lat = 50set n_lat = 72set map_box = -R$w_lon/$e_lon/$s_lat/$n_latset filename = alaska.psset pro_lon = `echo $w_lon $e_lon | awk '{printf"%.2f",($1+$2)/2.0}'`set pro_lat = `echo $n_lat $s_lat | awk '{printf"%.2f",($1+$2)/2.0}'`set map_pro = -Jc$pro_lon/$pro_lat/$scale

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!