- Timestamp:
- Mar 16, 2018 3:38:18 PM (5 years ago)
- Location:
- sans/Dev/trunk/NCNR_User_Procedures
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Analysis/Alpha/Tinker/FFT_SuperFormula.ipf
r1089 r1091 55 55 SetDrawLayer UserBack 56 56 SetVariable setvar0,pos={37.00,92.00},size={80.00,18.00},title="r",fSize=12 57 SetVariable setvar0,limits={-20,20,1},value= _NUM:3,disable= 257 SetVariable setvar0,limits={-20,20,1},value= _NUM:3,disable=1 58 58 SetVariable setvar1,pos={37.00,118.00},size={80.00,18.00},title="t",fSize=12 59 SetVariable setvar1,limits={-20,20,1},value= _NUM:2,disable= 259 SetVariable setvar1,limits={-20,20,1},value= _NUM:2,disable=1 60 60 SetVariable setvar2,pos={37.00,145.00},size={80.00,18.00},title="s",fSize=12 61 SetVariable setvar2,limits={-20,20,1},value= _NUM:4,disable= 261 SetVariable setvar2,limits={-20,20,1},value= _NUM:4,disable=1 62 62 SetVariable setvar3,pos={37.00,172.00},size={80.00,18.00},title="rad",fSize=12 63 SetVariable setvar3,limits={0,50,1},value= _NUM:15,disable= 263 SetVariable setvar3,limits={0,50,1},value= _NUM:15,disable=1 64 64 65 65 SetVariable setvar4,pos={162.00,91.00},size={80.00,18.00},title="m",fSize=12 … … 88 88 CheckBox check3,fSize=12,value= 1,mode=1,proc=SuperCheckProc 89 89 90 Button button0,pos={208.00,215.00},size={70.00,20.00},proc=SuperCalcButtonProc,title="Calculate" 90 Button button0,pos={190.00,215.00},size={80.00,20.00},proc=SuperCalcButtonProc,title="Calculate" 91 Button button1,pos={190.00,245.00},size={80.00,20.00},proc=PointCloudButtonProc,title="Point Cloud" 92 91 93 92 94 End … … 113 115 SetVariable setvar0 disable=0 114 116 SetVariable setvar1 disable=0 115 SetVariable setvar2 disable= 2116 SetVariable setvar3 disable= 2117 SetVariable setvar4 disable= 2118 SetVariable setvar5 disable= 2119 SetVariable setvar6 disable= 2120 SetVariable setvar7 disable= 2117 SetVariable setvar2 disable=1 118 SetVariable setvar3 disable=1 119 SetVariable setvar4 disable=1 120 SetVariable setvar5 disable=1 121 SetVariable setvar6 disable=1 122 SetVariable setvar7 disable=1 121 123 122 124 break … … 125 127 SetVariable setvar0 disable=0 126 128 SetVariable setvar1 disable=0 127 SetVariable setvar2 disable= 2129 SetVariable setvar2 disable=1 128 130 SetVariable setvar3 disable=0 129 SetVariable setvar4 disable= 2130 SetVariable setvar5 disable= 2131 SetVariable setvar6 disable= 2132 SetVariable setvar7 disable= 2131 SetVariable setvar4 disable=1 132 SetVariable setvar5 disable=1 133 SetVariable setvar6 disable=1 134 SetVariable setvar7 disable=1 133 135 break 134 136 case "check2": // Quadric … … 137 139 SetVariable setvar1 disable=0 138 140 SetVariable setvar2 disable=0 139 SetVariable setvar3 disable= 2140 SetVariable setvar4 disable= 2141 SetVariable setvar5 disable= 2142 SetVariable setvar6 disable= 2143 SetVariable setvar7 disable= 2141 SetVariable setvar3 disable=1 142 SetVariable setvar4 disable=1 143 SetVariable setvar5 disable=1 144 SetVariable setvar6 disable=1 145 SetVariable setvar7 disable=1 144 146 break 145 147 case "check3": // SuperFormula 146 148 gRadioVal= 4 147 SetVariable setvar0 disable= 2148 SetVariable setvar1 disable= 2149 SetVariable setvar2 disable= 2150 SetVariable setvar3 disable= 2149 SetVariable setvar0 disable=1 150 SetVariable setvar1 disable=1 151 SetVariable setvar2 disable=1 152 SetVariable setvar3 disable=1 151 153 SetVariable setvar4 disable=0 152 154 SetVariable setvar5 disable=0 … … 251 253 End 252 254 253 255 Function PointCloudButtonProc(ba) : ButtonControl 256 STRUCT WMButtonAction &ba 257 258 switch( ba.eventCode ) 259 case 2: // mouse up 260 // click code here 261 Execute "mat_as_3dCloud()" 262 263 break 264 case -1: // control being killed 265 break 266 endswitch 267 268 return 0 269 End 254 270 255 271 … … 412 428 // will plot either the 2d or 3d version, whichever was most recently 413 429 // calculated -- the M_parametric wave is plotted 414 Window Gizmo_superSurface() : GizmoPlot 430 Proc Gizmo_superSurface() 415 431 PauseUpdate; Silent 1 // building window... 416 432 // Building Gizmo 7 window... … … 621 637 // execute mat = voxW, then the voxelgram can be FFT'd, or Debye's method 622 638 // 623 Window Gizmo_superVox() : GizmoPlot 639 Proc Gizmo_superVox() 624 640 PauseUpdate; Silent 1 // building window... 625 641 // Building Gizmo 7 window... … … 780 796 // change the isoValue to plot a different surface 781 797 // 782 Window Gizmo_Isosurface() : GizmoPlot 798 Proc Gizmo_Isosurface() 783 799 PauseUpdate; Silent 1 // building window... 784 800 // Building Gizmo 7 window... … … 818 834 // viewed 819 835 // 820 Windowmat_as_3dCloud() : GizmoPlot836 Proc mat_as_3dCloud() : GizmoPlot 821 837 PauseUpdate; Silent 1 // building window... 822 838 // Building Gizmo 7 window... -
sans/Dev/trunk/NCNR_User_Procedures/Common/NIST_XML_v40.ipf
r994 r1091 4 4 5 5 6 #if( Exists("XmlOpenFile") ) 6 //#if( exists("XmlOpenFile") && exists("NCNR_VSANS") ) 7 #if( exists("XmlOpenFile") && exists("NCNR_VSANS") ) 7 8 8 9 #include "cansasXML", version >= 1.10 -
sans/Dev/trunk/NCNR_User_Procedures/Common/Packages/PlotManager/PlotUtilsMacro_v40.ipf
r1079 r1091 1205 1205 tmp = FunctionList("*_proto",";","KIND:10") //prototypes 1206 1206 list = RemoveFromList(tmp, list ,";") 1207 1207 1208 1208 1209 //prototypes that show up if GF is loaded 1209 1210 list = RemoveFromList("GFFitFuncTemplate", list) … … 1348 1349 // from 2017-2018 VSANS reduction 1349 1350 list = RemoveFromList("V_BroadPeak_Pix2D;V_BroadPeak_Pix2D_noThread;V_CleanupTimes;V_I_BroadPeak_Pix2D;V_IndexForHistogram;V_MakeFibonacciWave;V_UpdatePix2Mat;xJointHistogram;",list,";") 1350 1351 1352 tmp = FunctionList("*X_",";","KIND:10") // dummy functions with "X_" at the end, for vsans (2018) 1353 list = RemoveFromList(tmp, list ,";") 1354 1355 list = RemoveFromList("Integrate_BuiltIn;intgrnd;V_WB_testKernel;",list,";") 1356 1357 1351 1358 list = SortList(list) 1352 1359 return(list) -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/USANS/WriteUSANSData.ipf
r994 r1091 204 204 ///Need to think about consolidation of functions. 205 205 206 #if( Exists("XmlOpenFile") ) 206 //#if( Exists("XmlOpenFile") ) 207 #if( exists("XmlOpenFile") && exists("NCNR_VSANS") ) 208 207 209 208 210 Function WriteXMLUSANSWaves(type,fullpath,lo,hi,dialog) -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_EventModeProcessing.ipf
r1060 r1091 365 365 case 2: // mouse up 366 366 // click code here 367 v_tic() 368 printf "Show rescaled time graph = " 367 369 Execute "V_ShowRescaledTimeGraph()" 370 v_toc() 368 371 // 372 v_tic() 373 printf "calculate and show differential = " 369 374 V_DifferentiatedTime() 375 v_toc() 370 376 // 371 377 break … … 958 964 959 965 966 Variable t1 = ticks 960 967 SetDataFolder root:Packages:NIST:VSANS:Event: 961 968 … … 1006 1013 // 1007 1014 1008 //tic() 1015 1009 1016 Wave timePt=timePt 1010 1017 Wave xLoc=xLoc 1011 1018 Wave yLoc=yLoc 1012 1019 V_CleanupTimes(xLoc,yLoc,timePt) //remove zeroes 1013 //toc()1014 1020 1015 1021 NVAR gResol = root:Packages:NIST:VSANS:Event:gResol //timeStep in clock frequency (Hz) … … 1023 1029 // -- the time scaling is NOT done. it is still in raw ticks. 1024 1030 // 1031 1025 1032 if(mode == MODE_STREAM) // continuous "Stream" mode - start from zero 1033 v_tic() 1034 printf "Duplicate wave = " 1026 1035 Duplicate/O timePt rescaledTime 1036 v_toc() 1037 v_tic() 1038 printf "rescale time = " 1027 1039 rescaledTime = 1*(timePt-timePt[0]) //convert to nanoseconds and start from zero 1040 v_toc() 1041 v_tic() 1042 printf "find wave Max = " 1028 1043 t_longest = waveMax(rescaledTime) //should be the last point 1044 v_toc() 1029 1045 endif 1046 1030 1047 1031 1048 if(mode == MODE_OSCILL) // oscillatory mode - don't adjust the times, we get periodic t0 to reset t=0 … … 1051 1068 SetDataFolder root: 1052 1069 1070 Variable t2 = ticks 1071 1053 1072 STRUCT WMButtonAction ba 1054 1073 ba.eventCode = 2 1055 1074 V_ShowEventDataButtonProc(ba) 1056 1075 1076 Variable t3 = ticks 1077 1078 Print "load and process (s) = ",(t2-t1)/60.15 1079 Print "Overall including graphs (s) = ",(t3-t1)/60.15 1057 1080 return(0) 1058 1081 End -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_HDF5_RW_Utils.ipf
r1075 r1091 1090 1090 1091 1091 Variable fileID 1092 HDF5CreateFile/P=home /O /Z fileID as filename 1092 PathInfo home 1093 if(V_flag == 1) 1094 HDF5CreateFile/P=home /O /Z fileID as filename 1095 else 1096 HDF5CreateFile /O/I /Z fileID as filename 1097 endif 1093 1098 if (V_flag != 0) 1094 1099 Print "HDF5CreateFile failed" -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Initialize.ipf
r1082 r1091 114 114 Main_VSANS_Panel() 115 115 Endif 116 // ResizeCmdWindow()116 // V_ResizeCmdWindow() 117 117 118 118 // TODO - be sure that NCNR is defined correctly … … 362 362 // command window is always visible at startup of the macros. No need for a hook function 363 363 // 364 Function ResizeCmdWindow()364 Function V_ResizeCmdWindow() 365 365 366 366 String str=IgorInfo(0),rect="",platform=igorinfo(2) -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_MainPanel.ipf
r1086 r1091 24 24 // x- there could be a default mask, or look for the mask that is speficied in the 25 25 // next file that is read in from the path 26 Proc PickPath_MainButtonProc(ctrlName) : ButtonControl26 Proc V_PickPath_MainButtonProc(ctrlName) : ButtonControl 27 27 String ctrlName 28 28 … … 45 45 End 46 46 47 Proc DrawMask_MainButtonProc(ctrlName) : ButtonControl47 Proc V_DrawMask_MainButtonProc(ctrlName) : ButtonControl 48 48 String ctrlName 49 49 … … 55 55 // this will only load the data into RAW, overwriting whatever is there. no copy is put in rawVSANS 56 56 // 57 Proc DisplayMainButtonProc(ctrlName) : ButtonControl57 Proc V_DisplayMainButtonProc(ctrlName) : ButtonControl 58 58 String ctrlName 59 59 … … 74 74 End 75 75 76 Proc PatchMainButtonProc(ctrlName) : ButtonControl76 Proc V_PatchMainButtonProc(ctrlName) : ButtonControl 77 77 String ctrlName 78 78 … … 80 80 End 81 81 82 Proc Patch_XY_MainButtonProc(ctrlName) : ButtonControl82 Proc V_Patch_XY_MainButtonProc(ctrlName) : ButtonControl 83 83 String ctrlName 84 84 … … 86 86 End 87 87 88 Proc Patch_DeadTime_MainButtonProc(ctrlName) : ButtonControl88 Proc V_Patch_DeadTime_MainButtonProc(ctrlName) : ButtonControl 89 89 String ctrlName 90 90 … … 92 92 End 93 93 94 Proc Patch_Calib_MainButtonProc(ctrlName) : ButtonControl94 Proc V_Patch_Calib_MainButtonProc(ctrlName) : ButtonControl 95 95 String ctrlName 96 96 … … 99 99 100 100 101 Proc TransMainButtonProc(ctrlName) : ButtonControl101 Proc V_TransMainButtonProc(ctrlName) : ButtonControl 102 102 String ctrlName 103 103 … … 105 105 End 106 106 107 Proc BuildProtocol_MainButtonProc(ctrlName) : ButtonControl107 Proc V_BuildProtocol_MainButtonProc(ctrlName) : ButtonControl 108 108 String ctrlName 109 109 … … 111 111 End 112 112 113 Proc ReduceAFile_MainButtonProc(ctrlName) : ButtonControl113 Proc V_ReduceAFile_MainButtonProc(ctrlName) : ButtonControl 114 114 String ctrlName 115 115 … … 118 118 End 119 119 120 Proc ReduceMultiple_MainButtonProc(ctrlName) : ButtonControl120 Proc V_ReduceMultiple_MainButtonProc(ctrlName) : ButtonControl 121 121 String ctrlName 122 122 … … 124 124 End 125 125 126 Proc Plot1D_MainButtonProc(ctrlName) : ButtonControl126 Proc V_Plot1D_MainButtonProc(ctrlName) : ButtonControl 127 127 String ctrlName 128 128 … … 131 131 End 132 132 133 Proc Sort1D_MainButtonProc(ctrlName) : ButtonControl133 Proc V_Sort1D_MainButtonProc(ctrlName) : ButtonControl 134 134 String ctrlName 135 135 … … 138 138 End 139 139 140 Proc Combine1D_MainButtonProc(ctrlName) : ButtonControl140 Proc V_Combine1D_MainButtonProc(ctrlName) : ButtonControl 141 141 String ctrlName 142 142 … … 146 146 147 147 148 Proc Fit1D_MainButtonProc(ctrlName) : ButtonControl148 Proc V_Fit1D_MainButtonProc(ctrlName) : ButtonControl 149 149 String ctrlName 150 150 … … 154 154 End 155 155 156 //Proc FitRPA_MainButtonProc(ctrlName) : ButtonControl156 //Proc V_FitRPA_MainButtonProc(ctrlName) : ButtonControl 157 157 // String ctrlName 158 158 // … … 160 160 //End 161 161 162 Proc Subtract1D_MainButtonProc(ctrlName) : ButtonControl162 Proc V_Subtract1D_MainButtonProc(ctrlName) : ButtonControl 163 163 String ctrlName 164 164 … … 166 166 End 167 167 168 Proc Arithmetic1D_MainButtonProc(ctrlName) : ButtonControl168 Proc V_Arithmetic1D_MainButtonProc(ctrlName) : ButtonControl 169 169 String ctrlName 170 170 … … 174 174 End 175 175 176 Proc DisplayInterm_MainButtonProc(ctrlName) : ButtonControl176 Proc V_DisplayInterm_MainButtonProc(ctrlName) : ButtonControl 177 177 String ctrlName 178 178 … … 182 182 // 183 183 // - fill in with a proper reader that will display the mask(s) 184 Proc ReadMask_MainButtonProc(ctrlName) : ButtonControl184 Proc V_ReadMask_MainButtonProc(ctrlName) : ButtonControl 185 185 String ctrlName 186 186 … … 189 189 End 190 190 191 Proc Draw3D_MainButtonProc(ctrlName) : ButtonControl191 Proc V_Draw3D_MainButtonProc(ctrlName) : ButtonControl 192 192 String ctrlName 193 193 … … 199 199 200 200 ////on Misc Ops tab, generates a notebook 201 //Proc CatShort_MainButtonProc(ctrlName) : ButtonControl201 //Proc V_CatShort_MainButtonProc(ctrlName) : ButtonControl 202 202 // String ctrlName 203 203 // … … 206 206 207 207 //button is labeled "File Catalog" 208 Proc CatVShort_MainButtonProc(ctrlName) : ButtonControl208 Proc V_CatVShort_MainButtonProc(ctrlName) : ButtonControl 209 209 String ctrlName 210 210 … … 212 212 End 213 213 214 Proc CatSort_MainButtonProc(ctrlName) : ButtonControl214 Proc V_CatSort_MainButtonProc(ctrlName) : ButtonControl 215 215 String ctrlName 216 216 … … 218 218 End 219 219 220 Proc ShowCatShort_MainButtonProc(ctrlName) : ButtonControl220 Proc V_ShowCatShort_MainButtonProc(ctrlName) : ButtonControl 221 221 String ctrlName 222 222 … … 224 224 End 225 225 226 Proc ShowSchematic_MainButtonProc(ctrlName) : ButtonControl226 Proc V_ShowSchematic_MainButtonProc(ctrlName) : ButtonControl 227 227 String ctrlName 228 228 … … 235 235 End 236 236 237 Proc ShowAvePanel_MainButtonProc(ctrlName) : ButtonControl237 Proc V_ShowAvePanel_MainButtonProc(ctrlName) : ButtonControl 238 238 String ctrlName 239 239 … … 241 241 End 242 242 243 Proc HelpMainButtonProc(ctrlName) : ButtonControl243 Proc V_HelpMainButtonProc(ctrlName) : ButtonControl 244 244 String ctrlName 245 245 DisplayHelpTopic/Z/K=1 "VSANS Data Reduction Tutorial" … … 249 249 End 250 250 251 Proc ShowTilePanel_MainButtonProc(ctrlName) : ButtonControl251 Proc V_ShowTilePanel_MainButtonProc(ctrlName) : ButtonControl 252 252 String ctrlName 253 253 … … 260 260 End 261 261 262 Proc NonLinTubes_MainButtonProc(ctrlName) : ButtonControl262 Proc V_NonLinTubes_MainButtonProc(ctrlName) : ButtonControl 263 263 String ctrlName 264 264 … … 266 266 End 267 267 268 Proc CopyWork_MainButtonProc(ctrlName) : ButtonControl268 Proc V_CopyWork_MainButtonProc(ctrlName) : ButtonControl 269 269 String ctrlName 270 270 … … 272 272 End 273 273 274 Proc PRODIV_MainButtonProc(ctrlName) : ButtonControl274 Proc V_PRODIV_MainButtonProc(ctrlName) : ButtonControl 275 275 String ctrlName 276 276 … … 287 287 288 288 289 Proc WorkMath_MainButtonProc(ctrlName) : ButtonControl289 Proc V_WorkMath_MainButtonProc(ctrlName) : ButtonControl 290 290 String ctrlName 291 291 … … 293 293 End 294 294 295 //Proc TISANE_MainButtonProc(ctrlName) : ButtonControl295 //Proc V_TISANE_MainButtonProc(ctrlName) : ButtonControl 296 296 // String ctrlName 297 297 // … … 305 305 //End 306 306 307 Proc Event_MainButtonProc(ctrlName) : ButtonControl307 Proc V_Event_MainButtonProc(ctrlName) : ButtonControl 308 308 String ctrlName 309 309 … … 317 317 End 318 318 319 Proc Raw2ASCII_MainButtonProc(ctrlName) : ButtonControl319 Proc V_Raw2ASCII_MainButtonProc(ctrlName) : ButtonControl 320 320 String ctrlName 321 321 … … 323 323 End 324 324 325 Proc RealTime_MainButtonProc(ctrlName) : ButtonControl325 Proc V_RealTime_MainButtonProc(ctrlName) : ButtonControl 326 326 String ctrlName 327 327 … … 330 330 DoAlert 0,"This operation is not available in this set of macros" 331 331 else 332 Show_RealTime_Panel()333 endif 334 End 335 336 Proc RTReduce_MainButtonProc(ctrlName) : ButtonControl332 V_Show_RealTime_Panel() 333 endif 334 End 335 336 Proc V_RTReduce_MainButtonProc(ctrlName) : ButtonControl 337 337 String ctrlName 338 338 … … 340 340 End 341 341 342 Proc Preferences_MainButtonProc(ctrlName) : ButtonControl342 Proc V_Preferences_MainButtonProc(ctrlName) : ButtonControl 343 343 String ctrlName 344 344 … … 347 347 348 348 349 Proc DataTree_MainButtonProc(ctrlName) : ButtonControl349 Proc V_DataTree_MainButtonProc(ctrlName) : ButtonControl 350 350 String ctrlName 351 351 … … 370 370 ////// 371 371 //on main portion of panel 372 Button MainButtonA,pos={8,8},size={80,20},title="Pick Path",proc= PickPath_MainButtonProc372 Button MainButtonA,pos={8,8},size={80,20},title="Pick Path",proc=V_PickPath_MainButtonProc 373 373 Button MainButtonA,help={"Pick the local data folder that contains the VSANS data"} 374 Button MainButtonB,pos={100,8},size={90,20},proc= CatVShort_MainButtonProc,title="File Catalog"374 Button MainButtonB,pos={100,8},size={90,20},proc=V_CatVShort_MainButtonProc,title="File Catalog" 375 375 Button MainButtonB,help={"This will generate a condensed CATalog table of all files in a specified local folder"} 376 Button MainButtonC,pos={250,8},size={50,20},proc= HelpMainButtonProc,title="Help"376 Button MainButtonC,pos={250,8},size={50,20},proc=V_HelpMainButtonProc,title="Help" 377 377 Button MainButtonC,help={"Display the help file"} 378 Button MainButtonD,pos={320,8},size={80,20},proc= SR_OpenTracTicketPage,title="Feedback"378 Button MainButtonD,pos={320,8},size={80,20},proc=V_SR_OpenTracTicketPage,title="Feedback" 379 379 Button MainButtonD,help={"Submit bug reports or feature requests"} 380 380 381 TabControl MainTab,pos={7,49},size={410,202},tabLabel(0)="Raw Data",proc= MainTabProc381 TabControl MainTab,pos={7,49},size={410,202},tabLabel(0)="Raw Data",proc=V_MainTabProc 382 382 TabControl MainTab,tabLabel(1)="Reduction",tabLabel(2)="1-D Ops",tabLabel(3)="2-D Ops",tabLabel(4)="Misc Ops" 383 383 TabControl MainTab,value=0 … … 386 386 387 387 //on tab(0) - Raw Data - initially visible 388 Button MainButton_0a,pos={15,90},size={130,20},proc= DisplayMainButtonProc,title="Display Raw Data"388 Button MainButton_0a,pos={15,90},size={130,20},proc=V_DisplayMainButtonProc,title="Display Raw Data" 389 389 Button MainButton_0a,help={"Display will load and plot a single 2-D raw data file"} 390 Button MainButton_0b,pos={15,120},size={70,20},proc= PatchMainButtonProc,title="Patch"390 Button MainButton_0b,pos={15,120},size={70,20},proc=V_PatchMainButtonProc,title="Patch" 391 391 Button MainButton_0b,help={"Patch will update incorrect information in raw data headers"} 392 Button MainButton_0c,pos={15,150},size={110,20},proc= TransMainButtonProc,title="Transmission"392 Button MainButton_0c,pos={15,150},size={110,20},proc=V_TransMainButtonProc,title="Transmission" 393 393 Button MainButton_0c,help={"Shows the panel which allows calculation of sample transmissions and patching values into raw data headers"} 394 Button MainButton_0d,pos={15,180},size={130,20},proc= RealTime_MainButtonProc,title="RealTime Display"394 Button MainButton_0d,pos={15,180},size={130,20},proc=V_RealTime_MainButtonProc,title="RealTime Display" 395 395 Button MainButton_0d,help={"Shows the panel for control of the RealTime data display. Only used during data collection"} 396 Button MainButton_0e,pos={15,210},size={130,20},proc= CatSort_MainButtonProc,title="Sort Catalog"396 Button MainButton_0e,pos={15,210},size={130,20},proc=V_CatSort_MainButtonProc,title="Sort Catalog" 397 397 Button MainButton_0e,help={"Sort the Data Catalog, courtesy of ANSTO"} 398 Button MainButton_0f,pos={300,90},size={90,20},proc= DataTree_MainButtonProc,title="Data Tree"398 Button MainButton_0f,pos={300,90},size={90,20},proc=V_DataTree_MainButtonProc,title="Data Tree" 399 399 Button MainButton_0f,help={"Show the header and data tree"} 400 Button MainButton_0g,pos={170,180},size={110,20},proc= RTReduce_MainButtonProc,title="RT Reduction"400 Button MainButton_0g,pos={170,180},size={110,20},proc=V_RTReduce_MainButtonProc,title="RT Reduction" 401 401 Button MainButton_0g,help={"Reduce live (incomplete) data files during acquisition"} 402 Button MainButton_0h,pos={170,90},size={90,20},proc= Patch_XY_MainButtonProc,title="Patch XY"402 Button MainButton_0h,pos={170,90},size={90,20},proc=V_Patch_XY_MainButtonProc,title="Patch XY" 403 403 Button MainButton_0h,help={"Easy patching of XY beam center to multiple files"} 404 Button MainButton_0i,pos={170,120},size={110,20},proc= Patch_DeadTime_MainButtonProc,title="Patch DeadTime"404 Button MainButton_0i,pos={170,120},size={110,20},proc=V_Patch_DeadTime_MainButtonProc,title="Patch DeadTime" 405 405 Button MainButton_0i,help={"Easy patching of dead time tables to multiple files"} 406 Button MainButton_0j,pos={170,150},size={90,20},proc= Patch_Calib_MainButtonProc,title="Patch Calib"406 Button MainButton_0j,pos={170,150},size={90,20},proc=V_Patch_Calib_MainButtonProc,title="Patch Calib" 407 407 Button MainButton_0j,help={"Easy patching of nonlinear calibration tables to multiple files"} 408 408 409 409 //on tab(1) - Reduction 410 Button MainButton_1a,pos={15,90},size={110,20},proc= BuildProtocol_MainButtonProc,title="Build Protocol"410 Button MainButton_1a,pos={15,90},size={110,20},proc=V_BuildProtocol_MainButtonProc,title="Build Protocol" 411 411 Button MainButton_1a,help={"Shows a panel where the CATalog window is used as input for creating a protocol. Can also be used for standard reductions"} 412 // Button MainButton_1b,pos={15,120},size={110,20},proc= ReduceAFile_MainButtonProc,title="Reduce a File"412 // Button MainButton_1b,pos={15,120},size={110,20},proc=V_ReduceAFile_MainButtonProc,title="Reduce a File" 413 413 // Button MainButton_1b,help={"Presents a questionnare for creating a reduction protocol, then reduces a single file"} 414 Button MainButton_1c,pos={15,150},size={160,20},proc= ReduceMultiple_MainButtonProc,title="Reduce Multiple Files"414 Button MainButton_1c,pos={15,150},size={160,20},proc=V_ReduceMultiple_MainButtonProc,title="Reduce Multiple Files" 415 415 Button MainButton_1c,help={"Use for reducing multiple raw datasets after protocol(s) have been created"} 416 // Button MainButton_1d,pos={15,180},size={110,20},proc= ShowCatShort_MainButtonProc,title="Show CAT Table"416 // Button MainButton_1d,pos={15,180},size={110,20},proc=V_ShowCatShort_MainButtonProc,title="Show CAT Table" 417 417 // Button MainButton_1d,help={"This button will bring the CATalog window to the front, if it exists"} 418 418 Button MainButton_1a,disable=1 … … 422 422 423 423 //on tab(2) - 1-D operations 424 Button MainButton_2a,pos={15,90},size={60,20},proc= Plot1D_MainButtonProc,title="Plot"424 Button MainButton_2a,pos={15,90},size={60,20},proc=V_Plot1D_MainButtonProc,title="Plot" 425 425 Button MainButton_2a,help={"Loads and plots a 1-D dataset in the format expected by \"FIT\""} 426 // Button MainButton_2b,pos={15,120},size={60,20},proc= Sort1D_MainButtonProc,title="Sort"426 // Button MainButton_2b,pos={15,120},size={60,20},proc=V_Sort1D_MainButtonProc,title="Sort" 427 427 // Button MainButton_2b,help={"Sorts and combines 2 or 3 separate 1-D datasets into a single file. Use \"Plot\" button to import 1-D data files"} 428 Button MainButton_2c,pos={15,150},size={60,20},proc= Fit1D_MainButtonProc,title="FIT"428 Button MainButton_2c,pos={15,150},size={60,20},proc=V_Fit1D_MainButtonProc,title="FIT" 429 429 Button MainButton_2c,help={"Shows panel for performing a variety of linearized fits to 1-D data files. Use \"Plot\" button to import 1-D data files"} 430 // Button MainButton_2d,pos={15,180},size={60,20},proc= FITRPA_MainButtonProc,title="FIT/RPA"430 // Button MainButton_2d,pos={15,180},size={60,20},proc=V_FITRPA_MainButtonProc,title="FIT/RPA" 431 431 // Button MainButton_2d,help={"Shows panel for performing a fit to a polymer standard."} 432 // Button MainButton_2e,pos={120,90},size={90,20},proc= Subtract1D_MainButtonProc,title="Subtract 1D"432 // Button MainButton_2e,pos={120,90},size={90,20},proc=V_Subtract1D_MainButtonProc,title="Subtract 1D" 433 433 // Button MainButton_2e,help={"Shows panel for subtracting two 1-D data sets"} 434 Button MainButton_2e,pos={120,90},size={110,20},proc= Arithmetic1D_MainButtonProc,title="1D Arithmetic"434 Button MainButton_2e,pos={120,90},size={110,20},proc=V_Arithmetic1D_MainButtonProc,title="1D Arithmetic" 435 435 Button MainButton_2e,help={"Shows panel for doing arithmetic on 1D data sets"} 436 Button MainButton_2f,pos={120,120},size={130,20},proc= Combine1D_MainButtonProc,title="Combine 1D Files"436 Button MainButton_2f,pos={120,120},size={130,20},proc=V_Combine1D_MainButtonProc,title="Combine 1D Files" 437 437 Button MainButton_2f,help={"Shows panel for selecting points to trim before combining files"} 438 438 Button MainButton_2a,disable=1 … … 446 446 447 447 //on tab(3) - 2-D Operations 448 Button MainButton_3a,pos={15,90},size={90,20},proc= DisplayInterm_MainButtonProc,title="Display 2D"448 Button MainButton_3a,pos={15,90},size={90,20},proc=V_DisplayInterm_MainButtonProc,title="Display 2D" 449 449 Button MainButton_3a,help={"Display will plot a 2-D work data file that has previously been created during data reduction"} 450 Button MainButton_3b,pos={15,120},size={90,20},title="Draw Mask",proc= DrawMask_MainButtonProc450 Button MainButton_3b,pos={15,120},size={90,20},title="Draw Mask",proc=V_DrawMask_MainButtonProc 451 451 Button MainButton_3b,help={"Draw a mask file and save it."} 452 Button MainButton_3c,pos={15,150},size={90,20},proc= ReadMask_MainButtonProc,title="Read Mask"452 Button MainButton_3c,pos={15,150},size={90,20},proc=V_ReadMask_MainButtonProc,title="Read Mask" 453 453 Button MainButton_3c,help={"Reads a mask file into the proper work folder"} 454 // Button MainButton_3d,pos={15,180},size={100,20},title="Tile RAW 2D",proc= ShowTilePanel_MainButtonProc454 // Button MainButton_3d,pos={15,180},size={100,20},title="Tile RAW 2D",proc=V_ShowTilePanel_MainButtonProc 455 455 // Button MainButton_3d,help={"Adds selected RAW data files to a layout."} 456 Button MainButton_3e,pos={150,90},size={100,20},title="Copy Work",proc= CopyWork_MainButtonProc456 Button MainButton_3e,pos={150,90},size={100,20},title="Copy Work",proc=V_CopyWork_MainButtonProc 457 457 Button MainButton_3e,help={"Copies WORK data from specified folder to destination folder."} 458 // Button MainButton_3f,pos={150,120},size={110,20},title="WorkFile Math",proc= WorkMath_MainButtonProc458 // Button MainButton_3f,pos={150,120},size={110,20},title="WorkFile Math",proc=V_WorkMath_MainButtonProc 459 459 // Button MainButton_3f,help={"Perfom simple math operations on workfile data"} 460 Button MainButton_3g,pos={150,180},size={100,20},title="Event Data",proc= Event_MainButtonProc460 Button MainButton_3g,pos={150,180},size={100,20},title="Event Data",proc=V_Event_MainButtonProc 461 461 Button MainButton_3g,help={"Manipulate VSANS Event Mode data"} 462 462 … … 470 470 471 471 //on tab(4) - Miscellaneous operations 472 Button MainButton_4a,pos={15,90},size={80,20},proc= Draw3D_MainButtonProc,title="3D Display"472 Button MainButton_4a,pos={15,90},size={80,20},proc=V_Draw3D_MainButtonProc,title="3D Display" 473 473 Button MainButton_4a,help={"Plots a 3-D surface of the selected file type"} 474 // Button MainButton_4b,pos={15,120},size={120,20},proc= ShowSchematic_MainButtonProc,title="Show Schematic"474 // Button MainButton_4b,pos={15,120},size={120,20},proc=V_ShowSchematic_MainButtonProc,title="Show Schematic" 475 475 // Button MainButton_4b,help={"Use this to show a schematic of the data reduction process for a selected sample file and reduction protocol"} 476 // Button MainButton_4c,pos={15,150},size={80,20},proc= ShowAvePanel_MainButtonProc,title="Average"476 // Button MainButton_4c,pos={15,150},size={80,20},proc=V_ShowAvePanel_MainButtonProc,title="Average" 477 477 // Button MainButton_4c,help={"Shows a panel for interactive selection of the 1-D averaging step"} 478 // Button MainButton_4d,pos={15,180},size={110,20},proc= CatShort_MainButtonProc,title="CAT/Notebook"478 // Button MainButton_4d,pos={15,180},size={110,20},proc=V_CatShort_MainButtonProc,title="CAT/Notebook" 479 479 // Button MainButton_4d,help={"This will generate a CATalog notebook of all files in a specified local folder"} 480 Button MainButton_4e,pos={180,90},size={130,20},proc= NonLinTubes_MainButtonProc,title="Fit NonLinear Tubes"480 Button MainButton_4e,pos={180,90},size={130,20},proc=V_NonLinTubes_MainButtonProc,title="Fit NonLinear Tubes" 481 481 Button MainButton_4e,help={""} 482 Button MainButton_4f,pos={180,120},size={130,20},proc= PRODIV_MainButtonProc,title="Make DIV file"482 Button MainButton_4f,pos={180,120},size={130,20},proc=V_PRODIV_MainButtonProc,title="Make DIV file" 483 483 Button MainButton_4f,help={"Displays panels and outlines the steps for generating a detector sensitivity file"} 484 // Button MainButton_4g,pos={180,150},size={130,20},proc= Raw2ASCII_MainButtonProc,title="RAW ASCII Export"484 // Button MainButton_4g,pos={180,150},size={130,20},proc=V_Raw2ASCII_MainButtonProc,title="RAW ASCII Export" 485 485 // Button MainButton_4g,help={"Exports selected RAW (2D) data file(s) as ASCII, either as pixel values or I(Qx,Qy)"} 486 Button MainButton_4h,pos={180,180},size={130,20},proc= Preferences_MainButtonProc,title="Preferences"486 Button MainButton_4h,pos={180,180},size={130,20},proc=V_Preferences_MainButtonProc,title="Preferences" 487 487 Button MainButton_4h,help={"Sets user preferences for selected parameters"} 488 488 … … 505 505 // in this way, buttons will always be drawn correctly.. 506 506 // 507 Function MainTabProc(name,tab)507 Function V_MainTabProc(name,tab) 508 508 String name 509 509 Variable tab … … 524 524 525 525 // 526 Function SR_OpenTracTicketPage(ctrlName)526 Function V_SR_OpenTracTicketPage(ctrlName) 527 527 String ctrlName 528 528 DoAlert 1,"Your web browser will open to a page where you can submit your bug report or feature request. OK?" -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_PatchFiles.ipf
r1084 r1091 671 671 //that is semicolon delimited, and is suitable for display in a popup menu 672 672 // 673 Function/S xGetValidPatchPopupList()673 Function/S V_xGetValidPatchPopupList() 674 674 675 675 //make sure that path exists -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_RealTimeUpdate.ipf
r1035 r1091 36 36 // - always initialize to make sure that the background task is properly set 37 37 // 38 Proc Show_RealTime_Panel()38 Proc V_Show_RealTime_Panel() 39 39 V_Init_RT() //always init, data folders and globals are created here 40 40 DoWindow/F VSANS_RT_Panel -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_WhiteBeamDistribution.ipf
r1090 r1091 11 11 // distribution. 12 12 // 13 // using Integrate function -- 13 // using Integrate function -- find the normalization value 14 14 // 15 15 // integral = 20926 (cts*A) for "top" … … 17 17 // integration of interpolated data (100 pts) = 20051 (3 A to 9 A) 18 18 // 19 // 20 // gives an average wavelength of 5.302 A 21 // median ~ 5.97 A 19 22 // 20 23 // … … 34 37 35 38 if(lam < 3.84) 36 return(23715 - 5649*lam)39 return(23715 - 5649*lam) 37 40 endif 38 41 39 // the "middle" of the spikes42 //// the "middle" of the spikes 40 43 // if(lam < 4.12) 41 44 // return(-84962 + 22634*lam) … … 45 48 // endif 46 49 47 // the "top" of the spikes50 //// the "top" of the spikes 48 51 if(lam < 4.16) 49 52 return(-84962 + 22634*lam) -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_WhiteBeamSmear.ipf
r1090 r1091 102 102 103 103 // using the "trangular" distribution (cange the function call) 104 //loLim = 4/5.3105 //upLim = 8/5.3104 loLim = 4/5.3 105 upLim = 8/5.3 106 106 107 107 answer_Rom_WB = Integrate_BuiltIn(cw,loLim,upLim,qVals)
Note: See TracChangeset
for help on using the changeset viewer.