|
Re: about ENVI_display_bands [message #65481 is a reply to message #65474] |
Sat, 07 March 2009 08:15  |
Mort Canty
Messages: 134 Registered: March 2003
|
Senior Member |
|
|
lchfzfj@yahoo.com.cn schrieb:
> Hi,all,
>
> I have a problem with ENVI_display_bands, below is the whole
> procedure:
>
> pro tt1
> compile_opt idl2
> envi,/restore_base_save_files
> envi_batch_init
> ENVI_SELECT, title='Input Filename', fid=in_fid,
> pos=in_pos,dims=in_dims
> envi_file_query, in_fid, ns=ns, nl=nl, nb=nb
> ENVI_DISPLAY_BANDS, [in_fid,in_fid,in_fid], [2,1,0], /new
> envi_batch_exit
> end
>
> when run it, there always have the following errors:
> % Expression must be a structure in this context: MSTR.
> % Execution halted at: ENVI_SUB_MENU
>
> this problem disturb me for the whole days, who could kindly tell me
> how to solve it?
>
> thanks in advance
> sincerely
> jenny
Hi Jenny,
I get the same error. But the ENVI help says:
An interactive ENVI session is required to run this procedure.
If ENVI is up and running, your example works OK.
Mort
|
|
|