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

Home » Public Forums » archive » image on 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
image on map [message #58038] Sat, 12 January 2008 03:44
skymaxwell@gmail.com is currently offline  skymaxwell@gmail.com
Messages: 127
Registered: January 2007
Senior Member
Hello

I have 'world.bmp' file. I load it to IDL. Set map projection by
MAP_SET. Then use MAP_IMAGE,
but image there must be 2D array so before i use REFORM. If i display
image by TV, it's now same colors as origin BMP file. So how fix it ?

and another question. My BMP file have size (600,360) when i use
MAP_SET some pixels on top and bottom don't used. i was looked in help
- MAP_SET use only [+80;-80] degrees on latitude. how use [-90;+90] ?

Here is fragment of my code

...
image=READ_BMP('C:\world.bmp',/RGB)
help,image
image0=REFORM(image[0,*,*])
help,image0
image1=REFORM(image[1,*,*])
help,image1
image2=REFORM(image[2,*,*])
help,image2

MAP_SET,E_HORIZON={fill:1,color:10},/HIRES,/NOBORDER,/
MERCATOR,XMARGIN=[0,0],YMARGIN=[0,0]
newImage0=MAP_IMAGE(image0,0,0,600,360,LATMIN=-90,LONMIN=-18 0,LATMAX=90,LONMAX=180)
image[0,*,*]=newImage0
tv,newImage0
;tv,image

map_continents,color=100,fill_continents=1,/HIRES
map_continents,/countries,color=34,/HIRES
....

Thanks
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: elegant array index expansion using INTERPOLATE
Next Topic: Re: image on map

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

Current Time: Wed Oct 08 19:51:45 PDT 2025

Total time taken to generate the page: 0.00498 seconds