Ignore:
Timestamp:
Feb 6, 2007 3:58:38 PM (16 years ago)
Author:
srkline
Message:

bug fixes and performance tweaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/SANSReduction/trunk/Put in User Procedures/SANS_Reduction_v5.00/CircSectAve.ipf

    r41 r47  
    104104        // 
    105105        //pixels within rcentr of beam center are broken into 9 parts (units of mm) 
    106         rcentr = 100 
     106        rcentr = 100            //original 
     107//      rcentr = 0 
    107108        // values for error if unable to estimate value 
    108109        //large_num = 1e10 
     
    299300                else 
    300301                        //large arg, exact correction 
    301                         aveint[ii] *= uval*arg/(1-exp(-uval*arg)) 
     302                        aveint[ii] /= (1-exp(-uval*arg))/(uval*arg) 
    302303                endif 
    303304                ii+=1 
     
    392393        //get rid of the default mask, if one was created (it is in the current folder) 
    393394        //don't just kill "mask" since it might be pointing to the one in the MSK folder 
    394         Killwaves/z $(destPath+":mask") 
     395        Killwaves/Z $(destPath+":mask") 
    395396         
    396397        //return to root folder (redundant) 
     
    423424//function determines azimuthal angle dphi that a vector connecting 
    424425//center of detector to pixel makes with respect to vector 
    425 //at chosen azimuthal angle phi -> [cos(phi),sin(phi0] = [phi_x,phi_y] 
     426//at chosen azimuthal angle phi -> [cos(phi),sin(phi)] = [phi_x,phi_y] 
    426427//dphi is always positive, varying from 0 to Pi 
    427428// 
Note: See TracChangeset for help on using the changeset viewer.