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

Home » Public Forums » archive » Problem with compiling ENVI-BATCH routine
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
Problem with compiling ENVI-BATCH routine [message #51189] Wed, 08 November 2006 03:26 Go to next message
Josip Krizan is currently offline  Josip Krizan
Messages: 5
Registered: November 2006
Junior Member
Hi!

I have write some procedure :

PRO, Something

compile_opt IDL2
envi, /restore_base_save_files
envi_batch_init, log_file='batch_log.txt'

;open some file
ENVI_OPEN_FILE, inImage, R_FID=fidImg

;get map info
mapImg = ENVI_GET_MAP_INFO(FID=fidImg)

; get data
mask = ENVI_GET_DATA(FID=fidImg, DIMS=dimsImg, POS=0)

....
envi_batch_exit
END

Compiling of this procedure throws syntax error on all lines with
ENVI_GETMAP_INFO and ENVI_GET_DATA.
Solution is to run command: 'envi, /restore_base_save_files' first, and
then compiling is done without errors.

Does anybody has any idea about this?
Re: Problem with compiling ENVI-BATCH routine [message #51257 is a reply to message #51189] Sat, 11 November 2006 04:34 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Josip Krizan writes:

> That solves my problem:
> FORWARD_FUNCTION ENVI_GET_DATA, ENVI_GET_MAP_INFO
> Thanks!

Well, careful here. I'm not so sure this solves
the problem as much as it simply postpones it. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Problem with compiling ENVI-BATCH routine [message #51260 is a reply to message #51189] Sat, 11 November 2006 03:50 Go to previous message
Josip Krizan is currently offline  Josip Krizan
Messages: 5
Registered: November 2006
Junior Member
Yes!
That solves my problem:
FORWARD_FUNCTION ENVI_GET_DATA, ENVI_GET_MAP_INFO
Thanks!

On 11 Nov 2006 03:43:55 -0800, tianyf@gmail.com wrote:

> You should use *FORWARD_FUNCTION* to tell IDL to ignore those ENVI's
> function when it compiles the source. See IDL's oneline_help for more
> information.
>
>
> Tian
>
Re: Problem with compiling ENVI-BATCH routine [message #51261 is a reply to message #51189] Sat, 11 November 2006 03:43 Go to previous message
enod is currently offline  enod
Messages: 41
Registered: November 2004
Member
You should use *FORWARD_FUNCTION* to tell IDL to ignore those ENVI's
function when it compiles the source. See IDL's oneline_help for more
information.


Tian

On Nov 8, 7:26 pm, Josip Krizan <jkri...@oikon.hr> wrote:
> Hi!
>
> I have write some procedure :
>
> PRO, Something
>
> compile_opt IDL2
> envi, /restore_base_save_files
> envi_batch_init, log_file='batch_log.txt'
>
> ;open some file
> ENVI_OPEN_FILE, inImage, R_FID=fidImg
>
> ;get map info
> mapImg = ENVI_GET_MAP_INFO(FID=fidImg)
>
> ; get data
> mask = ENVI_GET_DATA(FID=fidImg, DIMS=dimsImg, POS=0)
>
> ....
> envi_batch_exit
> END
>
> Compiling of this procedure throws syntax error on all lines with
> ENVI_GETMAP_INFO and ENVI_GET_DATA.
> Solution is to run command: 'envi, /restore_base_save_files' first, and
> then compiling is done without errors.
>
> Does anybody has any idea about this?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Plot 3-D markers in iPlot
Next Topic: Re: Keystrokes While IN a Graphics Window?

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

Current Time: Wed Oct 08 15:14:27 PDT 2025

Total time taken to generate the page: 0.00567 seconds