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, ''
|