- Timestamp:
- Dec 8, 2009 6:18:04 PM (13 years ago)
- Location:
- sans/Dev/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/USANS/BT5_AddFiles.ipf
r577 r611 5 5 // Version 1.0 6 6 // SRK 7 OCT 2009 7 // 8 9 // Adding two raw .bt5 files: 10 // - only files with the same angle range and the same number of points can be added. 11 // - NO shifting is done - these are raw data files, and the angular shift is not known 12 // - it can be repeated multiple times to add more than two files together 13 // - the two added files are listed in the title of the summed file. 14 15 // Adding two data sets: 16 // - here, two entire data sets (inlcluding the main beam) are added together after 17 // loading and normalizing and coverting to Q. The data file is NOT saved out, because 18 // it is not a format that can be re-read in for reduction. 19 // - to use the summed data set, it is first summed in a separate panel, and then transferred 20 // to either the active "SAM" or "EMP" data 21 // - since the zero offset can make the point values not exactly the same, only those within a 22 // certain tolerance are actually added. Points that cannot be added are still kept in the final 23 // data set. 7 24 // 8 25 … … 15 32 // - convert to countrate seems like a good idea, then 1+1=2 and I can propagate errors 16 33 // -- but how to save the data? At this point, errCR != sqrt(CR) 34 // -> answer is -- don't save the full data sets that have been summed... 17 35 // 18 36 // - Why can't I just use the whole set of files from the main USANS panel, and add what needs … … 20 38 // the shift to... 21 39 // 22 //23 // - need a global for the tolerance (and a good reason to use that particular value)24 //25 40 // - do I have anything hard-wired in the code that needs to be generalized before release? 26 //27 // - add descriptions of this to the help files28 41 // 29 42 … … 62 75 // Variable/G root:Packages:NIST:USANS:Globals:gUseXMLOutput = 0 63 76 String/G FilterStr 77 Variable/G gAddUSANSTolerance = 0.01 // add points if x is within 1% (an arbitrary choice!) 64 78 65 79 Make/O/T/N=1 fileWave,AWave,BWave … … 141 155 Button pickSavePathButton,pos={97,8},size={80,20},proc=PickSaveButtonProc,title="SavePath..." 142 156 Button pickSavePathButton,help={"Select the data folder where data is to be saved to disk"} 143 Button USANSHelpButton,pos={220,6},size={50,20},proc=USANS HelpButtonProc,title="Help"157 Button USANSHelpButton,pos={220,6},size={50,20},proc=USANSAddFilesHelpButton,title="Help" 144 158 Button USANSHelpButton,help={"Show the USANS reduction help file"} 145 159 … … 159 173 160 174 EndMacro 175 176 // Show the help file, don't necessarily keep it with the experiment (/K=1) 177 Function USANSAddFilesHelpButton(ctrlName) : ButtonControl 178 String ctrlName 179 180 DisplayHelpTopic/Z/K=1 "Adding Two Data Sets" 181 if(V_flag !=0) 182 DoAlert 0,"The USANS Data Reduction Help file could not be found" 183 endif 184 return(0) 185 End 161 186 162 187 Function AddUSANSDone(ba) : ButtonControl … … 266 291 267 292 268 Variable minPt,minDelta ,tol293 Variable minPt,minDelta 269 294 Variable ii,jj,nA,nB,sumPt=0 270 295 nA = numpnts(Angle_A) … … 272 297 Make/O/D/N=(nB) tmp_delta 273 298 274 tol = 0.01 //1% error allowed 299 NVAR tol = root:Packages:NIST:USANS:Globals:AddPanel:gAddUSANSTolerance //1% error allowed as default 300 275 301 for(ii=0;ii<nA;ii+=1) 276 302 Redimension/N=(nB) tmp_delta -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/USANS/COR_Graph.ipf
r605 r611 171 171 ModifyGraph mode(DetCts_COR)=3,marker(DetCts_COR)=19 172 172 ModifyGraph tickUnit=1 173 ErrorBars DetCts_COR Y,wave=(ErrDetCts_COR,ErrDetCts_COR)173 ErrorBars/T=0 DetCts_COR Y,wave=(ErrDetCts_COR,ErrDetCts_COR) 174 174 endif 175 175
Note: See TracChangeset
for help on using the changeset viewer.