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

Home » Public Forums » archive » Re: Problem running example mapping program from exelisvis website
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: Problem running example mapping program from exelisvis website [message #83329 is a reply to message #83322] Fri, 22 February 2013 05:13 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Tom Grydeland writes:

>
> I'm trying to run the demo code from
>
> http://www.exelisvis.com/docs/ImageWithMapProjection.html
>
> and I'm stumbling on the first call to MAP():
>
> IDL> m = map('Mercator', /buffer, semimajor_axis=6378137d, semiminor_axis=6378137d)
> % Incorrect number of arguments.

I can't run that code either on my Windows machine, but I get though the
line above and crash on this one:

im = IMAGE(img, GRID_UNITS='meters', $
MAP_PROJECTION='Mercator', $
SEMIMAJOR_AXIS=6378137d, SEMIMINOR_AXIS=6378137d, $
DIMENSIONS=[800, 800], $
LIMIT=[lonlat0[1], lonlat0[0], lonlat1[1], lonlat1[0]], $
IMAGE_LOCATION=[x0, y0], $
IMAGE_DIMENSIONS=[deltax, deltay])

Where the lonlat variables are undefined.

Nevertheless, I did use this example as the basis for the OpenStreetMap
plot example in the Coyote Gallery. The code there works. :-)

http://www.idlcoyote.com/gallery/

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: BP: convenience function for setting breakpoints
Next Topic: cgMap_set Horizon Fix

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

Current Time: Fri Oct 10 21:56:10 PDT 2025

Total time taken to generate the page: 0.24607 seconds