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

Home » Public Forums » archive » Re: Map Function Question
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: Map Function Question [message #79858 is a reply to message #79857] Thu, 19 April 2012 07:14 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> How hard can it be to make an image the proper size?
> I've been doing nothing but that for 20 years! I would
> be happy to supply Excels my cgImage code, if they
> can't find it on the Internet on their own.
>
> Sheesh! The main reason I can't work with Function Graphics
> is that my blood pressure gets out of control. :-(

OK, I *finally* figured this out. It turns out that
I need to set the ASPECT_RATIO=0 keyword on the
map projection, too, to make this work!

scaledData = Byte(Value_Locate(levels, data))
im = IMAGE(scaledData, x, y, RGB_TABLE=rgb, XRANGE=xrange, $
YRANGE=yrange, GRID_UNITS='degrees', $
POSITION=[0.1,0.1,0.9,0.9], ASPECT_RATIO=0)
mp = map('EQUIRECTANGULAR', LIMIT=limit, LABEL_POSITION=0, $
POSITION=[0.1,0.1,0.9,0.9], /CURRENT, ASPECT_RATIO=0)
mc = MapContinents(FILL_COLOR='dark gray', LIMIT=limit)
grid = mp.mapgrid
grid.color='dark gray'
grid.label_color='black'
grid.linestyle = 2
grid.transparency = 25

One and a half days to do this. You must have infinite
patience, my friend!

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PyMOL in IDL
Next Topic: What color should it be?

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

Current Time: Fri Oct 10 07:07:42 PDT 2025

Total time taken to generate the page: 0.40137 seconds