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

Home » Public Forums » archive » expanded area is shown when trying to plot an image on a map
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
expanded area is shown when trying to plot an image on a map [message #78131] Wed, 26 October 2011 15:27
Zhang Bo is currently offline  Zhang Bo
Messages: 22
Registered: October 2011
Junior Member
I have a north hemisphere 2D consentration array. 360*90
I set up a map
map_set, /mercator, 0, -50, limit = [ymin, xmin, ymax, xmax], $
color = cgcolor('black'), $
position = [xregion(0), yreg_bot(0), xregion(1), yreg_bot(1)], $
charsize = 1, /noerase

I warp the image
new_img = map_image(img, startx,starty,/BILINEAR, /WHOLE_MAP, $
latmin = 1, latmax = 90, lonmin = -179, $
lonmax = 180, compress = 1)

and then I show the image
TV, new_img, startx,starty

My problems are:
1 Since I have a color bar to show, I squeeze the map by setting
posiont in map_set. However, the img shown by TV does not squeeze.
2 Although I set up start position for TV, data are shown outside the
map area and overlap with plot title.
Basically I am asking when you have a global data set, how to plot the
data any place you want to zoom in and also make sure the data align
with the lat-lon postion correctly.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: cgcolor load color to the current color table.
Next Topic: Creating a jpeg file from a colored plot

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

Current Time: Wed Oct 08 11:32:57 PDT 2025

Total time taken to generate the page: 0.00520 seconds