Ignore:
Timestamp:
Jan 17, 2017 8:37:19 AM (6 years ago)
Author:
srkline
Message:

adding procedures for:

simple save of a DIV file. no functionality to generate a DIV file yet, since I don't know how this will happen.

Simple dump of the file structure in a data "tree"

Verified that the error bars on the I(q) data are correctly calculated as standard error of the mean. There was never an issue with this, or with SANS calculations.

Started filling in "Correct" routines based on the SANS version. Only stubs present currently.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_WorkFolderUtils.ipf

    r1018 r1019  
    4949// 
    5050// TODO -- at what stage do I make copies of data in linear/log forms for data display? 
     51//      -- do I need to make copies, if I'm displaying with the lookup wave (no copy needed if this works) 
    5152//                      -- when do I make the 2D error waves? 
    5253// 
     
    121122//////// 
    122123// see the help entry for IndexedDir for help on (possibly) how to do this faster 
    123 // -- see the function Function ScanDirectories(pathName, printDirNames) 
     124// -- see Function ScanDirectories(pathName, printDirNames) 
    124125// 
    125126 
     
    131132// 
    132133// 
    133 Proc V_CopyWorkFolderTest(dataFolderStr, fromStr, toStr, level, sNBName, recurse) 
     134Proc V_CopyWorkFolderProc(dataFolderStr, fromStr, toStr, level, sNBName, recurse) 
    134135        String dataFolderStr="root:Packages:NIST:VSANS:RAW" 
    135136        String fromStr = "RAW" 
     
    175176                NewDataFolder/O $(RemoveEnding(toDF,":"))                       // remove trailing semicolon if it's there 
    176177                 
    177                 V_WriteBrowserInfo(sString, 1, sNBName) 
     178                V_WriteBrowserInfo_test(sString, 1, sNBName) 
    178179        endif 
    179180  
     
    196197                Duplicate/O $(dfName+name),$(toDF+name) 
    197198                 
    198                 V_WriteBrowserInfo(sString, 2, sNBName) 
     199                V_WriteBrowserInfo_test(sString, 2, sNBName) 
    199200        endfor   
    200201  
     
    203204                name = GetIndexedObjNameDFR(dfr, 2, i) 
    204205                sPrintf sString, "%s%s (numeric variable)\r", indentStr, name 
    205                 V_WriteBrowserInfo(sString, 3, sNBName) 
     206                V_WriteBrowserInfo_test(sString, 3, sNBName) 
    206207        endfor   
    207208  
     
    210211                name = GetIndexedObjNameDFR(dfr, 3, i) 
    211212                sPrintf sString, "%s%s (string variable)\r", indentStr, name 
    212                 V_WriteBrowserInfo(sString, 4, sNBName) 
     213                V_WriteBrowserInfo_test(sString, 4, sNBName) 
    213214        endfor   
    214215 
     
    225226                         
    226227                         
    227                         V_WriteBrowserInfo(sString, 1, sNBName) 
     228                        V_WriteBrowserInfo_test(sString, 1, sNBName) 
    228229                        DFREF childDFR = dfr:$(name) 
    229230                        V_DuplicateDataFolder(childDFR, fromStr, toStr, level+1, sNBName, recurse) 
     
    231232        endif 
    232233          
    233 //when finished walking tree, save as RTF with dialog    
    234 //      if(level == 0 && strlen(sNBName) != 0) 
    235 //              SaveNotebook /I /S=4  $sNBName 
    236 //      endif 
     234 
    237235End 
    238236  
    239 Function V_WriteBrowserInfo(sString, vType, sNBName) 
     237Function V_WriteBrowserInfo_test(sString, vType, sNBName) 
    240238        String sString 
    241239        Variable vType 
     
    551549                        Wave w = V_getDetectorDataW(fname,detStr) 
    552550                        Wave w_err = V_getDetectorDataErrW(fname,detStr) 
     551                         
    553552//                      TransmissionCorrection(fill this in) 
    554553                         
Note: See TracChangeset for help on using the changeset viewer.