Compiling error in Envi batch mode [message #57532] |
Fri, 14 December 2007 09:39  |
envi35@yahoo.ca
Messages: 48 Registered: March 2005
|
Member |
|
|
Hi, I'm running an idl programm in Envi batch mode. I used the "envi,/
restore_base_save_files" in the beginning of the programm, however, I
sometimes got compiling errors about the Envi functions used in the
programm. I did use [ ] instead of ( ) for my arrays, why I'm getting
this compiling error? Do I have to use Forward_function for all of the
Envi functions?
Any ideas how to avoid this?
Thanks,
Jenny
|
|
|
Re: Compiling error in Envi batch mode [message #57619 is a reply to message #57532] |
Fri, 14 December 2007 10:11  |
envi35@yahoo.ca
Messages: 48 Registered: March 2005
|
Member |
|
|
Thanks Jean. I just found I should use compile_opt idl2!
Jenny
On Dec 14, 12:57 pm, Jean H <jghas...@DELTHIS.ucalgary.ANDTHIS.ca>
wrote:
> Jenny wrote:
>> Hi, I'm running an idl programm in Envi batch mode. I used the "envi,/
>> restore_base_save_files" in the beginning of the programm, however, I
>> sometimes got compiling errors about the Envi functions used in the
>> programm. I did use [ ] instead of ( ) for my arrays, why I'm getting
>> this compiling error? Do I have to use Forward_function for all of the
>> Envi functions?
>
>> Any ideas how to avoid this?
>
>> Thanks,
>> Jenny
>
> Just in case... do you have this at the top of your function:
> compile_opt idl2
> envi, /restore_base_save_files
> envi_batch_init
> Using [] for arrays IS the good thing to do... you might have problem if
> you use (), not the contrary!
>
> Jean
|
|
|
Re: Compiling error in Envi batch mode [message #57621 is a reply to message #57532] |
Fri, 14 December 2007 09:57  |
Jean H.
Messages: 472 Registered: July 2006
|
Senior Member |
|
|
Jenny wrote:
> Hi, I'm running an idl programm in Envi batch mode. I used the "envi,/
> restore_base_save_files" in the beginning of the programm, however, I
> sometimes got compiling errors about the Envi functions used in the
> programm. I did use [ ] instead of ( ) for my arrays, why I'm getting
> this compiling error? Do I have to use Forward_function for all of the
> Envi functions?
>
> Any ideas how to avoid this?
>
> Thanks,
> Jenny
Just in case... do you have this at the top of your function:
compile_opt idl2
envi, /restore_base_save_files
envi_batch_init
Using [] for arrays IS the good thing to do... you might have problem if
you use (), not the contrary!
Jean
|
|
|