Changeset 836 for sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS
- Timestamp:
- Feb 17, 2012 12:04:13 PM (11 years ago)
- Location:
- sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/RawWindowHook.ipf
r829 r836 112 112 //show the "next" buttons 113 113 //these buttons should only be available in RAW data type 114 Button backOne size={20,20},pos={350,23},proc=BackOneFileButtonProc,title="<"114 Button backOne win=SANS_Data,size={20,20},pos={350,23},proc=BackOneFileButtonProc,title="<" 115 115 Button backOne help={"Display the previous RAW data file run number"} 116 Button forwardOne size={20,20},pos={375,23},proc=ForwardOneFileButtonProc,title=">"116 Button forwardOne win=SANS_Data,size={20,20},pos={375,23},proc=ForwardOneFileButtonProc,title=">" 117 117 Button forwardOne help={"Display the next RAW data file run number"} 118 118 // 119 119 else 120 120 //kill them 121 KillControl backOne122 KillControl forwardOne121 KillControl/W=SANS_Data backOne 122 KillControl/W=SANS_Data forwardOne 123 123 Endif 124 124 125 125 //reset the slider values to 0,1 126 Slider loSlide ,value=0127 Slider hiSlide ,value=1126 Slider loSlide win=SANS_Data,value=0 127 Slider hiSlide win=SANS_Data,value=1 128 128 129 129 //remove old data and add new data to it … … 132 132 WAVE data = $(curPath + ":data") 133 133 WAVE NIHColors = $"root:myGlobals:NIHColors" 134 AppendImage data134 AppendImage/W=SANS_Data data 135 135 WaveStats/Q $(curPath + ":data") 136 136 if(cmpstr(cur_folder,"MSK")==0) 137 ModifyImage data ctab={0,1,BlueRedGreen,0}137 ModifyImage/W=SANS_Data data ctab={0,1,BlueRedGreen,0} 138 138 else 139 139 //Call the procedure that would normally be called if the sliders were moved … … 144 144 endif 145 145 //make the pixels square, color the backgrounds 146 ModifyGraph width={plan,1,bottom,left},mirror=0147 ModifyGraph axisenab(bottom)={0,0.7}148 ModifyGraph axOffset(left)=-3149 ModifyGraph standoff=0150 ModifyGraph wbRGB=(65535,54611,49151),gbRGB=(65535,54611,49151),cbRGB=(1,52428,52428)146 ModifyGraph/W=SANS_Data width={plan,1,bottom,left},mirror=0 147 ModifyGraph/W=SANS_Data axisenab(bottom)={0,0.7} 148 ModifyGraph/W=SANS_Data axOffset(left)=-3 149 ModifyGraph/W=SANS_Data standoff=0 150 ModifyGraph/W=SANS_Data wbRGB=(65535,54611,49151),gbRGB=(65535,54611,49151),cbRGB=(1,52428,52428) 151 151 152 152 //add the qx and qy axes … … 155 155 Set_Q_Axes(q_x_axis,q_y_axis,curPath) 156 156 RemoveFromGraph/Z q_x_axis,q_y_axis 157 AppendToGraph/ T q_x_axis158 AppendToGraph/ R=Right_Q q_y_axis //plot on a free axis, crossing at x=127 (pixelsX)159 ModifyGraph freePos(Right_q)={pixelsX-1,bottom}160 ModifyGraph minor(top)=1,minor(Right_Q)=1,lowTrip(top)=1e-05,lowTrip(Right_Q)=1e-05161 ModifyGraph mode(q_x_axis)=2,mode(q_y_axis)=2 //dots162 ModifyGraph axisEnab(top)={0,0.7}157 AppendToGraph/W=SANS_Data/T q_x_axis 158 AppendToGraph/W=SANS_Data/R=Right_Q q_y_axis //plot on a free axis, crossing at x=127 (pixelsX) 159 ModifyGraph/W=SANS_Data freePos(Right_q)={pixelsX-1,bottom} 160 ModifyGraph/W=SANS_Data minor(top)=1,minor(Right_Q)=1,lowTrip(top)=1e-05,lowTrip(Right_Q)=1e-05 161 ModifyGraph/W=SANS_Data mode(q_x_axis)=2,mode(q_y_axis)=2 //dots 162 ModifyGraph/W=SANS_Data axisEnab(top)={0,0.7} 163 163 164 164 //add the color bar 165 ColorScale/ N=colBar/A=RT/X=-3/Y=-1.5/Z=1 image=data, heightPct=100, widthPct=4,notation=1166 ColorScale/ C/N=colBar/B=(65535,60076,49151)165 ColorScale/W=SANS_Data/N=colBar/A=RT/X=-3/Y=-1.5/Z=1 image=data, heightPct=100, widthPct=4,notation=1 166 ColorScale/W=SANS_Data/C/N=colBar/B=(65535,60076,49151) 167 167 168 168 //update the displayed filename, using FileList in the current data folder … … 176 176 //always set to linear 177 177 //re-draw the data on the graph to make sure "data" from the current folder is being used 178 ControlInfo bisLog178 ControlInfo/W=SANS_Data bisLog 179 179 if(V_flag ==1) //if bisLog exists, this will return true 180 Button bisLog, title="isLin",rename=bisLin180 Button bisLog,win=SANS_Data,title="isLin",rename=bisLin 181 181 endif 182 182 //now that button state and data are sure to match (both are linear) -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/WorkFileUtils.ipf
r824 r836 1217 1217 NVAR pixelsY = root:myGlobals:gNPixelsY 1218 1218 1219 WAVE/Z data1=$("root:Packages:NIST:"+workMathStr+"File_1: data")1219 WAVE/Z data1=$("root:Packages:NIST:"+workMathStr+"File_1:linear_data") 1220 1220 WAVE/Z err1=$("root:Packages:NIST:"+workMathStr+"File_1:linear_data_error") 1221 1221 … … 1230 1230 //Load set #2 1231 1231 Load_NamedASC_File(pathStr+str2,workMathStr+"File_2") 1232 WAVE/Z data2=$("root:Packages:NIST:"+workMathStr+"File_2: data")1232 WAVE/Z data2=$("root:Packages:NIST:"+workMathStr+"File_2:linear_data") 1233 1233 WAVE/Z err2=$("root:Packages:NIST:"+workMathStr+"File_2:linear_data_error") 1234 1234 Endif … … 1237 1237 1238 1238 //now that we know that data exists, convert each of the operands to linear scale 1239 ConvertFolderToLinearScale(workMathStr+"File_1") 1240 If(cmpstr(str2,"UNIT MATRIX")!=0) 1241 ConvertFolderToLinearScale(workMathStr+"File_2") //don't need to convert unit matrix to linear 1242 endif 1239 // ConvertFolderToLinearScale(workMathStr+"File_1") 1240 // If(cmpstr(str2,"UNIT MATRIX")!=0) 1241 // ConvertFolderToLinearScale(workMathStr+"File_2") //don't need to convert unit matrix to linear 1242 // endif 1243 1243 1244 //copy contents of str1 folder to dest and create the wave ref (it will exist) 1244 1245 CopyWorkContents(workMathStr+"File_1",workMathStr+dest) 1245 WAVE/Z destData=$("root:Packages:NIST:"+workMathStr+dest+":data") 1246 WAVE/Z destData=$("root:Packages:NIST:"+workMathStr+dest+":linear_data") 1247 WAVE/Z destData_log=$("root:Packages:NIST:"+workMathStr+dest+":data") 1246 1248 WAVE/Z destErr=$("root:Packages:NIST:"+workMathStr+dest+":linear_data_error") 1247 1249 … … 1270 1272 endswitch 1271 1273 1274 destData_log = log(destData) //for display 1272 1275 //show the result 1273 1276 WorkMath_Display_PopMenuProc("",0,"Result") 1277 1278 PopupMenu popup4 win=WorkFileMath,mode=3 //3rd item selected == Result 1274 1279 End 1275 1280 … … 1338 1343 // if file1 or file2, load in the data and display 1339 1344 if(cmpstr(popStr,"File_1")==0) 1340 ControlInfo popup01345 ControlInfo/W=WorkFileMath popup0 1341 1346 str1 = S_Value 1342 1347 Endif 1343 1348 if(cmpstr(popStr,"File_2")==0) 1344 ControlInfo popup11349 ControlInfo/W=WorkFileMath popup1 1345 1350 str1 = S_Value 1346 1351 Endif
Note: See TracChangeset
for help on using the changeset viewer.