comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Plot curved line on a globe projection
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Plot curved line on a globe projection [message #85346] Sun, 28 July 2013 11:19 Go to previous message
Sir Loin Steak is currently offline  Sir Loin Steak
Messages: 42
Registered: January 2012
Member
Hi all,

I want to plot some straight line sections on a gridded globe plot (i.e. a line joining two points with different lat/lon coordinates), but want these lines to follow the curve of the globe.

I did a test (which I thought would work!) using the following code, but it just plots a straight line:

;Coordinates etc
latcentre = 30
loncentre = 0
angle = 0

;Plot globe
set_plot, 'ps'
!p.font=0
device, /encap, xsize=6, ysize=6, /inches
loadct, 0
map_set, latcentre, loncentre, angle, $
/orthographic, /isotropic, /grid, /horizon, /noborder
map_grid, latdel=5, londel=5, glinestyle=0, glinethick=0.5, color=cgcolor('black')
oplot, [10,30], [30,50], color=cgcolor('black')
device, /close

Can anyone offer any help? Is there anything simple I'm missing? I've searched online, but only seem to be able to find posts related to contouring on globe plots.

Many thanks,

Liam
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: UNsharing an IDLgrImage
Next Topic: Increasing the whitespace between plot axes and the label?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:09:58 PDT 2025

Total time taken to generate the page: 0.01666 seconds