X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 01 Nov 2010 03:49 PM by  anon
output_to_external data type
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
01 Nov 2010 03:49 PM
    Hello, I'd like to export .img (binary) files to ArcView raster (.bil). I can do this successfully in the GUI w/ File>Save As>Arc View Raster however I need to batch it. My script 'works' except the output is long integer rather than byte (the binary is float-- I don't know why envi converts it to long integer). The GUI gives me this selection option (for byte, long etc) but the key word data_type isn't accepted for the function envi_output_external_format Any suggestions? Code below.... Thanks, A COMPILE_OPT STRICTARR envi, /restore_base_save_files ENVI_BATCH_INIT ; for i = 0, n_elements(infiles) - 1 do begin ofile=strmid(infiles[i],0,10)+'bil' ENVI_OPEN_FILE,infiles[i],R_FID=fid,/NO_REALIZE ENVI_FILE_QUERY,fid,DIMS=dims,nl=nl,nb=nb,data_type=data_type, FILE_TYPE=file_type cd,'arcview_format' ENVI_OUTPUT_TO_EXTERNAL_FORMAT,/ARCVIEW,DIMS=dims,FID=fid,OUT_NAME=ofile,POS=[0] cd,'..' ENVI_FILE_MNG,id=fid,/remove endfor
    You are not authorized to post a reply.