expanded area is shown when trying to plot an image on a map [message #78131] |
Wed, 26 October 2011 15:27 |
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.
|
|
|