comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Problem with compiling ENVI-BATCH routine
items: Re: Problem with compiling ENVI-BATCH routine

Problem with compiling ENVI-BATCH routine
type: item
description: 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?
creator: Josip Krizan
date: 2006-11-08T11:26:21-00:00

Re: Problem with compiling ENVI-BATCH routine
type: item
description: 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?
creator: enod
date: 2006-11-11T11:43:55-00:00

Re: Problem with compiling ENVI-BATCH routine
type: item
description: 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 >
creator: Josip Krizan
date: 2006-11-11T11:50:25-00:00

Re: Problem with compiling ENVI-BATCH routine
type: item
description: 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.")
creator: David Fanning
date: 2006-11-11T12:34:32-00:00