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

Home » Public Forums » archive » Re: Problem with creating executable files for scripts using envi functions
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
Re: Problem with creating executable files for scripts using envi functions [message #71270] Thu, 10 June 2010 08:22
laureroupioz is currently offline  laureroupioz
Messages: 6
Registered: July 2009
Junior Member
Thank you for your reply Nata!

Even with those steps, I run into troubles because of the resolve_all
that was giving an error and then the runtime application that was
getting stuck at the first ENVI routine without giving any error
messages… Finally, thanks to a colleague (thank you Allard), the
problem was solved so here are the steps to create an executable file
for a script calling ENVI routines, it may be of some help. The main
point is that the “envi, /restore_base_save_files” and
“envi_batch_init” should appears in the “main” procedure as well as
before compiling the procedures.


1. Write a main program that calls the application program (in this
case app_condor):
PRO Main
envi, /restore_base_save_files
envi_batch_init
app_condor
END

2. Define your current working directory according to where your
application program is located if different.

3. In a new IDL tab type the following:

envi, /restore_base_save_files
envi_batch_init
.comp app_condor
.comp main
resolve_all, /continue_on_error ;to overcome the resolve_all problem
save, /routines, filename='main.sav'

Send to the IDL command line by typing: @make_idlrtsave.pro

Your “main.sav” is then created !
Re: Problem with creating executable files for scripts using envi functions [message #71278 is a reply to message #71270] Wed, 09 June 2010 13:53 Go to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
## example of my_program.g ##
.r routine_a
.r routine_b
.r routine_c

.r my_program
my_program
#############################

@my_program.g
resolve_all
save, file='my_program.sav', /routines

And then, in the bash file:

idl -rt=my_program

I don't know if I understand your problem but I never had problems
doing this.

nata
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Creating a sub array from an array
Next Topic: Re: Creating a sub array from an array

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

Current Time: Wed Oct 08 15:49:11 PDT 2025

Total time taken to generate the page: 0.00683 seconds