Ignore:
Timestamp:
May 20, 2016 4:28:56 PM (7 years ago)
Author:
srkline
Message:

changes to a few analysis models to make these Igor 7-ready

adding mask editing utilities

many changes to event mode for easier processing of split lists

updated event mode help file

+ lots more!

File:
1 edited

Legend:

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

    r995 r999  
    5959End 
    6060 
    61  
    62  
    63 // 
    64 // see the VCALC BinAllMiddlePanels() for an example of this 
    65 // 
    66 // TODO  
    67 // x- detector "B" is currently skipped since the calibration waves are not faked 
    68 //    when the raw data is loaded. Then the qxqyqz waves are not generated. 
    69 // 
    70 // -- REDO the logic here. It's a mess, and will get the calculation wrong  
    71 // 
    72 // -- figure out the binning type (where is it set?) 
    73 // -- binning type is HARD-WIRED 
    74 // -- figure out when this is to be called to re-calculate the I vs Q 
    75 // 
    76 Function V_QBinAllPanels(folderStr) 
    77         String folderStr 
    78  
    79         // do the back, middle, and front separately 
    80          
    81 //      figure out the binning type (where is it set?) 
    82         Variable binType,ii,delQ 
    83         String detStr 
    84         binType = 1 
    85          
    86          
    87  
    88 //// TODO: 
    89 // x- currently the "B" detector is skipped - it was skipped in  
    90 //       previous functions where q values are calculated        
    91 //       
    92         delQ = SetDeltaQ(folderStr,"B") 
    93          
    94         // dispatch based on binning type 
    95         if(binType == 1) 
    96                 VC_fDoBinning_QxQy2D(folderStr, "B")            //normal binning, nothing to combine 
    97         endif 
    98  
    99 // TODO -- this is only a temporary fix for slit mode    
    100         if(binType == 4) 
    101                 /// this is for a tall, narrow slit mode         
    102                 VC_fBinDetector_byRows(folderStr,"B") 
    103         endif    
    104  
    105 // these are the binning types where detectors are not combined 
    106 // other combined binning is below the loop 
    107         for(ii=0;ii<ItemsInList(ksDetectorListNoB);ii+=1) 
    108                 detStr = StringFromList(ii, ksDetectorListNoB, ";") 
    109                  
    110                 // set delta Q for binning 
    111                 delQ = SetDeltaQ(folderStr,detStr) 
    112                  
    113                 // dispatch based on binning type 
    114                 if(binType==1) 
    115                         VC_fDoBinning_QxQy2D(folderStr,detStr) 
    116                 endif 
    117                  
    118                 // TODO -- this is only a temporary fix for slit mode    
    119                 if(binType == 4) 
    120                         /// this is for a tall, narrow slit mode         
    121                         VC_fBinDetector_byRows(folderStr,detStr) 
    122                 endif    
    123                  
    124         endfor 
    125          
    126         // bin in pairs 
    127         if(binType == 2) 
    128                 VC_fDoBinning_QxQy2D(folderStr,"MLR") 
    129                 VC_fDoBinning_QxQy2D(folderStr,"MTB") 
    130                 VC_fDoBinning_QxQy2D(folderStr,"FLR") 
    131                 VC_fDoBinning_QxQy2D(folderStr,"FTB")    
    132         endif 
    133          
    134         // bin everything on front or middle together 
    135         if(binType == 3) 
    136                 VC_fDoBinning_QxQy2D(folderStr,"MLRTB") 
    137                 VC_fDoBinning_QxQy2D(folderStr,"FLRTB") 
    138         endif 
    139  
    140         return(0) 
    141 End 
    14261 
    14362 
Note: See TracChangeset for help on using the changeset viewer.