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

Home » Public Forums » archive » Compiling error in Envi batch mode
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
Compiling error in Envi batch mode [message #57532] Fri, 14 December 2007 09:39 Go to next message
envi35@yahoo.ca is currently offline  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 Go to previous message
envi35@yahoo.ca is currently offline  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 Go to previous message
Jean H. is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Matrix rank
Next Topic: Time Arithmetic

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

Current Time: Fri Oct 10 13:21:58 PDT 2025

Total time taken to generate the page: 1.76245 seconds