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

Home » Public Forums » archive » Re: Overplot nice looking globe on 2d satellite images
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Overplot nice looking globe on 2d satellite images [message #52305 is a reply to message #52304] Sun, 28 January 2007 13:42 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Brian Larsen writes:

> Well adding more to my own posts, interestingly the map is not in the
> right spot. Any insight here?
>
> Looking at the plot generated (sorry for the terrible colors) it is
> pretty clear that the earth is not centered at 0,0 is there some trick
> I don't know here?
>
> loadct, 11
> contour, dist(10), findgen(10)-5, findgen(10)-5, /fill, nlevels=30, /
> iso
> pos = convert_coord([-1,1], [-1,1], /data, /to_normal)
> loadct, 12
> MAP_SET,90,0,0,/ORTHOGRAPHIC,/ISOTROPIC, /CONTINENTS,/HORIZON, $
> E_continents={FILL:1, color:23}, $
> position=[pos[0,0], pos[0,1], pos[1,0], pos[1,1]], $
> /noerase, /noborder, $
> E_HORIZON={FILL:1, COLOR:100}

You set up your position wrong. It should be set like this:

position=[pos[0,0], pos[1,0], pos[0,1], pos[1,1]], $

Then, it is right where it is suppose to be. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: plotting Ascii in bitmap
Next Topic: Annoying message about X11 Resources on Solaris.

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

Current Time: Fri Oct 10 01:34:55 PDT 2025

Total time taken to generate the page: 0.72392 seconds