X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 28 Apr 2011 01:37 AM by  anon
How to extract bands from single image is each files ??
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
28 Apr 2011 01:37 AM
    I have single image within 151 bands. How to extract is bands to files(151 files) by IDL code ? thank you so much

    Deleted User



    New Member


    Posts:
    New Member


    --
    29 Apr 2011 07:08 AM
    PRO FILE2BANDS envi_select, fid=fid, pos=pos, title='Input File' if (fid[0] eq -1) then return output_dir = Dialog_Pickfile(/Directory,/Write, Title='Select your output folder') envi_file_query, fid, dims=dims, nb=nb, bnames=bnames, $ data_type=data_type, sname=sname pFinish = Strpos(sname,'.') if pFinish eq -1 then name=sname $ else name=strmid(sname, 0, pFinish) for i=0, nb-1 do begin out_name=output_dir + strcompress(name + '_band_' $ + string(i+1), /remove_all) envi_doit, 'Cf_Doit', dims=dims, fid=fid, out_bname=bnames[i], $ out_dt=data_type, out_name=out_name, pos=[i], r_fid=r_fid envi_file_mng, id=r_fid, /remove endfor END
    You are not authorized to post a reply.