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 #83322 is a reply to message #83309] Fri, 22 February 2013 07:54 Go to previous messageGo to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Friday, February 22, 2013 6:13:48 AM UTC-7, David Fanning wrote:
> 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.")

Hi Tom & David,

I think that the example is somewhat messed up. I'll have the docs team take a look. However, Tom, you should be able to run that MAP() line without any problems. Is it possible that you have another map function somewhere on your IDL path? Try the following:

m = map()
print, routine_filepath('map',/IS_FUNCTION)

It should point to the map.pro in the lib/graphics directory.

Hope this helps.

Cheers,
Chris
ExelisVIS
[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: Sat Oct 11 01:52:16 PDT 2025

Total time taken to generate the page: 0.79658 seconds