Changeset 1080
- Timestamp:
- Jan 22, 2018 9:39:17 AM (5 years ago)
- Location:
- sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Combine_1D.ipf
r1079 r1080 114 114 endif 115 115 116 // last, set up the dependency 117 Make/O/D/N=1 trimUpdate 118 trimUpdate := V_TrimTestUpdate(Beg_pts, End_pts) 119 116 // last, set up the dependency (but don't set it up twice!) 117 if(exists("root:Packages:NIST:VSANS:Globals:Protocols:trimUpdate") == 0) 118 Make/O/D/N=1 root:Packages:NIST:VSANS:Globals:Protocols:trimUpdate 119 root:Packages:NIST:VSANS:Globals:Protocols:trimUpdate := V_TrimTestUpdate(Beg_pts, End_pts) 120 else 121 string dependencyStr = GetFormula(root:Packages:NIST:VSANS:Globals:Protocols:trimUpdate) 122 if(strlen(dependencyStr)==0) 123 root:Packages:NIST:VSANS:Globals:Protocols:trimUpdate := V_TrimTestUpdate(Beg_pts, End_pts) 124 endif 125 endif 120 126 121 127 SetDataFolder root: -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_DetectorCorrections.ipf
r1079 r1080 1358 1358 // if the DIV workfile doesn't exist, let the user know,and abort 1359 1359 1360 WAVE/Z div_data = $("root:Packages:NIST:VSANS:DIV:entry:instrument:detector_"+detStr+":data") 1360 WAVE/Z div_data_err = V_getDetectorDataErrW("DIV",detStr) 1361 WAVE/Z div_data = V_getDetectorDataW("DIV",detStr) 1362 1363 // WAVE/Z div_data = $("root:Packages:NIST:VSANS:DIV:entry:instrument:detector_"+detStr+":data") 1361 1364 if(WaveExists(div_data) == 0) 1362 1365 Print "The DIV wave does not exist in V_DIVCorrection()" 1363 1366 Return(1) //error condition 1364 1367 Endif 1368 if(WaveExists(div_data_err) == 0) 1369 Print "The DIV error wave does not exist in V_DIVCorrection()" 1370 Return(1) //error condition 1371 Endif 1365 1372 //files exist, proceed 1366 1373 1374 // do the error propagation first, since data is changed by the correction 1375 data_err = sqrt(data_err^2/div_data^2 + div_data_err^2 * data^2/div_data^4 ) 1376 1377 // then the correction 1367 1378 data /= div_data 1368 1379 1369 // TODO: -- correct the error propagation1370 data_err /= div_data1371 1380 1372 1381 Return(0) -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_USANS_SlitSmearing_v40.ipf
r1079 r1080 18 18 // 19 19 20 // 21 // TODO --this needs to be made completely separate from USANS, or MERGE 22 // with USANS if the per-Q definition of dQv is valid for the matrix solution 23 // 20 24 21 25
Note: See TracChangeset
for help on using the changeset viewer.