LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-13-2010, 09:27 AM   #1
a13x06
Member
 
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

Code:
#!/bin/csh

#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 > plot.ps

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

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

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

#3D Model

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

#Adding scales

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

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


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

#Producing Final Plot

gv plot.ps
Any help appreciated!!

Alex
 
Old 03-13-2010, 11:03 AM   #2
a13x06
Member
 
Registered: Feb 2010
Location: UK
Distribution: ubuntu
Posts: 60

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

Code:
pstext: Plotted 0 text-strings
Alex
 
  


Reply


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 07:39 PM
Network mapping tools rozilla Linux - Software 2 08-20-2008 12:13 PM
LXer: Mind mapping tools add new dimensions to old technique LXer Syndicated Linux News 0 08-06-2007 07:31 PM
CUPS Generic text-only printing dolandtan Linux - Software 2 05-15-2007 05:20 AM
Text Tools - Banner Paean Linux - Newbie 5 12-13-2005 12:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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