07 Oct 2013 09:18 AM |
|
I have idl remove value
Can you check me? Thank you very much.
............................................
envi_doit, 'math_doit', fid=t_fid, pos=pos, dims=dims, $
exp=exp, out_name=out_name
envi_output_to_external_format,fid=t_fid, dims=dims,$
pos=pos,$
/tiff,$
out_name=out_name +'.tif'
endfor
envi_batch_exit
end
|
|
|
|
Berangere Casson New Member
Posts:61  
07 Oct 2013 09:25 AM |
|
What is the exact error message returned by the envi_output_to_external_format routine ?
|
|
|
|
Deleted User New Member
Posts:  
07 Oct 2013 09:42 AM |
|
When i run, it's .hdr no problem. But function export .tif format error:
tiff_write_file_doit: An error has occurred during processing.
Error attempt to subscript ENVI_FILES(ENVI_FILES_COMMON) with INDEX is out of range". The result may be invalid
and then, i check file, it's created, but when i open it, it's problem it's error:\
File: C:\temp\A2012140_2005.hdr
warning: The dimensions and data type of the given file are inconsistent with the actual size file. Please Correct
Can you help me? Thank you
|
|
|
|
Berangere Casson New Member
Posts:61  
08 Oct 2013 07:37 AM |
|
It seems we can't see the images including in your post. Could you make a text copy of the error message? Thanks
|
|
|
|
Deleted User New Member
Posts:  
08 Oct 2013 10:57 AM |
|
Hoa Le wrote:
When i run, it's .hdr no problem. But function export .tif format error:
tiff_write_file_doit: An error has occurred during processing.
Error attempt to subscript ENVI_FILES(ENVI_FILES_COMMON) with INDEX is out of range". The result may be invalid
And then, i check file, it's created, but when i open it, it's problem it's error:
File: C:\temp\A2012140_2005.hdr
warning: The dimensions and data type of the given file are inconsistent with the actual size file. Please Correct
Can you help me? Thank you
|
|
|
|
Deleted User New Member
Posts:  
08 Oct 2013 03:53 PM |
|
I think you need to set up an r_fid from the math_doit to pass to the output_to_external_format:
; Perform the band math processing
envi_doit, 'math_doit', $
fid=t_fid, pos=pos, dims=dims, exp=exp, out_name=out_name, $
r_fid=r_fid
envi_output_to_external_format, /tiff, FID=R_FID, pos=pos, dims=dims
|
|
|
|
Deleted User New Member
Posts:  
08 Oct 2013 10:24 PM |
|
Thank you very much. I can do it :-)
|
|
|
|