Ignore:
Timestamp:
Jan 22, 2018 9:39:17 AM (5 years ago)
Author:
srkline
Message:

some of the changes for smearing calculations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_DetectorCorrections.ipf

    r1079 r1080  
    13581358        // if the DIV workfile doesn't exist, let the user know,and abort 
    13591359 
    1360         WAVE/Z div_data = $("root:Packages:NIST:VSANS:DIV:entry:instrument:detector_"+detStr+":data") 
     1360        WAVE/Z div_data_err = V_getDetectorDataErrW("DIV",detStr) 
     1361        WAVE/Z div_data = V_getDetectorDataW("DIV",detStr) 
     1362 
     1363//      WAVE/Z div_data = $("root:Packages:NIST:VSANS:DIV:entry:instrument:detector_"+detStr+":data") 
    13611364        if(WaveExists(div_data) == 0) 
    13621365                Print "The DIV wave does not exist in V_DIVCorrection()" 
    13631366                Return(1)               //error condition 
    13641367        Endif 
     1368        if(WaveExists(div_data_err) == 0) 
     1369                Print "The DIV error wave does not exist in V_DIVCorrection()" 
     1370                Return(1)               //error condition 
     1371        Endif 
    13651372        //files exist, proceed 
    13661373 
     1374// do the error propagation first, since data is changed by the correction 
     1375        data_err = sqrt(data_err^2/div_data^2 + div_data_err^2 * data^2/div_data^4 ) 
     1376 
     1377// then the correction 
    13671378        data /= div_data 
    13681379 
    1369 // TODO: -- correct the error propagation        
    1370         data_err /= div_data 
    13711380         
    13721381        Return(0) 
Note: See TracChangeset for help on using the changeset viewer.