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 #76374 is a reply to message #76373] Tue, 31 May 2011 18:05 Go to previous messageGo to previous message
almost_like_a_metapho is currently offline  almost_like_a_metapho
Messages: 8
Registered: May 2011
Junior Member
On May 31, 6:05 pm, David Fanning <n...@idlcoyote.com> wrote:

> 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
>

OK, from your example, what I want to display is a window that zooms
in on just that blue box - where the coordinates of the box bound the
window. Since I'm using simple cylindrical projection, I thought I
could get away with just putting the image as a background to a plot
window, as long as the axes and image corners aligned. I think my
issue is that I was insisting on thinking of it as a data plot with an
image background, and I really need to think of it as a displayed map
image with shapes overplotted.

So, if my base image is a global map, and all I want to do is take one
3x3 degree piece of it, display that, and plot my grid lines and data-
overlay on it, do I have to create a small, subsampled "image" from
your example above? Or can I simply display a smaller part of the
image? in cgimage, image[lonrange,latrange]? Though in that case I
think I'll have to convert my lat/lon ranges to image coordinates.
[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:16:56 PDT 2026

Total time taken to generate the page: 0.88027 seconds