Re: Problem with creating executable files for scripts using envi functions [message #71270] |
Thu, 10 June 2010 08:22 |
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 !
|
|
|
|