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

Home » Public Forums » archive » RESOLVE_ALL problem
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
RESOLVE_ALL problem [message #61963] Mon, 11 August 2008 16:51 Go to next message
b_gom is currently offline  b_gom
Messages: 105
Registered: April 2003
Senior Member
I'm trying to build a .sav file from a project that used to work, but
is now giving the following error when I call RESOLVE_ALL or use the
'Build Project' menu option:

% Attempt to call undefined procedure/function: 'CALL_FUNCTION'.
% Error occurred at: RESOLVE_ALL_BODY 290 C:\Program Files\ITT
\IDL70\lib\resolve_all.pro
% RESOLVE_ALL 351 C:\Program Files\ITT
\IDL70\lib\resolve_all.pro
% $MAIN$
% Execution halted at: $MAIN$

Any idea what is causing this? CALL_FUNCTION works properly, so I
don't know why RESOLVE_ALL chokes on it.

Thanks
Re: Resolve_All problem [message #82537 is a reply to message #61963] Mon, 17 December 2012 06:21 Go to previous messageGo to next message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
Do you have any *variables* named LIST? There was a new IDL function named LIST() which was introduced in IDL 8.0. If you have variables named LIST and are still using parentheses rather than square brackets for indexing, then IDL will think you are calling the new function rather than indexing the variable.

--Wayne

On Monday, December 17, 2012 7:07:13 AM UTC-5, Sebastian wrote:
> Hi all,
>
>
>
> Having trouble using Resolve_All. I am using IDL Version 8.0.1 (linux x86 m32). My IDL script EXTRACT_ANALYSIS_1 runs perfectly fine in normal IDL mode. But when I try to save the script as a .sav file I get the following error.
>
>
>
> IDL> .compile extract_analysis_1
>
> % Compiled module: EXTRACT_ANALYSIS_1.
>
> IDL> resolve_all
>
> % Compiled module: RESOLVE_ALL.
>
> % Compiled module: CALDAT.
>
> % Compiled module: JULDAY.
>
> % Compiled module: NCREAD.
>
> % Compiled module: REGRID.
>
> % Compiled module: LIST.
>
> % Attempt to call undefined procedure/function: 'LIST'.
>
> % Error occurred at: RESOLVE_ALL_BODY 289
>
> /usr/local/itt/idl/idl80/lib/resolve_all.pro
>
> % RESOLVE_ALL 365
>
> /usr/local/itt/idl/idl80/lib/resolve_all.pro
>
> % $MAIN$
>
> % Execution halted at: $MAIN$
>
> IDL>
>
>
>
> Trying the same on a different server that runs IDL Version 7.1 (linux x86_64 m64) it works fine despite a procedure or function named LIST not being present.
>
>
>
> I do not call a procedure/function named LIST in my script. And I was not able to work out where it is actually being called.
>
>
>
> Any help is much appreciated.
>
>
>
> Many thanks,
>
> Sebastian
Re: Resolve_All problem [message #82649 is a reply to message #61963] Thu, 10 January 2013 10:04 Go to previous messageGo to next message
Seb is currently offline  Seb
Messages: 15
Registered: January 2006
Junior Member
On Thursday, 10 January 2013 17:33:07 UTC, David Fanning wrote:
> Sebastian writes:
>
>
>
>> Thanks Wayne for pointing out the LIST() function. I am working with IDL8.2 now and the error persists when trying to resolve_all. I traced it back to the STRSPLIT() function which employs the LIST() function in
>
>>
>
>> /usr/local/exelis/idl82/lib/strsplit.pro
>
>>
>
>> I looked for the LIST() function from the IDL command line using print,file_which('list.pro') but it returns an empty line indicating that the LIST() function is indeed missing.
>
>>
>
>> BTW, STRSPLIT() runs fine when I execute the program from within IDL. Only when I try to resolve_all the LIST() function error comes up and resolve_all does not complete.
>
>>
>
>> Any idea why the LIST() function is missing or where I could get it from.
>
>
>
> I don't know this for a fact, and I'm guessing because I haven't been
>
> following this thread closely, but I would wager some serious money that
>
> if you stuck Compile_Opt idl2 in all of your program modules and
>
> restarted IDL, that this problem would go away. :-)
>
>
>
> 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 David,

I am afraid you would have lost your money. I put the Compile_Opt idl2 in my
startup a long time ago, actually following the advice from your website ;o).

I think the LIST() function is just not available for some reason. I have to ask our system admin tomorrow how he did the IDL upgrades maybe that will explain the missing function.

Meanwhile I made a local copy of strplit.pro and commented out the three lines that use the list function:

;result = LIST()
;count = LONARR(n)
;if (ARG_PRESENT(length)) then length = LIST()

That solves the resolve_all error message and strplit still works as long as I don't use the length keyword when calling strsplit. It's a bit of a dirty workaround but works for the time being.

Thanks for the help,
Sebastian
Re: Resolve_All problem [message #82650 is a reply to message #61963] Thu, 10 January 2013 10:00 Go to previous messageGo to next message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
The list() function is stored as a .sav file and not as a .pro file. So you need to check for its existence with

IDL> print,file_which('list.sav')
/software/IDL/idl82/lib/datatypes/list.sav

(This is one reason I prefer
http://idlastro.gsfc.nasa.gov/ftp/pro/misc/findpro.pro
to file_which(). )

On Thursday, January 10, 2013 12:26:31 PM UTC-5, Sebastian wrote:

> I looked for the LIST() function from the IDL command line using print,file_which('list.pro') but it returns an empty line indicating that the LIST() function is indeed missing.
>
Re: Resolve_All problem [message #82651 is a reply to message #61963] Thu, 10 January 2013 09:50 Go to previous messageGo to next message
Lajos Foldy is currently offline  Lajos Foldy
Messages: 176
Registered: December 2011
Senior Member
On Thursday, January 10, 2013 6:26:31 PM UTC+1, Sebastian wrote:

> I looked for the LIST() function from the IDL command line using print,file_which('list.pro') but it returns an empty line indicating that the LIST() function is indeed missing.

LIST() is in /usr/local/exelis/idl82/lib/datatypes/list.sav:

IDL> restore, '/usr/local/exelis/idl82/lib/datatypes/list.sav', /verbose
% RESTORE: Portable (XDR) SAVE/RESTORE file.
% RESTORE: Save file written by buildmaster@WIN32VS10-B08VM, Tue Aug 21 10:36:32 2012.
% RESTORE: IDL version 8.2.1 (Win32, x86).
% RESTORE: Restored function: LIST.

regards,
Lajos
Re: Resolve_All problem [message #82653 is a reply to message #61963] Thu, 10 January 2013 09:34 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> I don't know this for a fact, and I'm guessing because I haven't been
> following this thread closely, but I would wager some serious money that
> if you stuck Compile_Opt idl2 in all of your program modules and
> restarted IDL, that this problem would go away. :-)

Well, it would go away, or you would get to the bottom it it. One of the
two. :-)

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: Resolve_All problem [message #82654 is a reply to message #61963] Thu, 10 January 2013 09:33 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Sebastian writes:

> Thanks Wayne for pointing out the LIST() function. I am working with IDL8.2 now and the error persists when trying to resolve_all. I traced it back to the STRSPLIT() function which employs the LIST() function in
>
> /usr/local/exelis/idl82/lib/strsplit.pro
>
> I looked for the LIST() function from the IDL command line using print,file_which('list.pro') but it returns an empty line indicating that the LIST() function is indeed missing.
>
> BTW, STRSPLIT() runs fine when I execute the program from within IDL. Only when I try to resolve_all the LIST() function error comes up and resolve_all does not complete.
>
> Any idea why the LIST() function is missing or where I could get it from.

I don't know this for a fact, and I'm guessing because I haven't been
following this thread closely, but I would wager some serious money that
if you stuck Compile_Opt idl2 in all of your program modules and
restarted IDL, that this problem would go away. :-)

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: Resolve_All problem [message #82655 is a reply to message #82537] Thu, 10 January 2013 09:26 Go to previous messageGo to next message
Seb is currently offline  Seb
Messages: 15
Registered: January 2006
Junior Member
On Monday, 17 December 2012 14:21:21 UTC, wlandsman wrote:
> Do you have any *variables* named LIST? There was a new IDL function named LIST() which was introduced in IDL 8.0. If you have variables named LIST and are still using parentheses rather than square brackets for indexing, then IDL will think you are calling the new function rather than indexing the variable.
>
>
>
> --Wayne
>
>
>
> On Monday, December 17, 2012 7:07:13 AM UTC-5, Sebastian wrote:
>
>> Hi all,
>
>>
>
>>
>
>>
>
>> Having trouble using Resolve_All. I am using IDL Version 8.0.1 (linux x86 m32). My IDL script EXTRACT_ANALYSIS_1 runs perfectly fine in normal IDL mode. But when I try to save the script as a .sav file I get the following error.
>
>>
>
>>
>
>>
>
>> IDL> .compile extract_analysis_1
>
>>
>
>> % Compiled module: EXTRACT_ANALYSIS_1.
>
>>
>
>> IDL> resolve_all
>
>>
>
>> % Compiled module: RESOLVE_ALL.
>
>>
>
>> % Compiled module: CALDAT.
>
>>
>
>> % Compiled module: JULDAY.
>
>>
>
>> % Compiled module: NCREAD.
>
>>
>
>> % Compiled module: REGRID.
>
>>
>
>> % Compiled module: LIST.
>
>>
>
>> % Attempt to call undefined procedure/function: 'LIST'.
>
>>
>
>> % Error occurred at: RESOLVE_ALL_BODY 289
>
>>
>
>> /usr/local/itt/idl/idl80/lib/resolve_all.pro
>
>>
>
>> % RESOLVE_ALL 365
>
>>
>
>> /usr/local/itt/idl/idl80/lib/resolve_all.pro
>
>>
>
>> % $MAIN$
>
>>
>
>> % Execution halted at: $MAIN$
>
>>
>
>> IDL>
>
>>
>
>>
>
>>
>
>> Trying the same on a different server that runs IDL Version 7.1 (linux x86_64 m64) it works fine despite a procedure or function named LIST not being present.
>
>>
>
>>
>
>>
>
>> I do not call a procedure/function named LIST in my script. And I was not able to work out where it is actually being called.
>
>>
>
>>
>
>>
>
>> Any help is much appreciated.
>
>>
>
>>
>
>>
>
>> Many thanks,
>
>>
>
>> Sebastian

Thanks Wayne for pointing out the LIST() function. I am working with IDL8.2 now and the error persists when trying to resolve_all. I traced it back to the STRSPLIT() function which employs the LIST() function in

/usr/local/exelis/idl82/lib/strsplit.pro

I looked for the LIST() function from the IDL command line using print,file_which('list.pro') but it returns an empty line indicating that the LIST() function is indeed missing.

BTW, STRSPLIT() runs fine when I execute the program from within IDL. Only when I try to resolve_all the LIST() function error comes up and resolve_all does not complete.

Any idea why the LIST() function is missing or where I could get it from.

Many thanks for your help,
Sebastian
Re: Resolve_All problem [message #82741 is a reply to message #82650] Fri, 11 January 2013 02:19 Go to previous message
Seb is currently offline  Seb
Messages: 15
Registered: January 2006
Junior Member
On Thursday, 10 January 2013 18:00:20 UTC, wlandsman wrote:
> The list() function is stored as a .sav file and not as a .pro file. So you need to check for its existence with
>
>
>
> IDL> print,file_which('list.sav')
>
> /software/IDL/idl82/lib/datatypes/list.sav
>
>
>
> (This is one reason I prefer
>
> http://idlastro.gsfc.nasa.gov/ftp/pro/misc/findpro.pro
>
> to file_which(). )
>
>
>
> On Thursday, January 10, 2013 12:26:31 PM UTC-5, Sebastian wrote:
>
>
>
>> I looked for the LIST() function from the IDL command line using print,file_which('list.pro') but it returns an empty line indicating that the LIST() function is indeed missing.
>
>>

Thanks for pointing out the list.sav file. I finally found it under
/usr/local/exelis/idl82/lib/datatypes/list.sav
Problem was that IDL was not looking in this directory. After fixing the paths the error disappeared. Problem solved.

Many thanks for your help,
Sebastian
Re: Resolve_All problem [message #82745 is a reply to message #82655] Thu, 10 January 2013 10:56 Go to previous message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
On Thu, 10 Jan 2013 09:26:31 -0800 (PST), Sebastian wrote:

> I looked for the LIST() function from the IDL command line using print,file_which('list.pro') but it returns an empty line indicating that the LIST() function is indeed missing.
>
Are you sure, that you don't have a file named 'list.pro' within your
current directory?

File_which does not look into the current directory, if there is no
keyword /include_current_dir.

Heinz
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL path setup in MAC
Next Topic: Re: sending email via idl?

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

Current Time: Wed Oct 08 13:33:58 PDT 2025

Total time taken to generate the page: 0.01341 seconds