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

Home » Public Forums » archive » Re: I'm doing something wrong with map_image
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: I'm doing something wrong with map_image [message #76375 is a reply to message #76374] Tue, 31 May 2011 15:05 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
almost_like_a_metaphor writes:

> I have a map image in cylindrical projection (so basically the sides
> of my map are lat-90 to 90 and lon -180 to 180), so I'm using map_set
> with /cylindrical. The image, is around 3000x1500 pixels
>
> I want to plot data on a small 3x3 degree slice of this map, say
> centered on lat=10, lon=10. I can set my map_set properly, but my
> map_image does not seem to be doing what I want it to. I want to get
> that 3x3 slice of the image displayed, place my map_grid over it, then
> plot my points, and I can't.
>
> It's got to be a gloriously simple thing that I'm missing.

Here is an example. Suppose this image is map projected
(I'm not sure it is):

cgloadct, 0
image = congrid(shift(cgDemoData(7), 180, 0), 3000, 1500)
cgimage, image, /keep, position=p
map_set, /noerase, position=p
map_grid
map_continents
plots, [20, 20, 0, 0, 20], [20, 0, 0, 20, 20], color=cgcolor('blue')
plots, 10, 10, psym=4, color=cgcolor('yellow')

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to make hidden Graphics?
Next Topic: I'm doing something wrong with map_image

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

Current Time: Mon Jul 13 14:17:07 PDT 2026

Total time taken to generate the page: 0.02940 seconds