Ignore:
Timestamp:
Sep 26, 2019 1:13:02 PM (3 years ago)
Author:
srkline
Message:

fixed minor bugs in attenuator table definition (didn't affect calculations), VCALC display, and sector averaging of the back detector on VSANS

File:
1 edited

Legend:

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

    r1152 r1217  
    1919        String folderStr,detStr,folderPath 
    2020 
    21  
    22         Variable xctr = V_getDet_beam_center_x_pix(folderStr,detStr) 
    23         Variable yctr = V_getDet_beam_center_y_pix(folderStr,detStr) 
     21        Variable xctr,yctr 
     22         
     23        if(cmpstr(detStr,"B")==0) 
     24                //if "B", the center is already in pixels by definition, and x_pix, y_pix fields do not exist 
     25                xctr = V_getDet_beam_center_x(folderStr,detStr) 
     26                yctr = V_getDet_beam_center_y(folderStr,detStr) 
     27        else 
     28                xctr = V_getDet_beam_center_x_pix(folderStr,detStr) 
     29                yctr = V_getDet_beam_center_y_pix(folderStr,detStr) 
     30        endif 
     31 
    2432 
    2533        Duplicate/O qTotal,$(folderPath+":phi") 
Note: See TracChangeset for help on using the changeset viewer.