Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-13-2010, 10:27 AM   #1
Registered: Feb 2010
Location: UK
Distribution: ubuntu
Posts: 60

Rep: Reputation: 15
Generic Mapping Tools (GMT) text help

Bellow is a script I'm running to produce several diagrams but I just can't get the pstext command to produce any text


#Script "plotdata" for the assessment
#Setting GMT environmental variables
gmtset MEASURE_UNIT cm
gmtset PAPER_MEDIA a4+
gmtset PAGE_ORIENTATION portrait

# setting script environmental variables
set range = 341/345/27/31
set scale = 4i
set int = 1m
set search = 5k

#producing grid files

nearneighbor bathy_a_gmt.txt -R$range -I$int -S$search -Gbathy.grd -V

nearneighbor gravity_a_gmt.txt -R$range -I$int -S$search -Ggravity.grd -V

#making colour palettes

makecpt -Crainbow -T-80/316/20 > gravity.cpt

makecpt -Crainbow -T-2529/4745/500 > bathy.cpt

#2D model

grdimage gravity.grd -R$range -JM$scale -Cgravity.cpt -Y3 -X5 -K -V >

pscoast -R$range -JM$scale -G200 -W -O -K -V >>

grdcontour bathy.grd -R$range -JM$scale -L-2530/4746 -C500 -A1500 -O -K -V >>

psbasemap -R$range -JM$scale -Ba2f2g2 -K -O -V >>

#3D Model

grdview bathy.grd -Y13.5 -X-4 -JM5i -JZ2i -Qs -E135/10 -B2 -W -Cbathy.cpt -O -K >>

#Adding scales

psscale -D3.5i/0i/7.2i/0.125ih -Cbathy.cpt -B/:"Bathymetry(m)": -O -K -V >>

psscale -Y-15 -D3.5i/0i/7i/0.125ih -Cgravity.cpt -B/:"Gravity": -O -K -V >>

#Adding Text
pstext -R$range -JM$scale -G1/0/0 -X5 -Y10 -V -O << END >>!
1 1 20 1 4 BL GMT

#Producing Final Plot

Any help appreciated!!

Old 03-13-2010, 12:03 PM   #2
Registered: Feb 2010
Location: UK
Distribution: ubuntu
Posts: 60

Original Poster
Rep: Reputation: 15
This is the error I get

pstext: Plotted 0 text-strings


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any Interest in a SlackBuild for The Generic Mapping Tools tronayne Slackware 5 01-19-2010 08:39 PM
Network mapping tools rozilla Linux - Software 2 08-20-2008 01:13 PM
LXer: Mind mapping tools add new dimensions to old technique LXer Syndicated Linux News 0 08-06-2007 08:31 PM
CUPS Generic text-only printing dolandtan Linux - Software 2 05-15-2007 06:20 AM
Text Tools - Banner Paean Linux - Newbie 5 12-13-2005 01:51 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration