Changeset 885 for sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS
- Timestamp:
- Dec 13, 2012 11:58:20 AM (10 years ago)
- Location:
- sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/EventModeProcessing.ipf
r884 r885 96 96 // 97 97 98 Menu "Macros"99 "Split Large File",SplitBigFile()100 "Accumulate First Slice",AccumulateSlices(0)101 "Add Current Slice",AccumulateSlices(1)102 "Display Accumulated Slices",AccumulateSlices(2)103 End98 //Menu "Macros" 99 // "Split Large File",SplitBigFile() 100 // "Accumulate First Slice",AccumulateSlices(0) 101 // "Add Current Slice",AccumulateSlices(1) 102 // "Display Accumulated Slices",AccumulateSlices(2) 103 //End 104 104 105 105 … … 770 770 // I think that only the processing is different. so this could be 771 771 // consolidated into a single loader. 772 // 773 // ** currently, the "stream" loader uses the first data point as time=0 774 // and rescales everything to that time. "Osc" loading uses the times "as-is" 775 // from the file, trusting the times to be correct. 772 776 // 773 777 // Would TISANE or TOF need a different loader? … … 2119 2123 endif 2120 2124 2125 NVAR mode = root:Packages:NIST:gEvent_Mode // ==0 for "stream", ==1 for Oscillatory 2121 2126 // clear out the old sort index, if present, since new data is being loaded 2122 2127 KillWaves/Z OscSortIndex … … 2124 2129 2125 2130 Duplicate/O timePt rescaledTime 2126 rescaledTime = 1e-7*(timePt-timePt[0]) //convert to seconds and start from zero 2131 if(mode==0) 2132 rescaledTime = 1e-7*(timePt-timePt[0]) //convert to seconds and start from zero 2133 else 2134 rescaledTime = timePt*1e-7 //just take the times as-is 2135 endif 2136 2127 2137 t_longest = waveMax(rescaledTime) //should be the last point 2138 2128 2139 2129 2140 fileStr = ParseFilePath(0, filepathstr, ":", 1, 0) … … 2476 2487 // 2477 2488 2478 MacroSplitBigFile(splitSize, baseStr)2489 Proc SplitBigFile(splitSize, baseStr) 2479 2490 Variable splitSize = 100 2480 2491 String baseStr="split" … … 2587 2598 // mode = 1 add current slicedData to accumulatedData 2588 2599 // mode = 2 copy accumulatedData to slicedData in preparation of export or display 2589 // mode = 3 sing a song 2600 // mode = 3 sing a song, dance a dance 2590 2601 // 2591 2602 Function AccumulateSlices(mode) … … 2596 2607 switch(mode) 2597 2608 case 0: 2609 DoAlert 0,"The current data has been copied to the accumulated set. You are now ready to add more data." 2598 2610 KillWaves/Z accumulatedData 2599 2611 Duplicate/O slicedData accumulatedData 2600 2612 break 2601 2613 case 1: 2614 DoAlert 0,"The current data has been added to the accumulated data. You can add more data." 2602 2615 Wave acc=accumulatedData 2603 2616 Wave cur=slicedData … … 2605 2618 break 2606 2619 case 2: 2620 DoAlert 0,"The accumulated data is now the display data and is ready for display or export." 2607 2621 Duplicate/O accumulatedData slicedData 2608 2622 break -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/MainPanel.ipf
r764 r885 227 227 End 228 228 229 Proc TISANE_MainButtonProc(ctrlName) : ButtonControl 230 String ctrlName 231 232 if(exists("Show_TISANE_Panel")==0) 229 //Proc TISANE_MainButtonProc(ctrlName) : ButtonControl 230 // String ctrlName 231 // 232 // if(exists("Show_TISANE_Panel")==0) 233 // // procedure file was not loaded 234 // DoAlert 0,"This operation is not available in this set of macros" 235 // else 236 // Show_TISANE_Panel() 237 // endif 238 // 239 //End 240 241 Proc Event_MainButtonProc(ctrlName) : ButtonControl 242 String ctrlName 243 244 if(exists("Show_Event_Panel")==0) 233 245 // procedure file was not loaded 234 246 DoAlert 0,"This operation is not available in this set of macros" 235 247 else 236 Show_ TISANE_Panel()248 Show_Event_Panel() 237 249 endif 238 250 … … 355 367 Button MainButton_3f,pos={150,120},size={110,20},title="WorkFile Math",proc=WorkMath_MainButtonProc 356 368 Button MainButton_3f,help={"Perfom simple math operations on workfile data"} 357 Button MainButton_3g,pos={150,180},size={100,20},title=" TISANE",proc=TISANE_MainButtonProc369 Button MainButton_3g,pos={150,180},size={100,20},title="Event Data",proc=Event_MainButtonProc 358 370 Button MainButton_3g,help={"Manipulate TISANE Timeslice data"} 359 371 -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/Menu.ipf
r838 r885 44 44 "Bin QxQy Data to 1D",BinQxQy_to_1D() 45 45 End 46 Submenu "Event Processing" 47 "Event Mode Process Panel",Show_Event_Panel() 48 "Adjust Events",ShowEventCorrectionPanel() 49 "Create Custom Bins",Show_CustomBinPanel() 50 "-" 51 "Split Large File",SplitBigFile() 52 "Accumulate First Slice",AccumulateSlices(0) 53 "Add Current Slice",AccumulateSlices(1) 54 "Display Accumulated Slices",AccumulateSlices(2) 55 End 46 56 "-" 47 57 "NCNR Preferences",Show_Preferences_Panel()
Note: See TracChangeset
for help on using the changeset viewer.