- Timestamp:
- Sep 23, 2009 12:56:57 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/Marquee.ipf
r482 r558 302 302 // output is dumped to the command window 303 303 // 304 Function DoBoxSum(fileStr,x1,x2,y1,y2 )304 Function DoBoxSum(fileStr,x1,x2,y1,y2,type) 305 305 String fileStr 306 306 Variable x1,x2,y1,y2 307 String type 307 308 308 309 //parse the list of file numbers … … 332 333 // String/G root:myGlobals:gDataDisplayType="RAW" 333 334 // fRawWindowHook() 334 err = Raw_to_work("SAM") 335 String/G root:myGlobals:gDataDisplayType="SAM" 335 if(cmpstr(type,"SAM")==0) 336 err = Raw_to_work("SAM") 337 endif 338 String/G root:myGlobals:gDataDisplayType=type 336 339 fRawWindowHook() 337 cts=SumCountsInBox(x1,x2,y1,y2, "SAM")340 cts=SumCountsInBox(x1,x2,y1,y2,type) 338 341 BoxCounts[ii]=cts 339 342 Print item+" counts = ",cts … … 384 387 385 388 String fileStr="",msgStr="Enter a comma-delimited list of run numbers, use dashes for ranges" 389 String type="RAW" 386 390 Prompt fileStr,msgStr 387 DoPrompt "Pick the file range",fileStr 391 Prompt type,"RAW or Normalized (SAM)",popup,"RAW;SAM;" 392 DoPrompt "Pick the file range",fileStr,type 388 393 Print "fileStr = ",fileStr 389 394 printf "(x1,x2) (y1,y2) = (%d,%d) (%d,%d)\r",x1,x2,y1,y2 390 395 391 DoBoxSum(fileStr,x1,x2,y1,y2 )396 DoBoxSum(fileStr,x1,x2,y1,y2,type) 392 397 393 398 return(0)
Note: See TracChangeset
for help on using the changeset viewer.