Ignore:
Timestamp:
Feb 2, 2018 8:26:07 AM (5 years ago)
Author:
srkline
Message:

additions to VCALC procedures to correctly account for panel motion (individual, not symmetric). Updated the plotting routines to all (mostly) pass through the same subroutines so that additional averaging modes will be easier to add.

File:
1 edited

Legend:

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

    r1062 r1081  
    6161                 
    6262                // returns the total separation (assumed symmetric) in cm 
    63                 val = VCALC_getPanelSeparation(detStr)           
    64                 val /= 2                // to get half of the separation, and cm for the data file 
     63                val = VCALC_getPanelTranslation(detStr)          
    6564                // it's OK to call both of these. these functions check detStr for the correct value 
    66                 if(cmpstr("L",detStr[1]) == 0 || cmpstr("B",detStr[1]) == 0) 
    67                         val *= -1       // negative separation position for L and Bottom 
    68                 endif 
    69                 V_writeDet_LateralOffset(fileName,detStr,val) 
    70                 V_writeDet_VerticalOffset(fileName,detStr,val) 
    71  
     65                if(cmpstr("T",detStr[1]) == 0 || cmpstr("B",detStr[1]) == 0) 
     66                        V_writeDet_LateralOffset(fileName,detStr,val)           // T/B panels 
     67                else 
     68                        V_writeDet_VerticalOffset(fileName,detStr,val)          //  L/R panels, or back detector 
     69                endif 
    7270                // x and y pixel sizes for each detector should be correct in the "base" file - but if not... 
    7371                //Function VCALC_getPixSizeX(type)              // returns the pixel X size, in [cm] 
Note: See TracChangeset for help on using the changeset viewer.