X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 20 Sep 2010 02:44 PM by  anon
To modify the code to output to a text file
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
20 Sep 2010 02:44 PM
    Hello, everyone. I'm trying to use the stats_on_roi_widget from the code library, but I'm not able to modify the code to output to a text file. Somebody could help me? The end of the code is : ; Start the stats calculations here and print to output log envi_doit, 'envi_stats_doit', fid=fid, pos=pos, dims = dims, $ mean=mean, comp_flag=1, report_flag=3, to_screen=1, stdv=stdv print, 'ROI name: ', name ; Loop for Mean for each band print, 'Mean for:',name for j=0,nb-1 do begin print, j+1,mean[j], format='("Band Number:",i5, f16.6)' endfor print, '' ; Loop for Standard Deviation for each band print, 'Standard Deviation for:', name for k=0,nb-1 do begin print, k+1,stdv[k], format='("Band Number:",i5, f16.6)' endfor print, ''

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    23 Sep 2010 08:17 AM
    If you specify the REP_NAME, you can write out a text file directly from ENVI_STATS_DOIT.
    You are not authorized to post a reply.