Changeset 577 for sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS
- Timestamp:
- Oct 22, 2009 11:04:32 AM (13 years ago)
- Location:
- sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/CatVSTable.ipf
r570 r577 55 55 Make/O/D/N=0 $"root:myGlobals:CatVSHeaderInfo:Field" 56 56 Make/O/D/N=0 $"root:myGlobals:CatVSHeaderInfo:MCR" //added Mar 2008 57 // Make/O/D/N=0 $"root:myGlobals:CatVSHeaderInfo:Reactorpower" //activate for ILL, June 2008 57 //#ifdef ILL_D22 58 // Make/O/D/N=0 $"root:myGlobals:CatVSHeaderInfo:Reactorpower" //activate for ILL, June 2008, 59 //#endif 58 60 59 61 If(V_Flag==0) … … 72 74 ModifyTable width(:myGlobals:CatVSHeaderInfo:Field)=50 73 75 ModifyTable width(:myGlobals:CatVSHeaderInfo:MCR)=50 76 //#ifdef ILL_D22 74 77 // ModifyTable width(:myGlobals:CatVSHeaderInfo:Reactorpower)=50 //activate for ILL, June 2008 75 78 //#endif 79 76 80 ModifyTable width(Point)=0 //JUN04, remove point numbers - confuses users since point != run 77 81 Endif … … 170 174 Wave GField = $"root:myGlobals:CatVSHeaderInfo:Field" 171 175 Wave GMCR = $"root:myGlobals:CatVSHeaderInfo:MCR" //added Mar 2008 176 //#ifdef ILL_D22 172 177 // Wave GReactPow = $"root:myGlobals:CatVSHeaderInfo:ReactorPower" //activate for ILL June 2008 ( and the sort line too) 173 178 // Sort GSuffix, GSuffix, GFilenames, GLabels, GDateTime, GSDD, GLambda, GCntTime, GTotCnts, GCntRate, GTransmission, GThickness, GXCenter, GYCenter, GNumAttens,GRunNumber,GIsTrans,GRot,GTemp,GField,GMCR,GReactPow 174 179 //#else 175 180 Sort GSuffix, GSuffix, GFilenames, GLabels, GDateTime, GSDD, GLambda, GCntTime, GTotCnts, GCntRate, GTransmission, GThickness, GXCenter, GYCenter, GNumAttens,GRunNumber,GIsTrans,GRot,GTemp,GField,GMCR 181 //#endif 182 176 183 return(0) 177 184 End … … 198 205 Wave Field= $"root:myGlobals:CatVSHeaderInfo:Field" 199 206 Wave MCR = $"root:myGlobals:CatVSHeaderInfo:MCR" //added Mar 2008 207 //#ifdef ILL_D22 208 // for ILL 200 209 // Wave ReactorPower = $"root:myGlobals:CatVSHeaderInfo:reactorpower" //activate for ILL, June 08 (+ edit line) 201 210 // Edit Filenames, Labels, DateAndTime, SDD, Lambda, CntTime, TotCnts, CntRate, Transmission, Thickness, XCenter, YCenter, NumAttens, RotAngle, Temperature, Field, MCR, ReactorPower as "Data File Catalog" 211 //#else 202 212 // original order, magnetic at the end 203 213 Edit Filenames, Labels, DateAndTime, SDD, Lambda, CntTime, TotCnts, CntRate, Transmission, Thickness, XCenter, YCenter, NumAttens, RotAngle, Temperature, Field, MCR as "Data File Catalog" 204 // for ILL205 // Edit Filenames, Labels, DateAndTime, SDD, Lambda, CntTime, TotCnts, CntRate, Transmission, Thickness, XCenter, YCenter, NumAttens, RotAngle, Temperature, Field, MCR, ReactorPower as "Data File Catalog"206 214 // alternate ordering, put the magnetic information first 207 215 // Edit Filenames, Labels, RotAngle, Temperature, Field, DateAndTime, SDD, Lambda, CntTime, TotCnts, CntRate, Transmission, Thickness, XCenter, YCenter, NumAttens as "Data File Catalog" 216 //#endif 217 208 218 String name="CatVSTable" 209 219 DoWindow/C $name … … 244 254 Wave GField = $"root:myGlobals:CatVSHeaderInfo:Field" 245 255 Wave GMCR = $"root:myGlobals:CatVSHeaderInfo:MCR" 256 //#ifdef ILL_D22 246 257 // Wave GReactpow = $"root:myGlobals:CatVSHeaderInfo:reactorpower" //activate for ILL, Jne 2008, (+ last insert @ end of function) 258 //#endif 247 259 lastPoint = numpnts(GLambda) 248 260 … … 331 343 InsertPoints lastPoint,1,GMCR 332 344 GMCR[lastPoint] = getMonitorCount(fname)/ctime //total monitor count / total count time 333 334 // Reactor Power (activate for ILL) 345 346 //#ifdef ILL_D22 347 // // Reactor Power (activate for ILL) 335 348 // InsertPoints lastPoint,1,GReactpow 336 349 // GReactPow[lastPoint] = getReactorPower(fname) 337 350 //#endif 351 338 352 return(0) 339 353 End … … 663 677 //Notebook CatWin,text=temp 664 678 End 665 -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/NCNR_Utils.ipf
r572 r577 569 569 Close refNum 570 570 571 if(totalBytes == 33316 && cmpstr(testStr,"RAW")==0)571 if(totalBytes == 33316 && ( cmpstr(testStr,"RAW")==0 || cmpstr(testStr,"SIM")==0)) 572 572 //true, is raw data file 573 573 Return(1) -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/SASCALC.ipf
r570 r577 999 999 NVAR doABS = root:Packages:NIST:SAS:g_1D_DoABS 1000 1000 NVAR addNoise = root:Packages:NIST:SAS:g_1D_AddNoise 1001 1001 1002 // this is where the number of cells comes in - the calculation of the error bars 1003 // sigma[i] = SUM(sigma[ij]^2) / nCells^2 1004 // and since in the simulation, SUM(sigma[ij]^2) = nCells*sigma[ij]^2 = nCells*Inten 1005 // then... 1002 1006 sigave = sqrt(aveint/nCells) // corrected based on John's memo, from 8/9/99 1003 1007 -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/Transmission.ipf
r570 r577 397 397 // 398 398 temp = temp+selectedFiles[0] //take just the first file 399 399 400 UpdateBoxCoordinates() 401 402 //check to make sure that if the box is set, that the count value in the box is set too... 403 // if the box is set by a protocol, then the counts are not set -> and the transmission will be INF 404 String tempName = FindValidFilename(temp) 405 if(cmpstr(tempName,"")==0) 406 //file not found, get out 407 Abort "Empty beam file not found UpdateBoxCoordinates(ctrlName)" 408 Endif 409 //name is ok, prepend path to tempName for read routine 410 PathInfo catPathName 411 String filename = S_path + tempName 412 Variable boxCounts = getBoxCounts(filename) 413 414 variable x1,x2,y1,y2 415 getXYBoxFromFile(filename,x1,x2,y1,y2) 416 417 if( (boxCounts == 0) && (x1!=0) && (x2!=0) && (y1!=0) && (y2!=0) ) 418 DoAlert 0,"Box Counts were not recorded. Please re-select the box using SetXYBox" 419 endif 420 421 400 422 Else 401 423 DoWindow/F TransFileTable … … 1358 1380 Variable refnum,x1,x2,y1,y2,err 1359 1381 GetXYBoxFromFile(filename,x1,x2,y1,y2) 1360 1382 1361 1383 //and update the global string 1362 1384 String msgStr=""
Note: See TracChangeset
for help on using the changeset viewer.