Re: Problem running example mapping program from exelisvis website [message #83297] |
Tue, 26 February 2013 08:10  |
lecacheux.alain
Messages: 325 Registered: January 2008
|
Senior Member |
|
|
Le mardi 26 février 2013 15:12:48 UTC+1, Tom Grydeland a écrit :
> On Monday, February 25, 2013 1:22:16 PM UTC, Tom Grydeland wrote:
>
>> On Friday, February 22, 2013 3:54:02 PM UTC, Chris Torrence wrote:
>
>
>
>>> [...] 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?
>
>
>
> I don't, as stated previously, but I must have some other function or routine on my path that shadows some function being called by MAP(). I tried exactly the same with an IDL started with a default IDL search path, and creation of MAP objects works then.
>
>
>
> Is there a way to get a backtrace from this error message? I'm being returned to $MAIN$ so as far as I know, my stack is lost.
>
>
>
>
>
>>> Chris
>
>
>
>
>
> --T
This is not directly related with Tom Grydeland's problem, but it is annoying:
when using Internet Explorer, simple cut and paste from Exelis Website examples to the Workbench is not possible: all the lines get glued together, likely due to missing new line character(s) in the Exelis page. Is there a workaround ?
alx.
|
|
|
Re: Problem running example mapping program from exelisvis website [message #83298 is a reply to message #83297] |
Tue, 26 February 2013 06:12   |
tom.grydeland
Messages: 51 Registered: September 2012
|
Member |
|
|
On Monday, February 25, 2013 1:22:16 PM UTC, Tom Grydeland wrote:
> On Friday, February 22, 2013 3:54:02 PM UTC, Chris Torrence wrote:
>> [...] 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?
I don't, as stated previously, but I must have some other function or routine on my path that shadows some function being called by MAP(). I tried exactly the same with an IDL started with a default IDL search path, and creation of MAP objects works then.
Is there a way to get a backtrace from this error message? I'm being returned to $MAIN$ so as far as I know, my stack is lost.
>> Chris
--T
|
|
|
|
Re: Problem running example mapping program from exelisvis website [message #83309 is a reply to message #83308] |
Mon, 25 February 2013 05:22   |
tom.grydeland
Messages: 51 Registered: September 2012
|
Member |
|
|
On Friday, February 22, 2013 3:54:02 PM UTC, Chris Torrence wrote:
> Hi Tom & David,
> [...] 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)
IDL> print, routine_filepath('map',/IS_FUNCTION)
/usr/local/exelis/idl82/lib/graphics/map.pro
> It should point to the map.pro in the lib/graphics directory.
It does.
What's even more screwed up, a colleague running exactly the same routine file with exactly the same IDL version on exactly the same machine does not see this problem. My IDL karma must be exceptionally weak this week.
> Chris
--T
|
|
|
Re: Problem running example mapping program from exelisvis website [message #83322 is a reply to message #83309] |
Fri, 22 February 2013 07:54   |
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
|
|
|
Re: Problem running example mapping program from exelisvis website [message #83329 is a reply to message #83322] |
Fri, 22 February 2013 05:13   |
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.")
|
|
|
Re: Problem running example mapping program from exelisvis website [message #83372 is a reply to message #83297] |
Thu, 28 February 2013 06:21  |
Mark Piper
Messages: 198 Registered: December 2009
|
Senior Member |
|
|
On Tuesday, February 26, 2013 9:10:13 AM UTC-7, alx wrote:
> This is not directly related with Tom Grydeland's problem, but it is annoying:
>
> when using Internet Explorer, simple cut and paste from Exelis Website examples to the Workbench is not possible: all the lines get glued together, likely due to missing new line character(s) in the Exelis page. Is there a workaround ?
>
Hi Alain,
I'll check into this.
mp
|
|
|