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

Home » Public Forums » archive » map_image edge distortion
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
map_image edge distortion [message #63544] Tue, 11 November 2008 17:11
mankoff is currently offline  mankoff
Messages: 131
Registered: March 2004
Senior Member
Hi Group,

I'm confused by few simple commands. I'm trying to produce a basic map
(for cutting up and putting into Google Maps). It needs to be mercator
projection, square, and some multiple of 256x256. I thought the
following code might do it:

data = randomu(foo,64,64)
window, 0, xsize=256,
ysize=256
map_set, 0, 0, /mercator, position=[0,0,1,1]
img = map_image( data, xx, yy, xs, ys, /compress )
img = bytscl( img )
tv, img, xx, yy, XSIZE=xs, YSIZE=ys
img = tvrd()
write_png, 'map.png', img, r,g,b

But the resulting PNG has sidebars for some reason. What am I doing
wrong?

Thanks,

-k.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Empty arrays?
Next Topic: Array manipulation

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

Current Time: Fri Oct 10 06:26:53 PDT 2025

Total time taken to generate the page: 1.04017 seconds