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

Home » Public Forums » archive » @make vs command line for creating .sav files.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
@make vs command line for creating .sav files. [message #50263] Thu, 21 September 2006 09:33
savoie is currently offline  savoie
Messages: 68
Registered: September 1996
Member
All,

O.k. I've searched google but I'm not finding the answer.

First I'm wondering why and @file on the command line acts differently
from typing the commands in one at a time.

The manual says "Commands and statements are executed in the order they
are contained in the file, as if they had been entered at the IDL
command prompt."

So, what I'm trying to accomplish is to create a .sav file from a set
of files that are in paths all over my machine. I've simplified to 3
commands.

I have a .pro file fake_needs.pro that does nothing but call a routine
that is in another directory in my !path and named fake_routine.pro

My startup file
---------------------------------
!path = !path + ":+/home/savoie/mhs/idl_util"
!path = expand_path( !path )
-------------------------------------

My file
-------

pro fake_needs
compile_opt idl2
fake_routine
end

My results
----------

IDL Version 6.2 (linux x86 m32). (c) 2005, Research Systems, Inc.
Installation number: 100-646.
Licensed for use by: University of Colorado

IDL> .RESET_SESSION
IDL> .COMPILE fake_needs.pro
% Compiled module: FAKE_NEEDS.
IDL> resolve_all
% Compiled module: RESOLVE_ALL.
% Compiled module: FAKE_ROUTINE.
% Compiled module: PATH_SEP.
% Compiled module: UNIQ.
IDL>


But if I put these three commands into a file 'fake_save.pro'

fake_save.pro
-------------
.reset_session
.compile fake_needs.pro
resolve_all
-------------


and try it at the command line:
IDL> @fake_save.pro
% Compiled module: FAKE_NEEDS.
% Compiled module: RESOLVE_ALL.
% Attempt to call undefined procedure/function: 'FAKE_ROUTINE'.
% Error occurred at: RESOLVE_ALL_BODY 288
/usr/local/rsi/idl_6.2/lib/resolve_all.pro
% RESOLVE_ALL 347
/usr/local/rsi/idl_6.2/lib/resolve_all.pro
% $MAIN$
% Execution halted at: $MAIN$
IDL>




So what's going on experts?

I'd love some help.

Matthew Savoie - Scientific Programmer
National Snow and Ice Data Center
(303) 735-0785 http://nsidc.org
[Message index]
 
Read Message
Previous Topic: Re: plot symbols only in oplot?
Next Topic: Re: @make vs command line for creating .sav files.

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

Current Time: Sat Oct 11 10:16:19 PDT 2025

Total time taken to generate the page: 0.56577 seconds