Ignore:
Timestamp:
Oct 31, 2017 1:09:55 PM (5 years ago)
Author:
srkline
Message:

a few changes to update the calculation of transmission values from the tables, and updating the correct units in a few places. Also updated how a transmission file is matched with a scattering file.

File:
1 edited

Legend:

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

    r1071 r1072  
    25722572                 
    25732573        //get the necessary variables for the calculation of kappa 
    2574         Variable countTime,monCnt,sdd,pixel 
     2574        Variable countTime,monCnt,sdd,pixel_x,pixel_y 
    25752575        String detStr,junkStr,errStr 
    25762576 
     
    26932693                monCnt = V_getBeamMonNormData("RAW") 
    26942694                 
    2695                 pixel = V_getDet_x_pixel_size("RAW",detPanel_toSum) 
    2696                 pixel /= 10             //convert mm to cm, since sdd in cm 
     2695                pixel_x = V_getDet_x_pixel_size("RAW",detPanel_toSum) 
     2696                pixel_x /= 10           //convert mm to cm, since sdd in cm 
     2697                pixel_y = V_getDet_y_pixel_size("RAW",detPanel_toSum) 
     2698                pixel_y /= 10           //convert mm to cm, since sdd in cm 
    26972699                sdd = V_getDet_ActualDistance("RAW",detPanel_toSum) 
    26982700                 
    2699 //              kappa = emptyCts/countTime/empAttenFactor*1.0e8/(monCnt/countTime)*(pixel/sdd)^2 
     2701//              kappa = emptyCts/countTime/empAttenFactor*1.0e8/(monCnt/countTime)*(pixel_x*pixel_y/sdd^2) 
    27002702                kappa = emptyCts/countTime/empAttenFactor*1.0e8/(monCnt/countTime) 
    27012703                 
Note: See TracChangeset for help on using the changeset viewer.