- Timestamp:
- Jul 20, 2017 3:22:34 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_PatchFiles.ipf
r1034 r1055 2147 2147 String fname,detStr 2148 2148 2149 Wave xCtr_ pix = root:Packages:NIST:VSANS:Globals:Patch:xCtr_pix2150 Wave yCtr_ pix = root:Packages:NIST:VSANS:Globals:Patch:yCtr_pix2149 Wave xCtr_cm = root:Packages:NIST:VSANS:Globals:Patch:xCtr_cm 2150 Wave yCtr_cm = root:Packages:NIST:VSANS:Globals:Patch:yCtr_cm 2151 2151 Wave/T panelW = root:Packages:NIST:VSANS:Globals:Patch:panelW 2152 2152 2153 2153 // check the dimensions of the waves (9) 2154 if (DimSize(xCtr_ pix, 0) != 9 || DimSize(yCtr_pix, 0) != 9 || DimSize(panelW, 0) != 9)2154 if (DimSize(xCtr_cm, 0) != 9 || DimSize(yCtr_cm, 0) != 9 || DimSize(panelW, 0) != 9) 2155 2155 Abort "waves are not of proper dimension (9)" 2156 2156 endif … … 2163 2163 for(ii=0;ii<ItemsInList(ksDetectorListAll);ii+=1) 2164 2164 detStr = panelW[ii] 2165 V_writeDet_beam_center_x(fname,detStr,xCtr_ pix[ii])2166 V_writeDet_beam_center_y(fname,detStr,yCtr_ pix[ii])2165 V_writeDet_beam_center_x(fname,detStr,xCtr_cm[ii]) 2166 V_writeDet_beam_center_y(fname,detStr,yCtr_cm[ii]) 2167 2167 endfor 2168 2168 … … 2183 2183 Variable ii,jj 2184 2184 2185 Wave xCtr_ pix = root:Packages:NIST:VSANS:Globals:Patch:xCtr_pix2186 Wave yCtr_ pix = root:Packages:NIST:VSANS:Globals:Patch:yCtr_pix2185 Wave xCtr_cm = root:Packages:NIST:VSANS:Globals:Patch:xCtr_cm 2186 Wave yCtr_cm = root:Packages:NIST:VSANS:Globals:Patch:yCtr_cm 2187 2187 Wave/T panelW = root:Packages:NIST:VSANS:Globals:Patch:panelW 2188 2188 … … 2194 2194 detStr = StringFromList(ii, ksDetectorListAll, ";") 2195 2195 panelW[ii] = detStr 2196 xCtr_ pix[ii] = V_getDet_beam_center_x(fname,detStr)2197 yCtr_ pix[ii] = V_getDet_beam_center_y(fname,detStr)2196 xCtr_cm[ii] = V_getDet_beam_center_x(fname,detStr) //these values are in cm, not pixels 2197 yCtr_cm[ii] = V_getDet_beam_center_y(fname,detStr) 2198 2198 endfor 2199 2199 … … 2217 2217 NewDataFolder/O/S root:Packages:NIST:VSANS:Globals:Patch 2218 2218 2219 Make/O/D/N=9 xCtr_ pix,yCtr_pix2219 Make/O/D/N=9 xCtr_cm,yCtr_cm 2220 2220 Make/O/T/N=9 panelW 2221 2221 … … 2248 2248 DrawText 21,258,"Write to all files (inlcusive)" 2249 2249 SetDrawEnv fsize= 14,fstyle= 1 2250 DrawText 262,30,"Beam Center ( pixels)"2250 DrawText 262,30,"Beam Center (cm)" 2251 2251 DrawText 20,133,"Run Number(s)" 2252 2252 … … 2261 2261 SetDataFolder root:Packages:NIST:VSANS:Globals:Patch 2262 2262 // display the wave 2263 Edit/W=(180,40,500,370)/HOST=# panelW,xCtr_ pix,yCtr_pix2263 Edit/W=(180,40,500,370)/HOST=# panelW,xCtr_cm,yCtr_cm 2264 2264 ModifyTable width(Point)=0 2265 2265 ModifyTable width(panelW)=80 2266 ModifyTable width(xCtr_ pix)=1002267 ModifyTable width(yCtr_ pix)=1002266 ModifyTable width(xCtr_cm)=100 2267 ModifyTable width(yCtr_cm)=100 2268 2268 RenameWindow #,T0 2269 2269 SetActiveSubwindow ##
Note: See TracChangeset
for help on using the changeset viewer.