Changeset 122


Ignore:
Timestamp:
09/23/08 10:46:38 (16 years ago)
Author:
ericg
Message:

Correct bug in make_linfit.pro when corr_thres = 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/procs/macros/make_linfit.pro

    r112 r122  
    9999                     print, '  size(idt)',size(idt) 
    100100                     print, '  pt_linfit, correl = ',coeffl(1), correl 
    101                      stop 
    102101                  ENDIF  
    103102               ENDIF  
     
    127126 
    128127   idc = where(abs(pt_corr) LT corr_thres) 
    129    pt_linfit(idc) = !values.f_nan 
     128   IF idc[0] NE -1 THEN pt_linfit(idc) = !values.f_nan 
    130129 
    131130   corr_txt = '[r>'+strtrim(string(corr_thres, format = '(f5.2)'), 2)+']' 
Note: See TracChangeset for help on using the changeset viewer.